| 目录 | /etc/update-motd.d/ |
|---|---|
| 触发 | 登录时 PAM 调 pam_motd 执行 |
| 检查 | 目录内容与脚本可执行位 |
| 判据 | 脚本里出现网络与执行命令 |
检查 motd 脚本
检查 motd 脚本
ls -la /etc/update-motd.d/ 2>/dev/null
grep -rEn 'curl|wget|/dev/tcp|base64' /etc/update-motd.d/ 2>/dev/null | head
cat /etc/update-motd.d/* 2>/dev/null | head -n 60该机制主要在 Debian/Ubuntu 家族存在:其他发行版直接看 /etc/motd 与 pam.d 配置。