Linux 提权¶ 查看用户信息¶ Bash1 2 3 4w id whoami cat /etc/passwd 系统版本信息¶ Bash1 2 3cat /etc/os-release 内核 uname -a 进程信息¶ Bash1 2ps aux ps -efw 网络连接¶ Bash1 2 3 4ip a ifconfig ip route ss -partu 计划任务¶ Bash1 2 3 4 5 6 7grep -ro Ri /etc/cron* grep -RE 'passwords?=".*"' 2>/dev/null grep -E '\w*([0-9]|[0-9][0-9])\w*' /etc/cron* /etc/crontab crontab -l ls /var/spool/cron cat /var/log/cron.log 查看实时进程 Bash1pspy 可写的目录¶ Bash1find / -writable -type d 2>/dev/null 系统分区¶ Bash1/etc/fstab SUID 程序枚举¶ Bash1find / -perm -u=s -type f 2>/dev/null 环境变量¶ Bash1 2 3 4env env -spilt-string-touch /tmp/yfh cat .bashrc cat .bash_history sudo 权限¶ Bash1sudo -l 自动化工具及提权参考网站¶ Bash1 2 3 4 5# 自动化工具 linpeas # 提权参考网址 https://gtfobins.github.io/