请输入手机号码
请输入密码
top -c
ps -ef | grep -E "bash|sh|curl|wget|perl|python|nc|ssh"重点看:
httpd/nginx/www 却跑shellnetstat -antup
ss -antup看是否有:
systemctl list-unit-files | grep enabled
crontab -l
ls /etc/cron.*
cat ~/.ssh/authorized_keys木马常藏:
.bashrcfind / -mtime -3 -type f 2>/dev/null
find /var/www -mtime -1 2>/dev/nullWeb目录尤其重点( uploads、cache、tmp )
ls -la /
ls -la /tmp /dev/shm /var/tmp常见藏身处:
/tmp/dev/shm/var/tmp/proc/$$/fdwhich ps netstat ls
rpm -V coreutils (CentOS)
dpkg -V (Debian)ps 看不到马但 top 有,说明命令被劫持。kill -9 PID
pkill -f 木马名rm -rf /tmp/xxx
rm -f /etc/systemd/system/xxx.servicecrontab -r
systemctl disable xxx
rm /etc/rc.local 中可疑行cat /etc/passwd
userdel -r 可疑用户> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys常见入口:
必须做:
如果你愿意,可以发:
top 或 netstat 的异常截图我可以帮你具体看是哪一种马、怎么精准清。