https://book.hacktricks.xyz/linux-unix/linux-privilege-escalation-checklist
Get OS information
Check the PATHarrow-up-right, any writable folder?
Check env variablesarrow-up-right, any sensitive detail?
Search for kernel exploitsarrow-up-right using scripts (DirtyCow?)
Check if the sudo version is vulnerablearrow-up-right
Dmesg signature verification failedarrow-up-right error?
More system enum (date, system stats, cpu info, printersarrow-up-right)
Enumerate more defensesarrow-up-right
List mounted drives
Any unmounted drive?
Any creds in fstab?
Check for useful softwarearrow-up-right installed
Check for vulnerable softwarearrow-up-right installed
Is any unknown software running?
Is any software with more privileges that it should have running?
Search for exploits for running processes (specially if running of versions)
Can you modify the binary of any running process?
Monitor processes and check if any interesting process is running frequently
Can you read some interesting process memory (where passwords could be saved)?
Is the PATHarrow-up-right being modified by some cron and you can write in it?
Any wildcardarrow-up-right in a cron job?
Some modifiable scriptarrow-up-right is being executed or is inside modifiable folder?
Have you detected that some script could be being executed very frequentlyarrow-up-right? (every 1, 2 or 5 minutes)
Any writable .service file?
Any writable binary executed by a service?
Any writable folder in systemd PATH?
Any writable timer?
Any writable .socket file?
Can you communicate with any socket?
HTTP sockets with interesting info?
Can you communicate with any D-Bus?
Enumerate the network to know where you are
Open ports you couldn't access before getting a shell inside the machine?
Can you sniff traffic using tcpdump?
tcpdump
Generic users/groups enumeration
Do you have a very big UID? Is the machine vulnerable?
Can you escalate privileges thanks to a grouparrow-up-right you belong to?
Clipboard data?
Password Policy?
Try to use every known password that you have discovered previously to login with each possible user. Try to login also without password.
If you have write privileges over some folder in PATH you may be able to escalate privileges
Can you execute any comand with sudo? Can you use it to READ, WRITE or EXECUTE anything as root? (GTFOBinsarrow-up-right)
Is any exploitable suid binary? (GTFOBinsarrow-up-right)
Are sudo commands limited by path? can you bypass the restrictionsarrow-up-right?
Sudo/SUID binary without path indicated?arrow-up-right
SUID binary specifying patharrow-up-right? Bypass
LD_PRELOAD vulnarrow-up-right
Lack of .so library in SUID binaryarrow-up-right from a writable folder?
SUDO tokens availablearrow-up-right? Can you create a SUDO tokenarrow-up-right?
Can you read or modify sudoers filesarrow-up-right?
Can you modify /etc/ld.so.conf.d/arrow-up-right?
OpenBSD DOASarrow-up-right command
Has any binary any unexpected capability?
Has any file any unexpected ACL?
screen?
tmux?
Debian OpenSSL Predictable PRNG - CVE-2008-0166arrow-up-right
SSH Interesting configuration valuesarrow-up-right
Profile files - Read sensitive data? Write to privesc?
passwd/shadow files - Read sensitive data? Write to privesc?
Check commonly interesting folders for sensitive data
Weird Localtion/Owned files, you may have access or alter executable files
Modified in last mins
Sqlite DB files
Hidden files
Script/Binaries in PATH
Web files (passwords?)
Backups?
Known files that contains passwords: Use Linpeas and LaZagne
Generic search
Modify python library to execute arbitrary commands?
Can you modify log files? Logtotten exploit
Can you modify /etc/sysconfig/network-scripts/? Centos/Redhat exploit
Can you write in ini, int.d, systemd or rc.d filesarrow-up-right?
Can you abuse NFS to escalate privileges?arrow-up-right
Do you need to escape from a restrictive shell?arrow-up-right
Last updated 4 years ago