{"id":13579124,"url":"https://github.com/MythicAgents/thanatos","last_synced_at":"2025-04-05T20:33:09.705Z","repository":{"id":42522553,"uuid":"467251012","full_name":"MythicAgents/thanatos","owner":"MythicAgents","description":"Mythic C2 agent targeting Linux and Windows hosts written in Rust","archived":false,"fork":false,"pushed_at":"2024-12-19T19:07:03.000Z","size":22465,"stargazers_count":332,"open_issues_count":16,"forks_count":47,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-29T00:29:21.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MythicAgents.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-07T20:35:33.000Z","updated_at":"2025-03-15T19:13:04.000Z","dependencies_parsed_at":"2024-08-01T15:30:15.325Z","dependency_job_id":"77b3cf24-7007-4a71-8a4b-23b1b188cafc","html_url":"https://github.com/MythicAgents/thanatos","commit_stats":null,"previous_names":["mythicagents/tetanus"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MythicAgents%2Fthanatos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MythicAgents%2Fthanatos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MythicAgents%2Fthanatos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MythicAgents%2Fthanatos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MythicAgents","download_url":"https://codeload.github.com/MythicAgents/thanatos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399836,"owners_count":20932875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:01:36.739Z","updated_at":"2025-04-05T20:33:04.695Z","avatar_url":"https://github.com/MythicAgents.png","language":"Rust","funding_links":[],"categories":["Rust","others"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Thanatos Logo\" src=\"agent_icons/thanatos.svg\" height=\"50%\" width=\"50%\"\u003e\n\u003c/p\u003e\n\n# Thanatos\n\n[![GitHub License](https://img.shields.io/github/license/MythicAgents/thanatos)](https://github.com/MythicAgents/thanatos/blob/main/LICENSE)\n[![GitHub Release](https://img.shields.io/github/v/release/MythicAgents/thanatos)](https://github.com/MythicAgents/thanatos/releases/latest)\n[![Release](https://github.com/MythicAgents/thanatos/workflows/Release/badge.svg)](https://github.com/MythicAgents/thanatos/actions/workflows/release.yml)\n\nThanatos is a Windows and Linux C2 agent written in rust.\n\n# Installation\nTo install Thanatos, you will need [Mythic](https://github.com/its-a-feature/Mythic) set up on a machine.\n\nIn the Mythic root directory, use `mythic-cli` to install the agent.\n```bash\nsudo ./mythic-cli install github https://github.com/MythicAgents/thanatos\nsudo ./mythic-cli payload start thanatos\n```\n\nThanatos supports the http C2 profile:  \n```bash\nsudo ./mythic-cli install github https://github.com/MythicC2Profiles/http\nsudo ./mythic-cli c2 start http\n```\n\n## Features\n  - Background job management\n  - Built-in ssh client\n    * Connect to a machine and download/upload files between that machine and Mythic\n    * Get directory listings from machines using sftp\n    * Spawn agents on machines using ssh\n    * ssh-agent hijacking\n  - Streaming portscan\n  - Stand up TCP redirectors\n\n\n## Future Additions\n  - v0.2.0\n    * [ ] Socks proxying\n    * [ ] Windows token manipulation\n    * [ ] More browser script integration\n    * [ ] DNS C2 profile\n    * [ ] p2p capabilities\n    * [ ] In memory shellcode execution `execute-shellcode`\n\n## General Commands\n\nCommand | Syntax | Description\n------- | ------ | -----------\ncat | `cat [file]` | Output the contents of a file.\ncd | `cd [new directory]` | Change directory.\ncp | `cp [source] [destination]` | Copy a file from [source] to [destination].\ndownload | `download [path]` | Download a file from the target system (supports relative paths).\nexit | `exit` | Exit the agent.\ngetenv | `getenv` | Get the current environment variables.\ngetprivs | `getprivs` | Get the privileges of the agent session.\njobkill | `jobkill [job id]` | Shutdown a running background job.\njobs | `jobs` | List currently running background jobs.\nls | `ls [directory]` | List files or directories (supports relative paths).\nmkdir | `mkdir [directory]` | Make a new directory.\nmv | `mv [source] [destination]` | Move a file from [source] to [destination] (supports relative paths).\nportscan | `portscan [popup]` | Scan a list of IPs for open ports.\nps | `ps` | Get a list of currently running processes.\npwd | `pwd` | Print working directory.\nredirect | `redirect [\u003cbindhost\u003e:\u003cbindport\u003e:\u003cconnecthost\u003e:\u003cconnectport\u003e]` | Setup a TCP redirector on the remote system.\nrm | `rm [path]` | Remove a file or directory (supports relative paths).\nsetenv | `setenv [name] [value]` | Set environment variable [name] to [value].\nshell | `shell [command]` | Run a shell command with `bash -c` on Linux or `cmd.exe /c` on Windows in a new thread.\nsleep | `sleep [interval][units] [jitter]` | Set the sleep interval and jitter (supports unit suffixing).\nssh | `ssh [popup]` | Use ssh to execute commands, download/upload files or grab directory listings.\nssh-agent | `ssh-agent [-c \u003csocket\u003e] [-d] [-l]` | Connect to running ssh agent sockets on the host or list identities.\nssh-spawn | `ssh-spawn [popup]` | Spawn a Mythic agent on a remote host using ssh.\nunsetenv | `unsetenv [var]` | Unset an environment variable.\nupload | `upload [popup]` | Upload a file to the host machine.\n\n### Windows-specific Commands\nCommand | Syntax | Description\n------- | ------ | -----------\npowershell | `powershell [command]` | Run a command using `powershell.exe /c` in a new thread.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMythicAgents%2Fthanatos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMythicAgents%2Fthanatos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMythicAgents%2Fthanatos/lists"}