TryHackMe: Sudo Buffer Overflow Walkthrough.
You can access the room through this link: https://tryhackme.com/room/sudovulnsbof
Task 1 :- Deploy!
SSH into that machine you deployed earlier, using port 4444.
The credentials are:
Username: tryhackme
Password: tryhackme
# ssh tryhackme@MACHINE_IP -p 4444
tryhackme@MACHINE_IP’s password:
Here,s a hint…. :- As I said earlier, I have already done the compilation and upload for you. All you need to do is login to the machine and run the exploit, just to see it working for yourself.
Use the pre-compiled exploit in the VM to get a root shell.→ No answer needed
tryhackme@sudo-bof:~$ ll
tryhackme@sudo-bof:~$ ./exploit
[sudo] password for tryhackme:
# cd /root/
# cat root.txt
What’s the flag in /root/root.txt? → THM{******_********_*****}
Note :- Always terminate the machine you deployed in this room.
Thanks for reading hope you guys like. Post your questions in the comment section below!