SBN

Hack the Box (HTB) machines walkthrough series — Sneaky

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 Sneaky.

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 Sneaky, is retired.

The walkthrough

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 Sneaky machine IP is 10.10.10.20.
  3. We will adopt the same 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 to learn more about the services running on this machine. [CLICK IMAGES TO ENLARGE]
    <<nmap -sC -sV -oA Sneaky 10.10.10.20>>

  5. As we can see, we only have port 80 listed from the normal ones available.
  6. Let’s enumerate on port 80. We can see this in the page below.
  7. Let’s try to brute-force this to enumerate other directories as well.
    <<gobuster -u 10.10.10.20 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt>>
  8. We got a hit on /dev directory, which gives us the page below:
  9. Some initial testing showed that SQL injection is possible. So a trivial SQL injection got us in.
  10.  We got two names and a link to the key.
  11. Below is the key we have in the portal. Let’s save it locally. Despite saving it (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/H88Ivtt79ts/