This repo contains a PoC of process injection in Linux using PTRACE (ptrace.h). The shellcode is from this repo and it's a simple execve shellcode that spawns a /bin/sh shell.
To compile the code, run:
make buildWe also provide a dummy target binary to test the injection. You can compile it with:
make dummyTo run the injection, use:
sudo ./proc_inj <pid>You can read the full paper about this project in paper.md.