Linux Runtime Process Injection Tool
C Assembly
Latest commit 64c2af6 Feb 20, 2013 jtRIPper updated readme
Failed to load latest commit information.
bin first commit Jan 9, 2013
include fixed crashing issue (restores regs) Jan 27, 2013
src fixed crashing issue (restores regs) Jan 27, 2013
LICENSE first commit Jan 9, 2013
Makefile updated readme Feb 21, 2013

Linux Process Injection Tool

This is a process injection tool for Linux written in C.

A demo of the code running can be found here:

How It Works

First, it attaches to the victim process with ptrace. It then searches through memory for the address to mmap in the process, it runs mmap and captures the return value. Then, it copies the shellcode into the process's memory and sets the process's instruction pointer to the shellcode.

The shellcode begins with a stub that simply forks, the child continues running the payload, the parent returns to the main process. This may be improved later for stealth. The rest of the shellcode can be anything from a bindshell to hooking functions.


To compile the code just run:

    $ make


To run the test program which simply prints it's pid and then loops, (although this code works with nearly any process.. try it on sshd ;) ):

    $ ./test

Next, run the parasite program.

    $ ./parasite 12094

The first time it is run it will hang, ctrl+c out of it and then rerun it, it will work the second time. This is a known bug and will be fixed in the future. At this point, a shell will be listening on port 4444, you can connect to it with netcat.


(c) 2012 jtRIPper