[ Ignite ] - TRYHACKME (Detailed)
Let’s dive in!! And root the machine.
Nmap Scan - tryhackme
------------------------------------------------------------------------------------------------------------------
nmap -sC -sV -oN nmap/ignite <TARGET_IP>
-sC : Default scripts
-sV : Version detection
-oN : Output to be stored in the directory ‘nmap’ you created earlier
There is only one open port
80/tcp http Apache httpd 2.4.18 ((Ubuntu))
Gobuster
--------------------------------------------------------------------------------------------------------------------------
gobuster dir -u http://<TARGET_IP> -w <PATH_TO_WORDLIST> -o <OUTPUT_FILE_NAME> -x <EXTENSIONS>
-u : URL
-w : Wordlist
-o : Output to be stored in the directory
-x : Search for extensions e.g. html,txt,php,phtml etc.
Navigate to http://<target_ip>
scroll down we will find default credentials to login into the CMS
Navigate to http://<TARGET_IP>/robots.txt
I checked them one by one they redirect to the same page which is fuel cms default page. But i found /fuel/ in the robots.txt
Navigate to http://<Target_IP>/fuel/
Now we have login page and also we have default username and password and we have Dashboard fuel CMS
We can try using unpopular extensions e.g. phtml, phtml5 etc. in order to bypass the uploads but it still won’t work. Nevermind we will find our way in somehow.
searchsploit will help to find the exploit of the fuel CMS.
searchsploit <EXPLOIT>
Additionally we can also use flags in searchsploit to examine and to download the exploit on the host machine.
searchsploit -m <PATH_OF_EXPLOIT> — download
searchsploit -x <PATH_OF_EXPLOIT> — examine
















Comments
Post a Comment