Hack the Box (HTB) machines walkthrough series — Mango

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

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 Mango, 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 Mango machine IP is
  3. We will adopt the same methodology of performing penetration testing as we’ve used before. 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 gather more information about the services running on this machine. [CLICK IMAGES TO ENLARGE]
    <<nmap -sC -sV -oA Mango>>

  5. As can be seen, we have a domain as well. Let’s put that into the host’s file.
  6. Below is the real site on port 443.
  7. Below is the staging site.
  8. Using some common creds did not work, so we’ll intercept the request via Burp.
  9. Using the cheat sheet for noSQL injection like below, we make sure to add [!ne] for username and password.
  10. We can see that we bypass the login page. So now we can use the username and password enumeration script from here.
  11. Using it for username enumeration first, as shown below, we can see that it fetched two usernames.
    (Read more...)

*** This is a Security Bloggers Network syndicated blog from Infosec Resources authored by Security Ninja. Read the original post at: