Commands
This page discusses how to register that commands are loaded/unloaded in a callback

Example Agent Response

1
{
2
"task_id": "task uuid here",
3
"user_output": "some user output here",
4
"commands": [
5
{
6
"action": "add",
7
"cmd": "shell"
8
},
9
{
10
"action": "add",
11
"cmd": "jsimport"
12
}
13
]
14
}
Copied!

Walkthrough

It's a common feature for agents to be able to load new functionality. Even within Mythic, you can create agents that only start off with a base set of commands and more are loaded in later. Using the commands keyword, agents can report back that commands are added ("action": "add") or removed ("action": "remove").
This is easily visible when interacting with an agent. When you start typing a command, you'll see an autocomplete list appear above the command prompt with a list of commands that include what you've typed so far. When you load a new command and register it back with mythic in this way, that new command will also appear in that autocomplete list.
Last modified 7mo ago
Copy link
Edit on GitHub