Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

NetInject

Inject data into an already opened TCP connection.

alt text

Description

NetInject uses ptrace library to inject data into one of the process' network sockets. It works by live editing the process memory and add instructions to write in file descriptors corresponding to TCP sockets.

(Not sure if it's the fastest way, if you have a better way to do that, I'd like to know it)

Usage

run : ./netinject PID_TO_ATTACH_TO

A list of file descriptors appears :

FD	TYPE	STATE	IP
4	TCP	1	192.168.0.16:9090 ->192.168.0.16:36254
Choice:
4

Choose one of the list and the prompt will let you choose data you want to inject.

Compilation

Works for 32 and 64 bits architectures, edit Makefile to adjust :

Leave original content for 32 bits :

gcc -o netinject netinject.o design.o

Add -DX64 for 64 bits support :

gcc -DX64 -o netinject netinject.o design.o

About

Inject data into an already opened TCP connection

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.