Skip to content

Cross-platform post-exploitation HTTP Command & Control agent written in golang

License

Notifications You must be signed in to change notification settings

MythicAgents/merlin

Repository files navigation

Merlin

Cross-platform post-exploitation HTTP Command & Control agent written in golang

This repository is a port of the Merlin agent from https://github.com/Ne0nd0g/merlin to run on the Mythic framework. This implementation uses Mythic's Default HTTP Command and Control profile

Merlin documentation can be found at https://merlin-c2.readthedocs.io/en/latest/index.html

Mythic documentation can be found at https://docs.mythic-c2.net/

Getting Started

To get started:

  1. Clone the Mythic repository
  2. Pull down the http C2 profile from the MythicC2Profiles organization
  3. Pull down the Merlin agent from the MythicAgents organization
  4. Start Mythic
  5. Navigate to https://127.0.0.1:7443 and login with a username of mythic_admin and password retrieved from the .env file

This code snippet will execute most of the getting started steps:

cd ~/
git clone https://github.com/its-a-feature/Mythic
cd Mythic/
sudo make
sudo ./mythic-cli install github https://github.com/MythicC2Profiles/http
sudo ./mythic-cli install github https://github.com/MythicAgents/merlin
sudo ./mythic-cli start
sudo cat .env | grep MYTHIC_ADMIN_PASSWORD

Use the following commands to run the Merlin container from the command line without using Docker:

NOTE: Replace the RabbitMQ password with the one from the .env file in the root Mythic folder

cd merlin/Payload_Type/merlin/container
export MYTHIC_SERVER_HOST="127.0.0.1"
export RABBITMQ_HOST="127.0.0.1"
export RABBITMQ_PASSWORD="K5SHkn1fk2pcT0YkQxTTMgO5gFwjiQ"
export DEBUG_LEVEL=debug
go run main.go

Known Limitations

The table captures known limitations of the Merlin agent on the Mythic framework.

Feature Status Notes
MiniDump Not Implemented
File Chunking Not Implemented

About

Cross-platform post-exploitation HTTP Command & Control agent written in golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages