is it possible to inject tcp packets in a tcp connection?

is it possible to inject tcp packets in a tcp connection?

Post by all.junk » Thu, 08 Mar 2007 08:34:56


Hi,

I'm wondering if I can inject packets into an already established tcp
connection.

at a specific moment,
I should be able to hold out-going packet and inject custom created
packet.
then I should be able to increment sequence numbers for all the
packets that i have hold and all subsequent outgoing packets.

I'm thinking of using libnet to inject packets.
but I'm not sure of how to make sure tcp sequence numbers are intact.

I'd prefer window platform for development.

Thanks in advance.
 
 
 

is it possible to inject tcp packets in a tcp connection?

Post by Volker Bir » Thu, 08 Mar 2007 17:16:35


Hi,

it's much easier to do a MITM attack by implementing a TCP proxy. That
means, you're simulating Alice for Bob, and you're simulating Bob for
Alice, so that you have two TCP connections.

Yours,
VB.
--
" *** ography is an abstract phenomenon. It cannot exist without a medium
to propagate it, and it has very little (if anything at all) to do with sex."
Tina Lorenz
<https://events.congress.ccc.de/congress/2006/Fahrplan/events/1422.en.html>

 
 
 

is it possible to inject tcp packets in a tcp connection?

Post by Sebastian » Fri, 09 Mar 2007 00:16:42


For Windows, you should rather look at WinPCap. The source code package
already ships with various examples of ARP spoofing, TCP packet generators
etc.