{"id":13531580,"url":"https://github.com/koraa/pipe_exec","last_synced_at":"2025-07-18T14:42:32.249Z","repository":{"id":145352092,"uuid":"62580515","full_name":"koraa/pipe_exec","owner":"koraa","description":"Execute binaries from pipes, stdin and ttys","archived":false,"fork":false,"pushed_at":"2024-06-26T09:23:07.000Z","size":69,"stargazers_count":73,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-22T22:18:58.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koraa.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2016-07-04T18:13:26.000Z","updated_at":"2025-02-16T23:24:27.000Z","dependencies_parsed_at":"2024-01-03T04:14:13.117Z","dependency_job_id":"97720e4a-f33d-439a-9c2e-b1511e84f57a","html_url":"https://github.com/koraa/pipe_exec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koraa/pipe_exec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpipe_exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpipe_exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpipe_exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpipe_exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koraa","download_url":"https://codeload.github.com/koraa/pipe_exec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpipe_exec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260281567,"owners_count":22985629,"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-01T07:01:04.113Z","updated_at":"2025-06-17T03:07:27.990Z","avatar_url":"https://github.com/koraa.png","language":"C","funding_links":[],"categories":["Utilities","C"],"sub_categories":["Shell Utilities"],"readme":"# pipe_exec\n\nExecute ELF binaries from pipes \u0026 and terminals. This makes it possible to\nexecute binaries that are not stored in a file system or for\nwhich the execute permission is not set and to run binaries\ndirectly from stdin; e.g. when piping gcc output or when\ndownloading them via SSH.\n\nIt works by allocating an in-memory file via the\nmemfd_create(2) syscall, copying all data from the\nexecutable there and finally executing it using the\nfexecve(3) syscall.\n\npipe_exec will first try to execute the file in place; e.g.\n`pexec \u003c/bin/ls` would not load ls into memory first.\n\n\n## Usage\n\n```sh\n$ cat `which date` | pexec -u\nSun Jul  3 21:09:36 UTC 2016\n```\n\n## Installation\n\nInstall the required packages:\n\n- build-essential\n\nAnd then compile the code:\n\n```sh\nmake\n```\n\nTo install copy the binaries to /usr/local/bin or execute this command\nwhich will perform the copy for you.\n\n```sh\nsudo make install\n```\n\nYou can supply `$PREFIX` to use a different installation directory; the\ndefault prefix is `/usr/local.`\n\n## Maintenance log\n\n2024-06-26 – Everything working as it should :)\n\n## License and Copyright\n\nCopyright (C) 2016-2024 by Karolin Varner\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoraa%2Fpipe_exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoraa%2Fpipe_exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoraa%2Fpipe_exec/lists"}