After starting the machine on tryhackme we are given the IP 10.10.110.21;
A quick nmap scan reveals 2 open ports, 22 and 80.
Looking at the target webpage using cURL shows the link;
With the name of the challenge being 'Inclusion' its worth trying an LFI (local file inclusion) attack and see what happens.
This has allowed us to view the /etc/passwd file which seams to have a commented line;
Strange. I wonder if we can use this credential to log into the box via ssh. Lets give it a try.
Woop it worked. Now we are logged in as falconfeast. One of the first things I like do is check if the user has sudo rights so lets try that;
sudo says that our user is able to run 'socat' as root user, this will allow us to escalate our privileges and execute a root shell using the following command;
Thats it we now have a root shell :)





