Thanatos 是一个用 Rust 编写的 Windows 和 Linux C2 代理。
要安装 Thanatos,您需要在机器上设置 Mythic。
在 Mythic 根目录中,使用 mythic-cli 安装代理。
sudo ./mythic-cli install github https://github.com/MythicAgents/thanatos
sudo ./mythic-cli payload start thanatos
Thanatos 支持 http C2 配置文件:
sudo ./mythic-cli install github https://github.com/MythicC2Profiles/http
sudo ./mythic-cli c2 start http
execute-shellcode| 命令 | 语法 | 描述 |
|---|---|---|
| powershell | powershell [command] | 在新线程中使用 powershell.exe /c 运行命令。 |
| 命令 | 语法 | 描述 |
|---|
| cat | cat [file] | 输出文件内容。 |
| cd | cd [new directory] | 改变目录。 |
| cp | cp [source] [destination] | 将文件从 [source] 复制到 [destination]。 |
| download | download [path] | 从目标系统下载文件(支持相对路径)。 |
| exit | exit | 退出代理。 |
| getenv | getenv | 获取当前环境变量。 |
| getprivs | getprivs | 获取代理会话的权限。 |
| jobkill | jobkill [job id] | 关闭正在运行的后台任务。 |
| jobs | jobs | 列出当前正在运行的后台任务。 |
| ls | ls [directory] | 列出文件或目录(支持相对路径)。 |
| mkdir | mkdir [directory] | 创建新目录。 |
| mv | mv [source] [destination] | 将文件从 [source] 移动到 [destination](支持相对路径)。 |
| portscan | portscan [popup] | 扫描 IP 列表以查找开放端口。 |
| ps | ps | 获取当前正在运行的进程列表。 |
| pwd | pwd | 打印当前工作目录。 |
| redirect | redirect [<bindhost>:<bindport>:<connecthost>:<connectport>] | 在远程系统上设置 TCP 重定向器。 |
| rm | rm [path] | 删除文件或目录(支持相对路径)。 |
| setenv | setenv [name] [value] | 将环境变量 [name] 设置为 [value]。 |
| shell | shell [command] | 在新的线程中运行 shell 命令,在 Linux 上使用 bash -c,在 Windows 上使用 cmd.exe /c。 |
| sleep | sleep [interval][units] [jitter] | 设置睡眠间隔和抖动(支持单位后缀)。 |
| ssh | ssh [popup] | 使用 ssh 执行命令、下载/上传文件或获取目录列表。 |
| ssh-agent | ssh-agent [-c <socket>] [-d] [-l] | 连接到主机上正在运行的 ssh-agent 套接字或列出身份。 |
| ssh-spawn | ssh-spawn [popup] | 使用 ssh 在远程主机上生成 Mythic 代理。 |
| unsetenv | unsetenv [var] | 取消设置环境变量。 |
| upload | upload [popup] | 将文件上传到主机。 |