Skip to content

Instantly share code, notes, and snippets.

View capnspacehook's full-sized avatar
🚀

Andrew LeFevre capnspacehook

🚀
View GitHub Profile
@capnspacehook
capnspacehook / invokeInMemLinux.go
Created February 21, 2019 13:37
Executes a binary or file in memory on a Linux system. Uses the memfd_create(2) syscall. Credits and idea from: https://magisterquis.github.io/2018/03/31/in-memory-only-elf-execution.html
package main
import (
"io/ioutil"
"os"
"os/exec"
"strconv"
"syscall"

Keybase proof

I hereby claim:

  • I am capnspacehook on github.
  • I am capnspacehook (https://keybase.io/capnspacehook) on keybase.
  • I have a public key ASAT_MUBwglC-KPZcrSZHBXkOkDEUoKFvjdSZ32IAJZY6wo

To claim this, I am signing this object: