Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Up and Running » Networking » how can I rewrite TCP/IP packets
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
[XP] Access a PC remotely via the Internet »
« Originating traffic with Source Routing info from WXP PC  
AuthorAll Replies


jjoshua
Premium
join:2001-06-01
Scotch Plains, NJ
reply to aurgathor
Re: how can I rewrite TCP/IP packets

Which part of the packet are you trying to modify?

aurgathor

join:2002-12-01
Bothell, WA
The data.


More Fiber
Premium
join:2005-09-26
West Chester, PA
·Bay Area Internet ..

If all you want to do the modify the "application" data, and not mess with TCP headers, then a simple socket program is all you need.

(oversimplified):
open a socket, listen for connections, when you get a connection, open the destination socket, read the data, modify it, write it to the destination socket. When the originator closes the connection, close your destination socket. Shouldn't be more than about 100 lines of C code and will work just fine on WinXP.

If you need more information, find a good tutorial on socket programming.
»beej.us/guide/bgnet/output/html/···net.html


vpoko
Premium
join:2003-07-03
Jamaica Plain, MA
·Comcast

More Fiber,
What about the 16 bit checksum in the TCP header? It's computed based on the IP header, TCP header, and TCP payload. If the payload changes and the checksum in the header isn't updated appropriately, won't the receiving computer think the packet is corrupted and drop it?


More Fiber
Premium
join:2005-09-26
West Chester, PA
·Bay Area Internet ..

said by vpoko See Profile :

More Fiber, What about the 16 bit checksum in the TCP header?
A socket application will never see the TCP header. It will be stripped from the inbound data and a new header created for the outbound data by the TCP stack. This is only suitable if the OP wants to manipulate the "application payload" and not the TCP frames themselves.
-
Forums » Up and Running » Networking[XP] Access a PC remotely via the Internet »
« Originating traffic with Source Routing info from WXP PC  


Thursday, 21-Aug 05:12:13 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [99] Was FiOS a Good Idea?
· [77] Landscaping, Courtesy of AT&T?
· [76] ISPs Whine About Network Neutrality 'Paranoia'
· [68] FCC Finally Issues Comcast Throttling Order
· [56] Google Launches White Space Broadband Website
· [56] Craig Moffett: Network Upgrades Are For Ninnies
· [52] Qwest, Unions Strike Deal
· [52] Did Apple iPhone Fix Make Problems Worse?
· [49] Olympics Didn't Cause The Exaflood
· [49] AT&T Cooking Up New VoIP Product
Most people now reading
· Criss Angel revealed. [56k lookout! (broadband heavy)]
· How do you file things on your computer? [General Questions]
· Tomato/MLPPP released (evade throttle or bond two DSL lines) [TekSavvy]
· Acronis True Image Home 2009 Beta Testing! [Software]
· [XP Home] FAT32 vs NTFS [Microsoft help]
· [Speed] Comcast to throttle individual users; all protocols [Comcast HSI]
· Neighbor Yanks a Power Line & Voltage Overloads the Block [Home Repair & Improvement]
· What the heck is going on in SoCal? [Road Runner]
· DIR-655 Firmware 1.20 Released [D-Link]
· Fresh install of xubuntu blacks out after installing video [All Things Unix]