π― Windows Privilege Escalation Methodology
Automated Enumeration (Run First!)
Pro Tip
WinPEAS uses colors: Red/Yellow = high interest. Always redirect output to file for review: .\winPEASx64.exe > output.txt
Basic System Enumeration
Token Impersonation (Potato Exploits)
If you have SeImpersonatePrivilege or SeAssignPrimaryTokenPrivilege, you can escalate to SYSTEM!
Pro Tip
Service accounts (IIS APPPOOL, Network Service) usually have SeImpersonatePrivilege. Always check whoami /priv first!
Service Misconfigurations
If path has spaces + no quotes: C:\Program Files\Some App\service.exe β Windows tries C:\Program.exe first!
Stored Credentials
AlwaysInstallElevated
If both return 0x1, you can install MSI packages as SYSTEM!
DLL Hijacking
Note
DLL search order: Application directory β System32 β System β Windows β Current directory β PATH directories. Place your DLL earlier in the search order.
Scheduled Tasks
Password Hunting
UAC Bypass
Note
UAC bypass only works if you're already a local admin in a medium integrity context. It elevates to high integrity.
Kernel Exploits (Last Resort)
Notable Windows Exploits:
Warning
Kernel exploits can cause BSOD! Use only as a last resort and always have backup access.