adaptix_agent_generate
Builds an AdaptixC2 agent artifact from an agent type, callback listener, and JSON build options, writes the binary to an output directory, and returns its path without overwriting earlier builds.
Instructions
Build an agent artifact. agent is the agent kind (beacon, kharon, gopher); listener_name is the listener it calls back to; config is a JSON string of THAT agent's build options — beacon is Windows-only (arch x64|x86, format Exe|Service Exe|DLL|Shellcode, sleep a STRING, jitter an INT); gopher covers linux|windows|macos (arch amd64|arm64, format Binary EXE, reconn_timeout a STRING, reconn_count an INT); label names the host it is for and is folded into the filename. gopher/kharon compile from source inside the install tree, so a root-owned install fails with permission denied — stage the extender beside the teamserver config instead. Writes the binary to output_dir and returns its path. Never overwrites an earlier build.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent": "<agent>",
"listener_name": "<listener_name>",
"config": "<config>"
},
"name": "adaptix_agent_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent kind: beacon, kharon or gopher. | |
| label | No | Tag folded into the filename so builds for several hosts never collide or overwrite: pass the target IP or hostname (agent-10.10.10.5.exe). Omitted = the teamserver's own name, with -2/-3 appended rather than overwriting. | |
| config | Yes | JSON string of the agent's build options. | |
| output_dir | No | Directory to write the artifact (default ADAPTIX_OUTPUT_DIR or ./adaptix-artifacts). | |
| listener_name | Yes | Listener name the agent calls back to. |