Summery
Winpeas is one of my, if not my favorite automated, privilage escalation tool for Windows - Linux’s version is called linpeas.
After downloading and uploading it onto a target you can simply run it with /.winpeas.exe (or however you named your file) - It’s also on kali by default.
You can run it with extra flags to - for example - run just a specific part of it, I sometimes use -o to save the output.
Colors in winpeas output are important:
Red - Indicates a special privilege over an object or something is misconfigured.
Green - Indicates that some protections is enabled or something is well configured.
Cyan - Indicates active users.
Blue - indicates disabled users.
Light Yellow - indicates links.
Winpeas checks a ton of things and the full output is quite long. To fully understand the output, you also need to know a lot of concepts and attack techniques. Below is a list of all my notes that cover a different part of the winpeas output.
Cheatsheet
System Settings
Basic System Information
Showing All Microsoft Updates
System Last Shutdown Date/time (from Registry)
User Environment Variables
System Environment Variables
Audit Settings
Audit Policy Settings - Classic & Advanced
WEF Settings: WEF
LAPS Settings: LAPS
Wdigest: WDigest
LSA Protection: LSA Protection
Credentials Guard: Credentials Guard
Cached Creds
Enumerating saved credentials in Registry (CurrentPass)
AV Information
Windows Defender configuration: Microsoft Defender
UAC Status: User Account Control (UAC)
PowerShell Settings
Enumerating PowerShell Session Settings using the registry
PS default transcripts history
HKCU Internet Settings
HKLM Internet Settings
Drivers Information
Checking WSUS: Windows Server Update Services (WSUS)
Checking KrbRelayUp
Checking If Inside Container
Checking AlwaysInstallElevated: AlwaysInstallElevated
Enumerate LSA settings - auth packages included: LSA Protection
Enumerating NTLM Settings
Display Local Group Policy settings - local users/machine
Checking AppLocker effective policy
Enumerating Printers (WMI)
Enumerating Named Pipes: Named pipes
Enumerating AMSI registered providers
Enumerating Sysmon configuration
Enumerating Sysmon process creation logs (1)
Installed .NET versions
Interesting Events Information
TO DO