Vai al contenuto
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/privesc-windows-tokensActive Directory e Windows

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 installazioni+3 in 7 giorni27 StelleMITsincronizzato 22 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/privesc-windows-tokens

Scrive in ⁦~/.notholy/skills⁩ dopo aver controllato la firma e lo SHA-256.

FirmaFirmato, ed25519
wt/KMb6WRO…mXf68KAA==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchetto38c251ae…79a28ca0
38c251aec0d0…231c79a28ca01 file · ⁦1.3 KB⁩
ScansioneBassonessuna segnalazione
La scansione non ha trovato nulla da segnalare in questa versione.Vedi la scansione completa
Sorgentegithub.com/NoorQureshi/security-skills/tree/main/skills/privesc/privesc-windows-tokens@ee0e0c5

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.

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

  1. Confirm the privilege: whoami /priv — look for SeImpersonatePrivilege (or SeAssignPrimaryTokenPrivilege) Enabled.
  2. 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.
  3. Get SYSTEM: run the tool to spawn a SYSTEM shell or run a command (add a user, drop a beacon).
  4. 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 /priv first, 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.

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileNoNo
Esegue comandi shellNoNo
Usa la reteNoNo
Usa i connettoriNoNo
Controlla un browserNoNo

Segnalazioni della scansione

Rivisto il 13 nov 2026

La scansione non ha trovato nulla da segnalare in questa versione.

Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.

VersionePubblicataCommitSHA-256FirmaCambio di permessi
v2026.10.14-ee0e0c513 nov 2026ee0e0c538c251aeFirmata–

Chiedi tutto quello che il tuo perimetro consente.

Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.

  1. 1/3

    Crea l'account

    Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.

    PrivatoAzienda
  2. 2/3

    Aggiungi crediti

    Con carta. Paghi a token, senza abbonamento.

    $5.00ricarica minima
  3. 3/3

    Chiedi

    In chat, oppure installa la CLI ed esegui notholy login nel terminale.

    $ notholy login