Awesome Open Source
Awesome Open Source


PoC of injecting code into a running Linux process. Spawns a new thread to host the injected code.


This will inject shellcode, contained in the count binary, into a running process 'dummy'.

$ cd src
$ make
$ ./dummy &
$ ./inject -p $(pidof dummy) -f ./count

Quick-n-dirty command to verify that a process is running multiple threads

$ ps -eLF | head -1; ps -eLF | grep -i dummy


  • Capstone (apt-get install libcapstone3 libcapstone-dev)

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
c (15,696
linux (2,563
poc (88
injection (84
shellcode (53