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.
Note: Only write-ups of retired HTB machines are allowed. The machine in this article, named Forest, is retired.
Let’s start with this machine.
- Download the VPN pack for the individual user and use the guidelines to log into the HTB VPN.
- The Forest machine IP is 10.10.10.161.
- We will adopt our usual methodology of performing penetration testing. Let’s start with enumeration in order to gain more information about the machine.
- 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 10.10.10.161>>
- 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.
- Let’s start the enumeration using enum4linux. We get the below users:
- We save them to a file and format it to get the required user names.
- 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 10.10.10.161 -no-pass>>
- 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: http://feedproxy.google.com/~r/infosecResources/~3/htMgPZiFudM/