MythicContainer

package module
v1.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

README

MythicContainer

GoLang package for creating Mythic Payload Types, C2 Profiles, Translation Services, WebHook listeners, and Loggers

Install

go get http://github.com/MythicMeta/MythicContainer

Usage

Import the package, github.com/MythicMeta/MythicContainer and run the service via MythicContainer.StartAndRunForever. You can import as many Payload Types, C2 Profiles, Translation Services, WebHook listeners, and Loggers as you want as long as you call their Initialize() function and supply their corresponding service type when starting as shown below.

package main

import (
	httpfunctions "PoseidonContainer/http/c2functions"
	"PoseidonContainer/my_logger"
	"PoseidonContainer/my_webhooks"
	mytranslatorfunctions "PoseidonContainer/no_actual_translation/translationfunctions"
	poseidonfunctions "PoseidonContainer/poseidon/agentfunctions"
	poseidontcpfunctions "PoseidonContainer/poseidon_tcp/c2functions"
	servicewrapperfunctions "PoseidonContainer/service_wrapper/agentfunctions"
	"github.com/MythicMeta/MythicContainer"
)

func main() {
	// load up the agent functions directory so all the init() functions execute
	poseidonfunctions.Initialize()
	httpfunctions.Initialize()
	poseidontcpfunctions.Initialize()
	servicewrapperfunctions.Initialize()
	mytranslatorfunctions.Initialize()
	my_webhooks.Initialize()
	my_logger.Initialize()
	// sync over definitions and listen
	MythicContainer.StartAndRunForever([]MythicContainer.MythicServices{
		MythicContainer.MythicServicePayload,
		MythicContainer.MythicServiceC2,
		MythicContainer.MythicServiceTranslationContainer,
		MythicContainer.MythicServiceWebhook,
		MythicContainer.MythicServiceLogger,
	})
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAndRunForever

func StartAndRunForever(services []MythicServices)

Types

type MythicServices

type MythicServices = string
const (
	MythicServicePayload              MythicServices = "payload"
	MythicServiceLogger               MythicServices = "logger"
	MythicServiceWebhook              MythicServices = "webhook"
	MythicServiceC2                   MythicServices = "c2"
	MythicServiceTranslationContainer MythicServices = "translation"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL