Linux Privilege Escalation
Basic Linux Privilege Escalation
Automated Enumeration
git clone https://github.com/rebootuser/LinEnum.git
./LinEnum.shgit clone https://github.com/diego-treitos/linux-smart-enumerationgit clone https://github.com/pentestmonkey/unix-privesc-check.git
./unix-privesc-check
./unix-privesc-check standard > output.txtInformation Gathering
cat /etc/issue cat /etc/*-release uname -i lsb_release -a (Debian based OSs)id whoami pwdcat /etc/passwd grep -vE "nologin|false" /etc/passwdps aux netstat -antupdpkg -l (Debian based OSs) rpm -qa (CentOS / openSUSE ) uname -a
Check sudo access
Mix cp/chown and chmod
Check Scheduled Tasks
Readable/Writable Files and Directories
Check history, bashrc, backup
Binaries That AutoElevate
Unmounted Disks
cat /etc/fstab /bin/lsblk mount
Last updated