Sitemap

ToolsRus — TryHackMe WriteUp

3 min readJul 10, 2023

--

Press enter or click to view image in full size

Practise using tools such as dirbuster, hydra, nmap, nikto and metasploit

First I ran the Nmap default to find open ports

Did another scan for services and default vulnerabilities

Press enter or click to view image in full size

Start enumerating the servives found starting with port 80. I accessed it via browser

Press enter or click to view image in full size

I tried robots.txt first but there was nothing

Press enter or click to view image in full size

So I ran Dirbuster Tool and found the directory /guidelines

Press enter or click to view image in full size

On viewing it

Press enter or click to view image in full size

There was another hidden dir named /protected that required authentication. We found a user bob

Press enter or click to view image in full size

We running hydra to get the password and the username provided is bob

Press enter or click to view image in full size

The password is bubbles. We log in we get:-

Press enter or click to view image in full size

From the above message we have to enumerate the remaining ports to find more details. I went for port 1234 that had another web service. It was running apache Tomcat/Coyote JSP Engine 1.1

Get Wilklins Nyatteng’s stories in your inbox

Join Medium for free to get updates from this writer.

I used Metasploit to exploit the web server. I started by searching for tomcat

Press enter or click to view image in full size

I selected option 7,

Press enter or click to view image in full size

We then use options to use to fill the missing parameters

Press enter or click to view image in full size

We then run to exploit and get a meterpreter. Then request for a shell

Press enter or click to view image in full size

We then get a session then run id to find the current user and locate the flag

--

--

Wilklins Nyatteng
Wilklins Nyatteng

Written by Wilklins Nyatteng

Cyber Security Engineer | Wazuh Ambassador | AWS Community Builder