privesc-check

Installation
SKILL.md

快速提权检查方法论

这是一个轻量级快速检查。如果需要完整后渗透流程,使用 post-exploit-linuxpost-exploit-windows

Linux 提权检查清单

按成功率排序,逐项检查(用 privesc_check_linux 自动扫描,或手动):

# 检查项 命令 提权方法
1 sudo 权限 sudo -l GTFOBins 对应命令提权
2 SUID 文件 find / -perm -4000 2>/dev/null 非标准 SUID 二进制 → GTFOBins
3 Capabilities getcap -r / 2>/dev/null python3+cap_setuid → 提权
4 可写 cron cat /etc/crontab; ls -la /etc/cron.* 修改 root 的 cron 脚本
5 可写 /etc/passwd ls -la /etc/passwd 添加 root 用户
6 Docker 组 id | grep docker docker run 挂载宿主机
7 内核版本 uname -r DirtyPipe/DirtyCow/PwnKit

快速判断:如果 sudo -l 有任何 NOPASSWD 条目,80% 概率能提权。

Related skills

More from wgpsec/aboutsecurity

Installs
4
GitHub Stars
1.3K
First Seen
Mar 25, 2026