Metadata-Version: 2.5
Name: mythic-console
Version: 1.0.0
Summary: A Textual terminal UI for interacting with a Mythic C2 server.
Project-URL: Homepage, https://github.com/thespicybyte/MythicConsole
Project-URL: Repository, https://github.com/thespicybyte/MythicConsole
Author: thespicybyte
License: MIT License
        
        Copyright (c) 2024 thespicybyte
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: c2,mythic,red-team,textual,tui
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.11
Requires-Dist: cmd2~=4.3.0
Requires-Dist: mythic~=0.2.11
Requires-Dist: rich~=15.0.0
Requires-Dist: textual-console~=0.4.0
Requires-Dist: textual~=8.2.8
Requires-Dist: typing-extensions~=4.16.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio~=0.24; extra == 'dev'
Requires-Dist: pytest-mock~=3.14; extra == 'dev'
Requires-Dist: pytest~=8.3; extra == 'dev'
Requires-Dist: textual-dev~=1.8.0; extra == 'dev'
Description-Content-Type: text/markdown

# Mythic Console

Mythic Console is a terminal user interface that can be used to interact
with [Mythic C2](https://github.com/its-a-feature/Mythic).
Mythic Console is not designed to replace the web interface but rather provide an alternate interface for
users to interact with callbacks and operations. This application was made with [Textual](https://textual.textualize.io/).

# Supported Agents

Any Mythic payload type works out of the box: Mythic Console generates its commands from the
server's own command catalog, no agent-specific code required. An agent can be enhanced further
with an installable plugin (custom commands, output rendering, scripts). See
[customize.md](customize.md). For worked examples, see
[Mythic Console Plugins](https://github.com/thespicybyte/MythicConsolePlugins), which includes a
reference Poseidon plugin.

# Demo

https://github.com/user-attachments/assets/daace4bd-f779-4984-983c-5c38b7562d8d

# Highlights

Any Mythic payload type works out of the box: the console builds its command set from the server's
own catalog, with no agent-specific code required. Alongside that it provides a plugin system for
curation, `payload` and `profiles` commands, an interactive payload builder, command and file
pickers, autocomplete, and live callback management.

![tasking a callback](docs/images/callback-tasking.svg)

See the [feature overview](docs/whats-new-1.0.md) for a walkthrough.

# Quick Start

## Requirements

Mythic Console requires python 3.11 or greater.

## Installation

```shell
pipx install mythic-console
```

Or run it directly without installing, via [uv](https://docs.astral.sh/uv/):

```shell
uvx mythic-console
```

### Development install

```shell
git clone https://github.com/thespicybyte/MythicConsole.git
cd MythicConsole
python -m venv venv

# linux
source venv/bin/activate

# windows
.\venv\Scripts\activate

pip install -e ".[dev]"
```

## Configuration

No other configuration is required but there are a couple ways to speed up authentication.
When you start the application, the user will be prompted for the username, password, and server.
These three values may be passed in and populated for you based on environment variables or the `.env` config file.
Other variables may be passed to further configure your environment.

| Name                    | Description                                                                                         |
|-------------------------|-----------------------------------------------------------------------------------------------------|
| MYTHIC_CONSOLE_USER     | Populates the username field                                                                        |
| MYTHIC_CONSOLE_PASSWORD | Populates the password field                                                                        |
| MYTHIC_SERVER_URL       | Populates the server field                                                                          |
| DOWNLOAD_DIRECTORY      | Configures the base directory where files downloaded from Mythic are stored                         |
| LOG_DIRECTORY           | Set the  directory logs are stored in. Default is cwd                                               |
| LOG_FILE                | Set the log  file. Default is .console.log                                                          |
| LOG_LEVEL               | Set the log level. Available options are `debug`, `info`, `warning`, and `error`. Default is `info` |
| PLUGIN_DIRECTORY        | Set the directory plugins install into. Default is `${XDG_CONFIG_HOME:-~/.config}/mythicconsole/plugins` |

## Execution

```shell
mythic-console
```

Running from a development checkout (editable install) uses the same command.

## Keyboard Shortcuts

Use `Ctrl+<` to shrink the sidebar. Use `Ctrl+>` to grow the sidebar. These work on Ghostty and
other terminals that support the Kitty keyboard protocol (for example kitty, WezTerm, and iTerm2
with the protocol enabled).

On a terminal that sends `Alt` correctly, you can also use `Alt+Left` to shrink the sidebar and
`Alt+Right` to grow it. On older terminals that support neither, the sidebar keys do nothing.

# Extend Mythic Console

Supporting a new agent needs zero code. Check out the [customization page](customize.md) to learn
how to add polish as an installable plugin: a curated command, a custom renderer, a confirmation
prompt, a client-side script, or a full hand-written agent. The
[Mythic Console Plugins](https://github.com/thespicybyte/MythicConsolePlugins) repository collects
ready-to-install examples to learn from or build on.

# Road Map

- [ ] More curated agent plugins

