Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 816 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 816 Bytes

Overview

Linux project injection demo. Creates an memory-only file descriptor to write executable to, and then executes it using a fake process name of "injectedprocess".

Example

$ go build memfd_launch.go 
$ ./memfd_launch --inject
Injecting into process...
File descriptor is 3
Bytes written to memfd 2030005 at path /proc/self/fd/3
$ ps $(pidof injectedprocess)
    PID TTY      STAT   TIME COMMAND
 173277 ?        Ssl    0:00 injectedprocess

References