{"id":20308622,"url":"https://github.com/rainbowpigeon/einstein","last_synced_at":"2025-08-26T16:21:36.297Z","repository":{"id":58522117,"uuid":"531021374","full_name":"rainbowpigeon/Einstein","owner":"rainbowpigeon","description":"PoC Go C2 server that mimics Mattermost HTTP traffic","archived":false,"fork":false,"pushed_at":"2022-09-04T06:12:50.000Z","size":35,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T15:56:16.542Z","etag":null,"topics":["c2","command-and-control","command-control","go","golang","http","http-server","malware","mattermost","rat","remote-access-tool","remote-access-trojan","remote-admin-tool","server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainbowpigeon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-31T09:45:25.000Z","updated_at":"2024-09-30T07:56:00.000Z","dependencies_parsed_at":"2023-01-17T20:02:18.562Z","dependency_job_id":null,"html_url":"https://github.com/rainbowpigeon/Einstein","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rainbowpigeon/Einstein","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowpigeon%2FEinstein","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowpigeon%2FEinstein/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowpigeon%2FEinstein/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowpigeon%2FEinstein/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainbowpigeon","download_url":"https://codeload.github.com/rainbowpigeon/Einstein/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowpigeon%2FEinstein/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272236588,"owners_count":24897452,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c2","command-and-control","command-control","go","golang","http","http-server","malware","mattermost","rat","remote-access-tool","remote-access-trojan","remote-admin-tool","server"],"created_at":"2024-11-14T17:23:15.867Z","updated_at":"2025-08-26T16:21:35.849Z","avatar_url":"https://github.com/rainbowpigeon.png","language":"Go","readme":"# Einstein\n\nPoC Go C2 server that mimics [Mattermost](https://mattermost.com/) HTTP traffic\n## Important Things To Note\n\n- Untested and unpolished code\n- No help menu\n- No exception handling\n- No corresponding client provided\n- No functionality to customize Einstein's configuration\n- Filenames don't really mean anything\n- Intentionally free of external packages/dependencies\n\n## Running\n\nClone the repository and `go run Einstein.go`.\n\n## Details\n\n### Commands\n\n| Command       | Purpose                          |\n|---------------|----------------------------------|\n| `list`        | List registered clients          |\n| `select`      | Select client                    |\n| `unselect`    | Unselect client                  |\n| `current`     | Print currently-selected client  |\n| `up`          | Upload file to client            |\n| `ex`          | Execute system command on client |\n| `persist`     | Install persistence on client    |\n| `down`        | Download file from client        |\n| `snap`        | Take screenshot of client        |\n| `exit`/`quit` | Shutdown server                  |\n\n### Endpoints\n\n| Method | Path                                                        | Purpose                                                                     |\n|--------|-------------------------------------------------------------|-----------------------------------------------------------------------------|\n| GET    | `/api/v\u003c\u003e/plugins/webapp`                                   | Initial beacon to register client \u0026 commence checking for pulses/heartbeats |\n| POST   | `/api/v\u003c\u003e/users/status/ids`                                 | Poll for and retrieve jobs for client + register pulse                      |\n| POST   | `/api/v\u003c\u003e/users/ids?since=\u003cunix_timestamp_in_milliseconds\u003e` | Retrieve job results from client                                            |\n| GET    | `/static/\u003c\u003e.js`                                             | File transfer to client                                                     |\n\n### Misc\n\n- Coded against Mattermost Server 6.6.1\n- Client's unique ID and name is transmitted through a combination of the `MMAUTHTOKEN`, `MMUSERID`, and `MMCSRF` HTTP Cookie values\n- Data transmitted is usually AES-128-GCM-encrypted and then ZBase32-encoded except in the case of file transfers where it is Base64-encoded after encryption instead\n    - For file transfers, the final encoded data is smuggled via a minified JavaScript file used by Mattermost\n    - For job retrieval for client, the final encoded data is split into chunks across multiple Mattermost `status` structures where the data resides in the `UserId` field and the `Status` field will discreetly indicate the type of job to the client ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainbowpigeon%2Feinstein","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainbowpigeon%2Feinstein","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainbowpigeon%2Feinstein/lists"}