offensive-windows-privesc
Installation
SKILL.md
Windows Privilege Escalation
You have a standard user shell on a Windows target. Your objective is to escalate to NT AUTHORITY\SYSTEM or local Administrator through systematic enumeration and exploitation of misconfigurations, vulnerable services, and unpatched software. This skill provides a structured methodology that moves from passive reconnaissance through increasingly aggressive techniques.
Windows privilege escalation differs fundamentally from Linux. The attack surface centers on services, tokens, the registry, DLL loading mechanics, and the Windows access control model. Master these primitives and you can chain findings from any enumeration tool into a working escalation path.
Quick Workflow
- Run automated enumeration (WinPEAS, PowerUp, Seatbelt) to surface misconfigurations.
- Check current privileges -- SeImpersonate/SeAssignPrimaryToken are immediate wins.
- Enumerate services for unquoted paths, weak DACLs, and writable binaries.
- Check AlwaysInstallElevated registry keys for MSI-based escalation.
- Identify DLL hijacking opportunities in privileged processes.
- Attempt UAC bypass if running as a local admin without elevated context.
- Inspect scheduled tasks, registry autoruns, and writable PATH directories.
- Harvest credentials from SAM, DPAPI, LSA secrets, and Credential Manager.
- Check for PrintNightmare and other unpatched vulnerabilities as a last resort.