root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat active.md
// writeups

Active

28 Jul 2018 · 9 min read · root access
Active - maquina de Hack The Box

Executive summary — Active is an Active Directory classic where the flaw isn't an exotic exploit but misconfiguration. The Replication share (replicated SYSVOL) is anonymously readable and contains a Groups.xml with a cpassword (GPP): Microsoft published the AES key, so it decrypts to SVC_TGS's credentials. With that account we enumerate the domain (RID brute) and Kerberoast Administrator — which has an SPN registered by mistake —, crack its TGS offline and log in as Domain Admin. Path: GPP → SVC_TGS → Kerberoasting → Administrator.

PlatformHack The Box
Operating systemWindows Server — Domain Controller (Active Directory)
Domainactive.htb
DifficultyEasy
StatusRetired
Target IP10.129.8.141

Attack map

[Anonymous SMB] Replication share (SYSVOL) → Groups.xml (GPP)
   │  cpassword (public AES key, MS14-025) → gpp-decrypt
   │  → SVC_TGS : GPPstillStandingStrong2k18
   ▼
[SVC_TGS]  (user.txt) → RID brute (NetExec) → user list
   │  Kerberoasting against Administrator (SPN it shouldn't have)
   │  GetUserSPNs → TGS-REP etype23 → hashcat/john
   ▼
[ADMIN]  Administrator : Ticketmaster1968 → psexec → root.txt

1. Reconnaissance (Nmap)

First we confirm what the target exposes and whether it looks like a Domain Controller:

nmap -Pn -sC -sV -p- --min-rate 10000 10.129.8.141 -oN nmap_active.txt

Flag breakdown: -Pn assumes the host is up even without a ping reply (common on HTB, which usually blocks ICMP); -sC runs the default NSE scripts for basic enumeration; -sV detects service versions; -p- scans all 65535 TCP ports; --min-rate 10000 speeds up the scan; -oN saves the output to a file. What I'm looking for is the typical DC combo: 53 (DNS), 88 (Kerberos), 389/3268/3269 (LDAP/Global Catalog), 445 (SMB) and 464 (kpasswd). If they all show up together, the target is almost certainly an Active Directory Domain Controller.

🔒 Clearance required

This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.

See Root Access plans

No account? Create one free then upgrade from your console.