LinuxPrivEsc Enumeration
Network
Check open ports
netstat -ano
ss -ltFile and Directory
Find specific strings in file
grep -rnw '/path/to/somewhere/' -e 'pattern'Find file name
find / -name "filename"Privilege Escalation
Manual Enumeration
check for group that can be abuse
idCheck if can write or read, or maybe even find hashes
/etc/passwdhostnameCheck version for kernel exploit
cat /etc/issue
cat /etc/os-release
uname -aCheck process running that can be abused
ps auxCheck for network configuration like internal ip
ip a
ifconfig / ipconfig
routel
routeLook for active network
netstat ano
ss -anpCheck firewall rules
cat /etc/iptables/rules.v4Check for schedule task
ls -lah /etc/cron*
crontab -l
sudo crontab -l (could be there schedule task for sudo)Check application installed
dpkg -lLook for writable directories
find / -writable -type d 2>/dev/nullLook for unmounted drives
cat /etc/fstab
mount
lsblk
lsmod
/sbin/modinfo libataChecked for SUID Binaries
find / -perm -u=s -type f 2>/dev/nullAutomated Enumeration
LinPEAS
Last updated
Was this helpful?