privesc-windows-tokens
Windows privilege escalation via token impersonation privileges — SeImpersonate/SeAssignPrimaryToken (the Potato family) and related token abuse to SYSTEM. Load with a Windows shell as a service/web account, on "SeImpersonate", "whoami /priv", IIS/MSSQL service context, or "got a shell on Windows".
v2026.10.14-ee0e0c53 instalações+3 em 7 dias27 EstrelasMITsincronizado há 22 horas
Instalar
Ainda não tem a CLI da NotHoly? Instale primeiro.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/privesc-windows-tokensGrava em ~/.notholy/skills depois de conferir a assinatura e o SHA-256.
AssinaturaAssinado, ed25519
Pacote38c251ae…79a28ca0
38c251aec0d0…231c79a28ca01 arquivo · 1.3 KBVarreduraBaixonenhum achado
Fontegithub.com/NoorQureshi/security-skills/tree/main/skills/privesc/privesc-windows-tokens@ee0e0c5
Este item ainda não foi escrito no seu idioma, então aparece em English.
Nesta página
When it applies
You have code execution on Windows as a service or web account (IIS iis apppool, MSSQL, a service)
that holds SeImpersonatePrivilege (or SeAssignPrimaryTokenPrivilege). These accounts can't
do much directly but can impersonate a token — and coax SYSTEM into handing one over.
Why it works
SeImpersonate lets a process act with any token it can obtain. The "Potato" technique tricks a
SYSTEM service (via a local RPC/named-pipe/COM authentication) into authenticating to an attacker-controlled
pipe; the low-priv process impersonates that SYSTEM token and spawns a process as SYSTEM.
Method
- Confirm the privilege:
whoami /priv— look forSeImpersonatePrivilege(orSeAssignPrimaryTokenPrivilege) Enabled. - Pick the right Potato for the OS/build:
- PrintSpoofer — modern, uses the print spooler named pipe:
PrintSpoofer.exe -i -c cmd. - GodPotato — works across Windows 8–11 / Server 2012–2022 via DCOM:
GodPotato -cmd "cmd /c whoami". - JuicyPotatoNG / RoguePotato — where applicable.
- PrintSpoofer — modern, uses the print spooler named pipe:
- Get SYSTEM: run the tool to spawn a SYSTEM shell or run a command (add a user, drop a beacon).
- If no SeImpersonate: pivot to other Windows vectors — unquoted service paths, weak service
perms (
PowerUp/winPEAS), AlwaysInstallElevated, DLL hijacking, autoruns.
Gotchas
- The right Potato depends on Windows version/patch — if one fails, try GodPotato (widest coverage).
- Print Spooler disabled → PrintSpoofer won't work; use a DCOM-based one.
- Service accounts (IIS/MSSQL) almost always have SeImpersonate — check
whoami /privfirst, always.
Verify success
A shell/command running as NT AUTHORITY\SYSTEM (whoami = SYSTEM), from the impersonation.
References
itm4n PrintSpoofer; GodPotato; "Rotten/Juicy Potato" lineage; winPEAS/PowerUp for the alternatives.
Arquivos desta versão
- SKILL.md2.4 KB
Permissões
| Permissão | Declarada | Encontrada na varredura |
|---|---|---|
| Lê arquivos | Não | Não |
| Grava arquivos | Não | Não |
| Roda comandos no shell | Não | Não |
| Usa a rede | Não | Não |
| Usa conectores | Não | Não |
| Controla um navegador | Não | Não |
Achados da varredura
Revisado em 13 de nov. de 2026
A varredura não encontrou nada para apontar nesta versão.
Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.
| Versão | Publicada em | Commit | SHA-256 | Assinatura | Mudança de permissão |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 de nov. de 2026 | ee0e0c5 | 38c251ae | Assinada | – |
Mais de NoorQureshi
Tudo deste publicadorMais em Active Directory e Windows
Ver a categoria- offensive-windows-mitigationssnailsploit/offensive-windows-mitigations4
- active-directory-attack-pathssecurityskills/active-directory-attack-paths3
- analyzing-powershell-script-block-loggingmukul975/analyzing-powershell-script-block-logging3
- offensive-windows-boundariessnailsploit/offensive-windows-boundaries3
- evil-winrmaeondave/evil-winrm3
- bloodyadaeondave/bloodyad3
Pergunte tudo o que o seu escopo permite.
Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.
- 1/3
Crie a conta
Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.
Pessoa físicaEmpresa - 2/3
Adicione créditos
No cartão. Você paga por token, sem assinatura.
$5.00recarga mínima - 3/3
Pergunte
No chat, ou instale o CLI e rode notholy login no terminal.
$ notholy login