Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/koraa/pipe_exec

Execute binaries from pipes, stdin and ttys
https://github.com/koraa/pipe_exec

Last synced: about 1 month ago
JSON representation

Execute binaries from pipes, stdin and ttys

Lists

README

        

# pipe_exec

Execute ELF binaries from pipes & and terminals. This makes it possible to
execute binaries that are not stored in a file system or for
which the execute permission is not set and to run binaries
directly from stdin; e.g. when piping gcc output or when
downloading them via SSH.

It works by allocating an in-memory file via the
memfd_create(2) syscall, copying all data from the
executable there and finally executing it using the
fexecve(3) syscall.

pipe_exec will first try to execute the file in place; e.g.
`pexec