Linux Privilege Escalation
Resources:
Basic Linux Privilege Escalation - https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/
Checklist - Linux Privilege Escalation - https://book.hacktricks.xyz/linux-unix/linux-privilege-escalation-checklist
Sushant 747's Guide (Country dependant - may need VPN) - https://sushant747.gitbooks.io/total-oscp-guide/content/privilege_escalation_-_linux.html
All links and resources found in the course can also be found at the following repository: https://github.com/Gr1mmie/Linux-Privilege-Escalation-Resources
Walkthrough- https://0xsmiley.github.io/2020-07-26-LinuxPrivEsc/
Initial Enumeration
#System Enumeration
hostname
uname -a
cat /proc/version
cat /etc/issue
lscpu
ps aux #sevices running
ps aux | grep root
sudo -V
#User Enumeration
whoami
id
sudo -l
cat /etc/sudoers
cat /etc/passwd
cat /etc/passwd | cut -d : -f 1
cat /etc/shadow
history
#Network Enumeration
ifconfig
ip a
ip route
ip neigh #To view arp table
netstat -ano
#Password Hunting
grep --color=auto -rnw '/' -ie "PASSWORD" --color=always 2> /dev/null
locate password | more
locate pass | more
find / -name authorized_keys 2> /dev/null
find / -name id_rsa 2> /dev/nullExploring Automated Tools
Kernel Exploits
Passwords & File Permissions
Sudo
SUID
Other SUID Escalation
Capabilities
Scheduled Tasks
NFS Root Squashing
Docker
Last updated