檢查系統(tǒng)密碼文件,查看文件修改日期
[root@fedora ~]# ls -l /etc/passwd
查看passwd文件中有哪些特權(quán)用戶
[root@fedora ~]# awk -F: '$3= =0 {print $1}' /etc/passwd
查看系統(tǒng)里有沒有空口令帳戶
awk -F: 'length($2)= =0 {print $1}' /etc/shadow
檢查系統(tǒng)守護(hù)進(jìn)程
cat /etc/inetd.conf | grep -v "^#"
檢查網(wǎng)絡(luò)連接和監(jiān)聽端口
netstat –an
netstat –rn
ifconfig –a
查看正常情況下登錄到本機(jī)的所有用戶的歷史記錄
last
檢查系統(tǒng)中的core文件
find / -name core -exec ls -l {} \;
檢查系統(tǒng)文件完整性
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