MythicC2Profiles / http

Simple HTTP async comms using standard GET/POST requests
29 stars 15 forks source link

Is there a way to configure the server via api/cli? #2

Closed gmatuz closed 2 years ago

gmatuz commented 2 years ago

could not really find a config option for this or something that would describe the API

gmatuz commented 2 years ago

Found my answer: https://docs.mythic-c2.net/customizing/c2-related-development/c2-profile-code/server-side-coding/c2-configuration-files you can directly write this file (not sure how you apply it)

also there are endpoints /api/v1.4/c2profile_upload_file_webhook and /api/v1.4/start_stop_profile_webhook

its-a-feature commented 2 years ago

Hey! Great question. I don't currently have anything built in that does it, but you found the relevant pieces anyway. By simply writing to that config.json file within the C2 Profile container, the updates are automatically reflected inside of the container. To "apply" them, you'd simply need to stop the profile and start it again (via that start_stop_profile_webhook) so that the server code in the profile can read in the changes to the config file and apply them