# 权限提升
English: Privilege Escalation
- Tool Count: 3
- Use this file to choose the right tool quickly, then open the linked source markdown for full command details.
## Linux提权命令
- ID: linux-privilege
- Command Count: 10
- Original Extracted Source: original extracted tools-wiki source/linux-privilege.md
Description:
Linux系统提权常用命令
Representative Commands:
- 系统信息: `uname -a
cat /etc/issue
cat /etc/*-release
cat /proc/version`
- 用户信息: `id
whoami
w
last
cat /etc/passwd
cat /etc/shadow`
- SUID文件: `find / -perm -4000 -type f 2>/dev/null
find / -perm -u=s -type f 2>/dev/null`
- SUDO配置: `sudo -l
cat /etc/sudoers`
- 可写目录: `find / -writable -type d 2>/dev/null
find / -perm -222 -type d 2>/dev/null`
External References:
- https://gtfobins.github.io/
## WinPEAS
- ID: winpeas-tool
- Command Count: 4
- Original Extracted Source: original extracted tools-wiki source/winpeas-tool.md
Description:
Windows提权辅助工具
Installation:
下载二进制文件
Representative Commands:
- 完整扫描: `winpeas.exe`
- 快速扫描: `winpeas.exe fast`
- 详细输出: `winpeas.exe cmd`
- 保存结果: `winpeas.exe > output.txt`
External References:
- https://github.com/carlospolop/PEASS-ng
## LinPEAS
- ID: linpeas-tool
- Command Count: 4
- Original Extracted Source: original extracted tools-wiki source/linpeas-tool.md
Description:
Linux提权辅助工具
Installation:
下载脚本文件
Representative Commands:
- 执行扫描: `./linpeas.sh`
- 快速扫描: `./linpeas.sh -a`
- 指定检查: `./linpeas.sh -P`
- 保存结果: `./linpeas.sh > output.txt`
External References:
- https://github.com/carlospolop/PEASS-ng

