linux基本信息收集

  1. /etc/resolv.conf
  2. /etc/passwd
  3. /etc/shadow
  4. /etc
  • /etc/my.cnf
  • /etc/httpd/conf/httpd.conf
  • /usr/local/etc
  • /root/.ssh/authorized_keys
  • /root/.ssh/id_rsa
  • /root/.ssh/id_rsa.keystore
  • /root/.ssh/known_hosts
  • /root/.bash_history
  • /root/.mysql_history
  • /proc/mounts
  • /proc/config.gz
  • /proc/self/fd/fd*
  1. .ssh , .gnupg
  2. /tmp
  3. whoami, who -a
  4. ifconfig -a , iptables -L -n , netstat -rn
  5. uname -a , ps aux
  6. dpkg -l | head
  7. netstat -pan 本机端口开放状态
  8. lsof -i 程序对应开放的端口
  9. service –status-all | grep “+” 当前系统开启的服务
文章目录
,