incursi0n 1cd2a5a51e Bug fix
2026-04-16 22:22:24 +08:00
2026-04-11 01:34:00 +08:00
2026-04-11 01:34:00 +08:00
2026-04-11 01:34:00 +08:00
2026-04-16 22:22:24 +08:00
2026-04-16 00:49:03 +08:00
2026-04-11 01:33:37 +08:00
2026-04-11 01:34:00 +08:00
2026-04-11 05:59:31 +08:00

GodPotatoBOF

A Beacon Object File port of GodPotato for Cobalt Strike.

This BOF triggers the GodPotato privilege escalation flow and supports two behaviors:

  • default mode: steal a SYSTEM token and spawn a process to run a command
  • token mode: steal a SYSTEM token and apply it to the current Beacon with BeaconUseToken()

To start

  1. Git clone the repo
  2. Run make

Usage

  1. Import godpotato.cna into Cobalt Strike
  2. Execute the BOF with the CNA alias
godpotato [token] [-cmd <command>] [-pipe <name>]

Argument summary:

(none)             Run "cmd /c whoami" as SYSTEM.
token              Apply a SYSTEM token to the current Beacon with BeaconUseToken().
-cmd <cmd>         Run a command as SYSTEM in a spawned process.
-pipe <name>       Use a custom named pipe. Default is a random pipe name.
help,-h,--help,/?  Show this help.

Examples:

godpotato
godpotato token
godpotato help
godpotato -cmd "cmd /c whoami /priv"
godpotato -cmd "cmd /c whoami" -pipe "mycustompipe"

Credits:

S
Description
Automated archival mirror of github.com/incursi0n/GodPotatoBOF
Readme MIT 897 KiB
Languages
C 98.1%
Makefile 1.9%