First Steps
What are the first things to do when creating a new payload type in Mythic?
So you want to make a new Payload Type
The first step is to copy the /Mythic/Example_Payload_Type
folder into the /Mythic/Payload_Types/
folder and rename it to match the name of your new agent. For the purposes here, let's assume your new agent is called MyNewAgent
. So you'd copy that directory as /Mythic/Payload_Types/MyNewAgent
.
The next thing you need to do is edit the builder file (https://github.com/its-a-feature/Mythic/blob/master/Example_Payload_Type/mythic/agent_functions/builder.py) to reflect the information for your new agent. Specifically, you'll want to edit it like:
More information on each component in the file can be found in Payload Type Info. Now you can run sudo ./mythic-cli payload add MyNewAgent
and sudo ./mythic-cli payload start MyNewAgent
and you'll see the container build, start, and you'll see it sync with the Mythic server (more about that process at Container Syncing).
Congratulations! You now have a payload type that Mythic recognizes!
Now you'll want to actually configure your Docker Container, look into building your agent, how to declare new commands, how to process tasking to these commands, and finally hooking your agent into all the cool features of Mythic.
Last updated