Cybersecurity-Mastery

Home › Cheatsheets › Windows Privilege Escalation Cheatsheet

Windows Privilege Escalation Cheatsheet

Tokens, services, registry and quick wins. Printable: use your browser's Print → Save as PDF.

Domain: Offensive · Last updated 2026-08-12

Quick reference

This cheatsheet is a fast recall aid, not a tutorial — learn the concepts in the Manual, then keep this beside you while you work.

Automated enumeration

winPEASx64.exe · PowerUp.ps1 (Invoke-AllChecks) · Seatbelt.exe -group=all

Manual triage

CheckCommand
Whoami & privswhoami /all
Patch levelsysteminfo (map to exploits)
Services (unquoted/weak)wmic service get name,pathname,startmode
Writable service binaryicacls "C:\path\svc.exe"
AlwaysInstallElevatedreg query HKLM\...\Installer /v AlwaysInstallElevated
Stored credscmdkey /list; reg query HKLM /f password /t REG_SZ /s
Scheduled tasksschtasks /query /fo LIST /v

Token / privilege abuse

  • SeImpersonatePrivilege → Potato family (JuicyPotato/PrintSpoofer/GodPotato) to SYSTEM.
  • SeBackupPrivilege → read SAM/SYSTEM hives, extract hashes offline.
  • Unquoted service path with a writable intermediate dir → plant a payload.
  • Weak service ACL → reconfig binPath (sc config svc binpath= "...") and restart.
  • AlwaysInstallElevated (both HKLM+HKCU set) → run a malicious MSI as SYSTEM.

Credential hunting

text
findstr /si password *.txt *.ini *.config
type C:\Users\*\AppData\Roaming\...\*      # app creds
Cybersecurity-Mastery — interactive security learning · runs locally