Provides various official and user-released code examples and code reference. You are welcome to exchange and learn this knowledge as a programmer.
1. Check the system password file and check the file modification date.
[Root @ fedora ~] # Ls-l/etc/passwd
2. View privileged users in the passwd file
[Root @ fedora ~] # Awk-F: '$3 = 0 {print $1}'/etc/passwd
3. check whether there is a blank password account in the system.
Awk-F: 'length ($2) = 0 {print $1} '/etc/shadow
4. Check the system daemon process
Cat/etc/inetd. conf | grep-v "^ #"
5. Check the network connection and listening port
Netstat-
Netstat-rn
Ifconfig-
6. View historical records of all users logging on to the local machine under normal conditions
Last
7. Check core files in the system
Find/-name core-exec ls-l {}\;
8. Check System File integrity
Rpm-qf/bin/ls
Rpm-qf/bin/login
Md5sum-B file name
Md5sum-t file name 9. check whether there is a backdoor
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
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB