Linux 检查
//检查系统密码文件,查看文件修改日期# ls -l /etc/passwd
//查看passwd文件中有哪些特权用户
#/etc/passwd
//查看系统里有没有空口令帐户
#/etc/shadow
//检查系统守护进程
cat /etc/inetd.conf | grep
//检查网络连接和监听端口
netstat –an
netstat –rn
ifconfig –a
//查看正常情况下登录到本机的所有用户的历史记录
last
//检查系统中的core文件
find / -name core -exec ls -l
//检查系统文件完整性
#rpm –qf /bin/ls
#rpm -qf /bin/login
#md5sum –b xuhuilong
#md5sum –t xuhuilong
//查找是否有后门
#cat /etc/crontab
#s /var/spool/cron/
#cat /etc/rc.d/rc.local
#ls /etc/rc.d
#ls /etc/rc3.d
#find / -type f -perm 4000 #find / -name core -exec ls -l
find: missing argument to `-exec'
??
//查找是否有后门
#cat /etc/crontab
#s /var/spool/cron/
#cat /etc/rc.d/rc.local
#ls /etc/rc.d
#ls /etc/rc3.d
#find / -type f -perm 4000
这些我都不太明白为什么要搞……是否想对比有没有发生变动?那样最好编个脚本…… #find / -type f -perm 4000
这句什么意思呢?请教! find / -type f -perm 4000 查找普通权限文件 perm 4000 这个参数呢? perm 是权限的意思 噢,明白了,查询有suid位的文件是吧…… 刚开始学,不是很明白. 虽然有点错误,总体还是不错的
谢谢分享
页:
[1]
