萬盛學電腦網

 萬盛學電腦網 >> 安全資訊防護 >> linux系統安全性檢測

linux系統安全性檢測

  檢查系統密碼文件,查看文件修改日期

  [root@fedora ~]# ls -l /etc/passwd

  查看passwd文件中有哪些特權用戶

  [root@fedora ~]# awk -F: \'$3= =0 {print $1}\' /etc/passwd

  查看系統裡有沒有空口令帳戶

  awk -F: \'length($2)= =0 {print $1}\' /etc/shadow

  檢查系統守護進程

  cat /etc/inetd.conf | grep -v "^#"

  檢查網絡連接和監聽端口

  netstat -an

  netstat -rn

  ifconfig -a

  查看正常情況下登錄到本機的所有用戶的歷史記錄

  last

  檢查系統中的core文件

  find / -name core -exec ls -l {} \\;

  檢查系統文件完整性

  rpm -qf /bin/ls

  rpm -qf /bin/login

  md5sum -b 文件名

  md5sum -t 文件名

  查找是否有後門

  cat /etc/crontab

  ls /var/spool/cron/

  cat /etc/rc.d/rc.local

  ls /etc/rc.d

  ls /etc/rc3.d

  find / -type f -perm 4000?
copyright © 萬盛學電腦網 all rights reserved