Skip to main content
The goal here is building a full picture of the box before touching anything: who you are, what’s installed, what’s running, what’s reachable, and what’s lying around unprotected, before acting on any of it. Commands are split by shell (CMD vs PowerShell) since you won’t always have both available. Exploiting what turns up here (token privileges, service misconfigurations, scheduled task hijacking) belongs on the Windows Privilege Escalation page, Active Directory enumeration (domain groups, trusts, dsquery, LAPS) belongs in the Active Directory section instead, this page covers the local host only.

Automated Enumeration

winPEAS is the NR 1 Tool to go with, it has both, a .exe and a .ps1.

System Information


Users & Groups

whoami /priv is this page’s equivalent of sudo -l on Linux, the single highest-value command here. A token privilege like SeImpersonatePrivilege or SeBackupPrivilege showing as enabled is a direct lead for the privilege escalation page.

Domain Awareness

A quick check for whether this box is domain-joined, worth knowing before deciding whether the AD section is relevant at all. Full domain enumeration (net group /domain, dsquery, LAPS, trusts) lives there, not here.

Network Information


Processes & Services

Named pipes are worth a look on a box you suspect runs privileged services, a writable or misconfigured pipe is a lead for the privilege escalation page.

Files & Shares


Credential & Sensitive File Hunting

A wider sweep across common sensitive-data extensions and keywords, worth running against both the local disk and any mounted share.
A Import-Clixml-saved credential object stores the password encrypted with DPAPI, readable back out by the same user/machine that created it, worth checking any .xml found during the sweeps above.
Windows setup/unattended-install files frequently still contain the local administrator password set during imaging, base64-encoded but not otherwise protected.
Credentials harvested from the browser or Credential Manager (SharpChrome, LaZagne) are covered in depth on the Browser Cookies Attacks page rather than duplicated here, check there once a user’s profile is accessible.

Automated Sensitive-File Hunting


Metasploit Post Modules

ModuleDescription
post/windows/gather/enum_logged_on_usersCurrently logged-on users
post/windows/gather/enum_applicationsInstalled applications
post/windows/gather/enum_computersComputers visible to this host
post/windows/gather/enum_patchesInstalled patches
post/windows/gather/enum_sharesAccessible shares
post/multi/gather/ping_sweepPing sweep from the compromised host

Breaking Out of Restricted Environments

Kiosk mode, Citrix, and other locked-down desktop environments need their own escape techniques before any of the enumeration above is even possible.

Breaking Out of Windows Environments

General kiosk/restricted-desktop escape techniques.

Breaking Out of Citrix

Citrix and similar remote-desktop-specific escapes.

Quick Reference Tools

LOLBAS

Lookup table of legitimate Windows binaries abusable for privilege escalation, the Windows equivalent of GTFOBins.

winPEAS

Automated enumeration, see above.

JAWS

Lighter automated enumeration script, see above.

Snaffler

Automated sensitive-file and credential hunting across shares and the local disk.