请输入手机号码
请输入密码
# 断外网(保留 SSH 内网或控制台)
iptables -I INPUT -s 0.0.0.0/0 -j DROP
# 或云厂商控制台直接断网top -c
ps -aux --sort=-%cpu | head
netstat -antup | grep ESTABLISHED
lsof -i重点看:
.sh、.py、无路径进程crontab -l
ls -la /etc/cron*
systemctl list-unit-files | grep enabled
cat ~/.bashrc ~/.profilefind / -perm -4000 -type f 2>/dev/null # 查提权
find / -name "*.sh" -mtime -3
ls -la /tmp /var/tmp /dev/shmkill -9 PID
rm -rf 木马路径⚠️ 删前备份样本,方便溯源
passwd
# 禁用 root 远程登录
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config备份数据 → 重装系统 → 恢复数据 → 加固
加固建议:
如果你愿意,可以发:
我可以直接帮你定位木马并给清除命令。