Sudo Security Bypass
Task 1: Deploy!
Deployed!
No answer needed
Task 2: Security Bypass
What command are you allowed to run with sudo?
Let's first connect to the machine using ssh and the following credentials:
Username
Password
tryhackme
tryhackme
┌──(kunal㉿kali)-[~]
└─$ ssh tryhackme@10.10.150.83 -p 2222
The authenticity of host '[10.10.150.83]:2222 ([10.10.150.83]:2222)' can't be established.
ED25519 key fingerprint is SHA256:4bgDOPxI7PFcv5CMfQYEkO7uBqKjLKhd7zZwmE8uwbQ.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[10.10.150.83]:2222' (ED25519) to the list of known hosts.
tryhackme@10.10.150.83's password:
Last login: Fri Feb 7 00:14:41 2020 from 192.168.1.151
tryhackme@sudo-privesc:~$ Now, we can list out the command we are allowed to run as sudo.
Answer
What is the flag in /root/root.txt?
We can find the exploit on the following page.

We can now read the flag in /root/root.txt.
Answer
Last updated
Was this helpful?