windows-ad-methodology
Skill2 starsChanged 4 months agoMITView on GitHub
Standard operating procedure for solving Windows and Active Directory TryHackMe boxes. Use when the target is Windows/domain-joined (SMB/LDAP/Kerberos/WinRM ports open, or the room mentions AD/domain), when asked "what next" on a Windows room, or when a Linux-oriented approach isn't fitting. Guides the recon → AD enum → foothold → Kerberos → privesc → domain flow.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- network-forensicsSkill
- thm-methodologySkill
- thm-trainerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Add the DC's FQDN to /etc/hosts (Kerberos needs name resolution)
- Distinctive: line 22
Consider /enum-udp too — SNMP can leak users/processes on Windows hosts.
- Distinctive: line 36
Run BloodHound collection — let the ad-attack-advisor agent read the results
- Distinctive: line 42
Check ADCS (certipy) if certificate services are present
- Distinctive: line 66
Prefer credentialed remote tools (evil-winrm) over noisy reverse shells when you can
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Windows / Active Directory Methodology
For readers who live in Linux: Windows CTF is a different surface. Instead of web/SSH → SUID/sudo, the game is SMB/LDAP/Kerberos → tokens/ACLs/tickets. Follow this flow.
Recognizing a Windows box
Open 135/139/445 (SMB), 3389 (RDP), 5985 (WinRM), and especially 88 (Kerberos) + 389/636 (LDAP) → domain-joined AD. Kerberos (88) present = treat it as full AD.
0. Setup
- /vpn-check the target
- Add the DC's FQDN to /etc/hosts (Kerberos needs name resolution)
- Watch clock skew: sync to the DC if Kerberos tooling errors (
sudo rdate -n <DC-IP>)
1. Recon
- /recon as usual. Note the domain name, DC hostname, OS build.
- Consider /enum-udp too — SNMP can leak users/processes on Windows hosts.
2. AD / SMB enumeration
- /enum-ad — null/guest sessions, shares, RPC, LDAP, build a user list
- Harvest usernames from RID cycling, shares, LDAP. Save to users.txt.
3. Get a foothold credential (try in order)
- AS-REP roast the user list (/kerberos) — no creds needed
- Password spray weak/found passwords across users (careful of lockout)
- Anonymous/guest readable shares — look for creds, configs, scripts
- Any web app on the box → normal web enum (/enum-web)
- Any database on the box → /db-enum (MSSQL especially — xp_cmdshell)
4. Situational awareness (once you have ANY valid cred)
- Run BloodHound collection — let the ad-attack-advisor agent read the results
- Validate the cred everywhere:
nxc smb <IP/range> -u <u> -p <p>(look for Pwn3d!)
5. Escalate within the domain
- Kerberoast service accounts (/kerberos), crack offline
- Abuse ACLs / delegation / DCSync per BloodHound (ad-attack-advisor agent)
- Check ADCS (certipy) if certificate services are present
6. Get a shell
- /win-shell — evil-winrm, psexec/wmiexec, or RDP depending on the cred
- Immediately run
whoami /privandwhoami /groups
7. Local privesc (if not already SYSTEM/admin)
- /win-privesc — token privileges first (SeImpersonate → Potato is the classic), then services, stored creds, kernel last
- Analyze enum with the win-privesc-advisor agent
8. Pivot (if the domain has more hosts to reach)
- From the compromised host, tunnel to internal targets (/tunnel: ligolo-ng / chisel)
- Reuse domain creds across the internal range — one cred often unlocks many hosts
- Record each internal host in notes.md and continue this methodology against it
9. Domain dominance & loot
- DCSync krbtgt if you reach it — note the domain is fully compromised
- Record all flags (user.txt, root.txt/admin) and creds in notes.md
- report-writer agent for the writeup
Rules
- Stay strictly on the assigned target IP/range
- Most Windows CTF blockers are: missed enum, /etc/hosts, or clock skew — check those first
- Prefer credentialed remote tools (evil-winrm) over noisy reverse shells when you can
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

