Today, we will be continuing with our exploration of Hack the Box (HTB) machines, as seen in previous articles. This walkthrough is of an HTB machine named Jarvis.
HTB is an excellent platform that hosts machines belonging to multiple OSes. It also has some other challenges as well. Individuals have to solve the puzzle (simple enumeration plus pentest) in order to log into the platform and download the VPN pack to connect to the machines hosted on the HTB platform.
Note: Only write-ups of retired HTB machines are allowed. The machine in this article, named Jarvis, is retired.
Let’s start with this machine.
1. Download the VPN pack for the individual user and use the guidelines to log into the HTB VPN.
2. The Jarvis machine IP is 10.10.10.143.
3. We will adopt the usual methodology of performing penetration testing as we’ve used previously. Let’s start with enumeration in order to gain as much information about the machine as possible.
4. As usual, let’s start with the Nmap scan learn more about the services running on this machine. [CLICK IMAGE TO ENLARGE]
<<nmap -sC -sV -oA Jarvis10.10.10.143>>
5. As we can see, ports 22 and 80 are available. Let’s start enumeration on these ports.
6. Below is what we can see on port 80.
7. Looking into the website, we can see a subdirectory of “room” which looks susceptible to SQL injection.
8. Trying a basic SQL injection gives a weird little response.
9. We launch SQLMAP to perform SQL injection.
<<sqlmap -u ‘http://10.10.10.143/room.php?cod=4’ –users –passwords>>
10. As we can see, the SQL injection on the parameter cod is successful. Performing further directory enumeration reveals the username and password in cleartext.
11. Now I have (Read more...)
*** This is a Security Bloggers Network syndicated blog from Infosec Resources authored by Security Ninja. Read the original post at: http://feedproxy.google.com/~r/infosecResources/~3/4WY5o8hJhck/