Hack the Box (HTB) machines walkthrough series — Forest

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

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.

DevOps Connect:DevSecOps @ RSAC 2022

Note: Only write-ups of retired HTB machines are allowed. The machine in this article, named Forest, 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 Forest machine IP is
  3. We will adopt our usual methodology of performing penetration testing. Let’s start with enumeration in order to gain more information about the machine.
  4. As usual, let’s start with the nmap scan to learn more information about the services running on this machine. [CLICK IMAGES TO ENLARGE]
    <<nmap -sC -sV -oA Forest>>

  5. There are multiple ports shown in the output. As we can see, the server is currently showing kerberos, ldap, etc. as services, so it’s highly likely that it’s a domain controller.
  6. Let’s start the enumeration using enum4linux. We get the below users:
  7. We save them to a file and format it to get the required user names.
  8. Now let’s run the impact script to see if there is a possible user set with “UF_DONT_REQUIRE_PREAUTH” so that we can grab the TGT for that user. Below, you can see that we got TGT for a user.
    <<GetNPUsers htb.lcoal/ -dc-ip -no-pass>>

  9. Let’s crack the TGT offline using hashcat.
    <<hashcat -m (Read more...)

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