🛠️ GodPotato

Installation

# Grab the release matching the target's .NET version (NET2/NET35/NET4) from:
# https://github.com/BeichenDream/GodPotato/releases

Common Commands

CommandDescription
GodPotato-NET4.exe -cmd "cmd.exe /c whoami"Run a single command as NT AUTHORITY\SYSTEM.
GodPotato-NET4.exe -cmd "cmd.exe /c C:\path\to\payload.bat"Run a batch file as SYSTEM — useful for chaining into a reverse shell one-liner.

Tips & Tricks

  • Requires the current account to hold SeImpersonatePrivilege (whoami /priv) — this is the case for most IIS app pool identities and service accounts by default.
  • Works by abusing the DCOM/RPC activation flow to coerce a SYSTEM-authenticated connection back to a local named pipe, then impersonating the resulting token — no dependency on a specific leaked handle, unlike some older Potato variants.
  • Newer, generally unpatched alternative to JuicyPotato/JuicyPotatoNG/RoguePotato when those fail on recent Windows builds (e.g. Server 2019+).
FileCreated
HTB - ScrambledMonday, July 20th 2026, 11:37:01 pm

References: GodPotato GitHub