Skip to main content

Mythic C2 Container

The mythic_c2_container package creates an easy way to get everything set up in a new C2 container for a Mythic supported C2 Profile. Mythic is a Command and Control (C2) framework for Red Teaming. The code is on GitHub (https://github.com/its-a-feature/Mythic) and the Mythic project's documentation is on GitBooks (https://docs.mythic-c2.net). This code will be included in the default Mythic C2 containers, but is available for anybody making custom containers as well.

Installation

You can install the mythic scripting interface from PyPI:

pip install mythic-c2-container

How to use

Version 0.0.23 of the mythic_c2_container package supports version 2.2.12 of the Mythic project. This container reports to mythic as version 4 (PyPi version 0.0.23).

For the main execution of the heartbeat and service functionality, simply import and start the service:

from mythic_c2_container import mythic_service
mythic_service.start_service_and_heartbeat(debug=False)

You can also pass debug=True to the start_service_and_heartbeat() function to get detailed debugging information

For a C2 Profile's code to leverage the C2ProfileBase or RPC functionality:

from mythic_c2_container import C2ProfileBase
from mythic_c2_container.MythicRPC import MythicRPC
response = await MythicRPC().execute("function name", **kwargs)

You can get the Mythic version of this package with the get_version_info function:

from mythic_c2_container.mythic_service import get_version_info
get_version_info()

Where is the code?

The code for this PyPi package can be found at https://github.com/MythicMeta/Mythic_C2Profile_Container

Release files for mythic-c2-container 0.0.31

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mythic-c2-container 0.0.31
File Size Uploaded
mythic_c2_container-0.0.31.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mythic-c2-container 0.0.31
File Interpreter ABI Platform
mythic_c2_container-0.0.31-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / mythic_c2_container-0.0.31.tar.gz

Download URL mythic_c2_container-0.0.31.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6a5603320dbd7bcd65e4de8833bd3890d9d04e8842b2f8ecff23c8ecc42be6b
BLAKE2b-256 checksum
How to use checksums
5546f8f47289e1d8fee26994a4211fead2845be193abf47972f4eb62fccb99b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

Release files / mythic_c2_container-0.0.31-py3-none-any.whl

Download URL mythic_c2_container-0.0.31-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab52be56b5e66310845b9f7f406822f7eead7c3689ce5aa28f976f763c39c236
BLAKE2b-256 checksum
How to use checksums
ff86f8ed58b7ccfdb0ca2133bd976ef84a146e0acb635c114f34204d4ef170d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page