Sitemap

Hackthebox — Jerry

Jun 5, 2022

The IP [10.129.91.241].

Check if the host is alive and responding to your ICMP protocol.

Press enter or click to view image in full size

An nmap scan (namp -sS -sC IPAddress).

Open port 8080 and running Apache Tomcat/7.0.88.

Press enter or click to view image in full size

Open a browser and input the ip address with port.

Press enter or click to view image in full size
Press enter or click to view image in full size

As per running a dirb tool. A directory called “/manager” found and there is a credential where visible or disclosed.

user=tomcat

password=s3cret

Press enter or click to view image in full size
Press enter or click to view image in full size

Once successfully logged in there are applications can be observed running and war file can be upload from below of the list of applications.

Press enter or click to view image in full size
Press enter or click to view image in full size

Creating a custom payload via msfvenom.

LHOST = tun0

LPOR = Choose your port

Press enter or click to view image in full size

Open a netcat listener and open the war file on the list of applications.

Press enter or click to view image in full size
Press enter or click to view image in full size

Successfully connected to the jerry machine and find the flags moving forward.

Here are the user and root txt.

Press enter or click to view image in full size