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

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 Resolute, 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 “Resolute” machine IP is 10.10.10.169.
  3. We will adopt our usual methodology of performing penetration testing. Let’s start with enumeration in order to learn as much 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 -p- -oA Resolute 10.10.10.169>>

  5. The enumerated results indicate to run another enumeration of the whole domain via enum4linux. Some of the important information enumerated from it can be seen.
    1. Below, we can see the SID of the back:
    2. A password in the “desc” section:
    3. A list of all the users:
    4. Interestingly enough, a user in contractor’s group explicitly popped up:
  6. Using the above pass for all the users eventually worked for user “melanie.” We’ll log in with evil-winrm to grab user.txt.
  7. Enumerating with current user and got an interesting file, as shown below.
  8. It has a password for user ryan (which, from above enumeration, we know was also part of the contractors group).
  9. Using that password to log in as user ryan. Listing groups for the user current reveals that the user was also part of the DNSADMINS group.
  10. Now we need to follow a well-crafted exploit to abuse these high permissions!
  11. Creating a reverse shell DLL via msfvenom
  12. Using dnscmd to inject our malicious DLL as shown below and restarting service for the changes to take place:
  13. Below, it can be seen that as the service is restarted, the DLL has been picked from our locally hosted share.
  14. And we got a reverse shell back as a system.

So, this was a very straightforward machine with the initial hold done via enumeration and then exploiting a particular group membership powers to raise it to system level.

We will continue this series with many more examples of interesting HTB machines.