• Stars
    star
    310
  • Rank 134,926 (Top 3 %)
  • Language
    Rust
  • License
    BSD 3-Clause "New...
  • Created over 2 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mythic C2 agent targeting Linux and Windows hosts written in Rust

Thanatos Logo

Thanatos

Thanatos is a Windows and Linux C2 agent written in rust.

Installation

To install Thanatos, you will need Mythic set up on a machine.

In the Mythic root directory, use mythic-cli to install the agent.

sudo ./mythic-cli install github https://github.com/MythicAgents/thanatos
sudo ./mythic-cli payload start thanatos

Thanatos supports the http C2 profile:

sudo ./mythic-cli install github https://github.com/MythicC2Profiles/http
sudo ./mythic-cli c2 start http

Features

  • Background job management
  • Built-in ssh client
    • Connect to a machine and download/upload files between that machine and Mythic
    • Get directory listings from machines using sftp
    • Spawn agents on machines using ssh
    • ssh-agent hijacking
  • Streaming portscan
  • Stand up TCP redirectors

Future Additions

  • v0.2.0
    • Socks proxying
    • Windows token manipulation
    • More browser script integration
    • DNS C2 profile
    • p2p capabilities
    • In memory shellcode execution execute-shellcode

General Commands

Command Syntax Description
cat cat [file] Output the contents of a file.
cd cd [new directory] Change directory.
cp cp [source] [destination] Copy a file from [source] to [destination].
download download [path] Download a file from the target system (supports relative paths).
exit exit Exit the agent.
getenv getenv Get the current environment variables.
getprivs getprivs Get the privileges of the agent session.
jobkill jobkill [job id] Shutdown a running background job.
jobs jobs List currently running background jobs.
ls ls [directory] List files or directories (supports relative paths).
mkdir mkdir [directory] Make a new directory.
mv mv [source] [destination] Move a file from [source] to [destination] (supports relative paths).
portscan portscan [popup] Scan a list of IPs for open ports.
ps ps Get a list of currently running processes.
pwd pwd Print working directory.
redirect redirect [<bindhost>:<bindport>:<connecthost>:<connectport>] Setup a TCP redirector on the remote system.
rm rm [path] Remove a file or directory (supports relative paths).
setenv setenv [name] [value] Set environment variable [name] to [value].
shell shell [command] Run a shell command with bash -c on Linux or cmd.exe /c on Windows in a new thread.
sleep sleep [interval][units] [jitter] Set the sleep interval and jitter (supports unit suffixing).
ssh ssh [popup] Use ssh to execute commands, download/upload files or grab directory listings.
ssh-agent ssh-agent [-c <socket>] [-d] [-l] Connect to running ssh agent sockets on the host or list identities.
ssh-spawn ssh-spawn [popup] Spawn a Mythic agent on a remote host using ssh.
unsetenv unsetenv [var] Unset an environment variable.
upload upload [popup] Upload a file to the host machine.

Windows-specific Commands

Command Syntax Description
powershell powershell [command] Run a command using powershell.exe /c in a new thread.

More Repositories

1

Apollo

A .NET Framework 4.0 Windows Agent
C#
440
star
2

Athena

C
172
star
3

Nimplant

A cross-platform implant written in Nim
Nim
168
star
4

Medusa

Medusa is a cross-platform C2 agent compatible with Python 2.7 and 3.8, compatible with Mythic
Python
158
star
5

poseidon

Poseidon is a Golang agent targeting Linux and macOS
Go
110
star
6

hermes

Swift 5 macOS agent
Swift
98
star
7

merlin

Cross-platform post-exploitation HTTP Command & Control agent written in golang
Go
84
star
8

venus

A Visual Studio Code Extension agent for Mythic C2
Python
63
star
9

apfell

JavaScript for Automation (JXA) macOS agent
Python
60
star
10

orthrus

Uses Apple's MDM protocol to backdoor a device with a malicious profile.
Python
49
star
11

freyja

Freyja is a Golang, Purple Team agent that compiles into Windows, Linux and macOS x64 executables.
Go
45
star
12

typhon

Payload designed for targeting Jamf enrolled devices.
Python
35
star
13

nemesis

Nemesis agent for Mythic
Python
23
star
14

sliver

Sliver agents for Mythic
Python
22
star
15

hercules

Mythic Developer Series: Workshop Golang Agent
Go
21
star
16

arachne

Webshell agent in aspx and php
Python
16
star
17

leviathan

JavaScript
15
star
18

scarecrow_wrapper

Go
14
star
19

atlas

C#
13
star
20

bloodhound

Bloodhound agent for Mythic
Python
13
star
21

pickle_wrapper

Python
8
star
22

ghostwriter

Ghostwriter agent for Mythic
Python
8
star
23

zippy

A 'trainer' agent which is great for showing customers a nice fake 'ransom' screen. Requires target machine to have head - since support for OpenGL 2.1 is currently required by Godot.
GDScript
7
star
24

service_wrapper

.NET Service EXE wrapper for shellcode payloads
Python
5
star
25

.github

3
star