Linux Privilege Escalation Module Cheat Sheet
Linux Privilege Escalation Module Cheat Sheet
CHEAT SHEET
Command Description
find / -path /proc -prune -o -type f -perm -o+w Find world-writeable files
2>/dev/null
find / -user root -perm -4000 -exec ls -ldb {} Find binaries with the SUID
\; 2>/dev/null bit set
find / -user root -perm -6000 -exec ls -ldb {} Find binaries with the
\; 2>/dev/null SETGID bit set
lxc config device add r00t mydev disk source=/ Mount the host file system in
path=/mnt/root recursive=true a container