Step 1.5 Running
You’ve defined some stuff, now let’s do something with it (without Docker). On your dev system where you’re making this code, let’s run it. We’ll need a few things first though. First off, we just need to run (or compile) our definition. In Python, this just means importing the new class and callingmythic_container.mythic_service.start_and_run_forever().
For Go, it means calling that Initialize function and MythicContainer.StartAndRunForever with the MythicContainer.MythicServiceC2 service specified.
main.py
For Python, instead of doing a Makefile and providing all of the parameters via environment variables, you can create a
rabbitmq_config.json file in the same directory as your main.py.
This file will be automatically ingested when the main.py file starts. You can provide the same options here, like a rabbitmq_password field and a rabbitmq_host field with the right data filled in.MyC2 appear in the Mythic UI under the InstalledServices -> C2 tab.

You’ll notice that there might be a warning about being unable to start the internal server for the profile and that it’s not listening for connections.
Don’t worry, that’s expected! After all, you don’t have any actual server code yet, just the Mythic definition.
