| 目录 | /etc/profile.d/ |
|---|---|
| 触发 | login shell 启动时按文件名顺序 source |
核查
核查
ls -lt --time-style=long-iso /etc/profile.d/ | head
grep -Rn 'curl\|wget\|base64\|/tmp/' /etc/profile.d/脚本内容只做阅读与哈希,不要在排查过程中手动 source。
登录时会执行 /etc/profile.d/*.sh,写入这里的命令对所有用户生效,是隐蔽性较高的持久化位置。
| 目录 | /etc/profile.d/ |
|---|---|
| 触发 | login shell 启动时按文件名顺序 source |
ls -lt --time-style=long-iso /etc/profile.d/ | head
grep -Rn 'curl\|wget\|base64\|/tmp/' /etc/profile.d/