Callbacks¶
Active agent sessions — list, update, P2P edges, tokens.
Auto-generated
This page is generated from source code by the schema extractor. Do not edit by hand — changes will be overwritten.
mythic_get_all_callbacks¶
Get a list of all callbacks (active agent connections) in Mythic
No parameters.
mythic_get_active_callbacks¶
Get a list of all active callbacks
No parameters.
mythic_get_callback¶
Get details of a specific callback by its display_id (the number shown in the Mythic UI)
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
callback_id | int | required | Callback display_id (the number shown in the Mythic UI |
mythic_update_callback¶
Update a callback's properties (description, active status, etc.)
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
callback_id | int | required | Callback display_id (the number shown in the Mythic UI |
active | *bool | optional | Set callback active/inactive status |
locked | *bool | optional | Lock/unlock callback for tasking |
description | *string | optional | Set callback description |
ips | []string | optional | Update IP addresses |
user | *string | optional | Update username |
host | *string | optional | Update hostname |
mythic_delete_callback¶
Delete one or more callbacks from Mythic. Admin users perform a hard delete (removes callbacks and tasks from the database). Non-admin users perform a soft delete (sets active=false, dead=true), since hard deletion requires the mythic_admin role.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
callback_ids | []int | required | Array of callback display_ids (the numbers shown in the Mythic UI |
mythic_get_loaded_commands¶
Get all commands loaded in a callback, including both the agent's built-in commands and any dynamically loaded commands (e.g. forge script_only commands). Each command includes its payload_type_name (which agent it belongs to) and script_only flag (whether it runs server-side or on the agent). Use mythic_get_payload_type_commands to see all commands for a payload type without needing a callback.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
callback_id | int | required | Callback display_id (the number shown in the Mythic UI |
mythic_export_callback_config¶
Export a callback's configuration as JSON. IMPORTANT: The agent_callback_id parameter requires the callback's UUID string (e.g. 'eebbb756-3e16-42b4-88d8-1a01f3e5e320'), NOT the display_id number. Use mythic_get_callbacks to find the agent_callback_id (UUID) for a callback.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_callback_id | string | required | Callback UUID string (NOT display_id number). Get this from mythic_get_callbacks agent_callback_id field. |
mythic_import_callback_config¶
Import a callback configuration from JSON
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
config | string | required | JSON configuration string to import |
mythic_get_callback_tokens¶
Get list of tokens associated with a callback
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
callback_id | int | required | Callback display_id (the number shown in the Mythic UI |
mythic_add_callback_edge¶
Add a P2P connection between two callbacks in the callback graph
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
source_id | int | required | Source callback ID |
destination_id | int | required | Destination callback ID |
c2_profile_name | string | required | C2 profile name for the connection |
mythic_remove_callback_edge¶
Remove a P2P connection between callbacks
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
edge_id | int | required | ID of the callback graph edge to remove |