evilOpcodes
Running ELF from memory - Printable Version

+- evilOpcodes (https://evilop.codes)
+-- Forum: Programming (https://evilop.codes/forumdisplay.php?fid=10)
+--- Forum: Code Snippets & Sources (https://evilop.codes/forumdisplay.php?fid=11)
+---- Forum: Golang (https://evilop.codes/forumdisplay.php?fid=19)
+---- Thread: Running ELF from memory (/showthread.php?tid=71)



Running ELF from memory - TMZ - 08-29-2020

Small tool written in Golang to run ELF (x86_64) binaries from memory with a given process name. Works on Linux where kernel version is >= 3.17 (relies on the memfd_create syscall).

Build it with "go build memrun.go" and execute it. The first argument is the process name (string) you want to see in "ps auxww" output for example. Second argument is the path for the ELF binary you want to run from memory.

main.go
Register or login to see this content