{"id":13610044,"url":"https://github.com/liamg/memit","last_synced_at":"2025-04-07T12:07:24.295Z","repository":{"id":41084797,"uuid":"428645338","full_name":"liamg/memit","owner":"liamg","description":":no_entry_sign::floppy_disk: Run binaries straight from memory in Linux","archived":false,"fork":false,"pushed_at":"2023-04-17T19:13:06.000Z","size":153,"stargazers_count":315,"open_issues_count":1,"forks_count":33,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-31T10:09:00.010Z","etag":null,"topics":["fileless","fileless-attack","memfd","shenanigans"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liamg.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-16T12:25:38.000Z","updated_at":"2025-02-18T22:28:49.000Z","dependencies_parsed_at":"2024-01-14T06:56:27.155Z","dependency_job_id":null,"html_url":"https://github.com/liamg/memit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fmemit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fmemit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fmemit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fmemit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamg","download_url":"https://codeload.github.com/liamg/memit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["fileless","fileless-attack","memfd","shenanigans"],"created_at":"2024-08-01T19:01:40.645Z","updated_at":"2025-04-07T12:07:24.276Z","avatar_url":"https://github.com/liamg.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Memit\n\nExecute a binary from memory, without touching the disk. Linux only.\n\nAvailable as both a Go module and a binary.\n\n![demo](demo.gif)\n\n## Using the Go module\n\nThe `Command()` method takes an `io.Reader`, so you can use it with things like an HTTP response body, a `bytes.Buffer`, etc.\n\nIt provides an `*exec.Cmd` (via `memit.Command(...)`) so you can wire up stdin/out and configure other parameters just like you would with a regular command.\n\n```go\npackage main\n\nimport \"github.com/liamg/memit\"\n\nfunc main() {\n\tresp, _ := http.Get(\"https://.../mybinary\")\n\n\tcmd, _, _ := memit.Command(resp.Body, \"--args\", \"--go\", \"--here\")\n\n\tcmd.Stderr = os.Stderr\n\tcmd.Stdin = os.Stdin\n\tcmd.Stdout = os.Stdout\n\n\t_ = cmd.Run()\n}\n```\n\n## Using the binary\n\nGrab the [latest release](https://github.com/liamg/memit/releases/latest) and run it like this:\n\n```bash\nmemit https://.../mybinary -- # args for the actual binary can be put after the --\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fmemit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamg%2Fmemit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fmemit/lists"}