Networking Forums

Networking Forums > Computer Networking > Linux Networking > Create TCP syn packet with given seq num and few other TCP parameters

Reply
Thread Tools Display Modes

Create TCP syn packet with given seq num and few other TCP parameters

 
 
will_u_tellmemore
Guest
Posts: n/a

 
      12-26-2006, 12:10 PM
Hi All,
Can somebody please tell me how can i create a TCP syn packet with
given seq number and few other para meters set with value provided by
my code ??
This is to be done from my kernel module which inserts its hooks using
Netfilter.
I looked at tcp_output.c and few other files but there doesn't seem to
be a very clean interface
which i can directly use from my module .

Can somebody point me the to way in which this should be done without
much efforts ??
I mean somebody must have done similar kind of thing . Is there
something i can use directly ??

Regards,
Rohit

 
Reply With Quote
 
 
 
 
jebuskrust@gmail.com
Guest
Posts: n/a

 
      12-26-2006, 02:10 PM
If your next question is whether or not if its possible to
exploit a old flaw that isnt fixed yet in tcp/ip to send random syn
packets to a dest computer spoofing the src address of the packet with
an individual's ip address that would be connected to that machine
while incrementing the seq number of those packets attempting to hijack
a session or inject a crafted packet in a way where the server would
process that packet thinking it was the src machine and whether or not
ur router doesnt have egress filtering enabled on it to allow u to send
such spoofed packets... then i suggest you get the mother of all socket
books by Richard Stevens called Unix Network Programming.







will_u_tellmemore wrote:
> Hi All,
> Can somebody please tell me how can i create a TCP syn packet with
> given seq number and few other para meters set with value provided by
> my code ??
> This is to be done from my kernel module which inserts its hooks using
> Netfilter.
> I looked at tcp_output.c and few other files but there doesn't seem to
> be a very clean interface
> which i can directly use from my module .
>
> Can somebody point me the to way in which this should be done without
> much efforts ??
> I mean somebody must have done similar kind of thing . Is there
> something i can use directly ??
>
> Regards,
> Rohit


 
Reply With Quote
 
will_u_tellmemore
Guest
Posts: n/a

 
      12-27-2006, 03:51 AM
Not exactly same .. What am trying to do is migrate connected client
connection to new server where i
will be migrating server application. For that i need to reestablish
those connection on migrated server,
which i am planning to do by sending SYN packet which client has sent(i
have logged it for this time)
while establishing connection with original server before
migration.(obviously with some changes).

So my question is still same ..
Regarding the book , i will take a look into it for sure ..

Thanks,
Rohit

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Distinguish between a reset packet and a normal packet sairam Linux Networking 4 03-27-2007 04:03 AM
Best place to set nic parameters corblet Linux Networking 1 03-24-2006 02:18 AM
Receiver sensitivity- Packet Detection v/s Packet capture Vinay Wireless Internet 1 10-14-2005 01:50 AM
NIC Tuning Parameters Dave Network Routers 0 07-29-2004 05:52 PM
NIC Tuning Parameters Dave Linux Networking 0 07-29-2004 05:52 PM



1 2 3 4 5 6 7 8 9 10 11