Linux Privilege Escalation

Resources:

  1. All links and resources found in the course can also be found at the following repository: https://github.com/Gr1mmie/Linux-Privilege-Escalation-Resources

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/null

Exploring Automated Tools

Kernel Exploits

Passwords & File Permissions

Sudo

SUID

Other SUID Escalation

Capabilities

Scheduled Tasks

NFS Root Squashing

Docker

Last updated