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

aurgathor

join:2002-12-01
Bothell, WA
reply to jjoshua
Re: how can I rewrite TCP/IP packets

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  


Friday, 22-Aug 01:27:36 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
· [106] New Comcast Throttling System = 'A Really Good DSL Experience'
· [101] Was FiOS a Good Idea?
· [81] Shouldn't You Be Able To Buy Your Cable Box?
· [79] ISPs Whine About Network Neutrality 'Paranoia'
· [77] Landscaping, Courtesy of AT&T?
· [76] FCC Finally Issues Comcast Throttling Order
· [57] Craig Moffett: Network Upgrades Are For Ninnies
· [56] Google Launches White Space Broadband Website
· [56] Did Apple iPhone Fix Make Problems Worse?
· [55] AT&T Cooking Up New VoIP Product
Most people now reading
· Port 25 being blocked nation wide....WTF [Comcast HSI]
· Criss Angel revealed. [56k lookout! (broadband heavy)]
· How I Stole Someone's Identity [Security]
· Porch light bulbs [Home Repair & Improvement]
· Hunter Shot Macro's [World of Warcraft]
· Anyone know how to capture NBCOlympics.com video streams [General Questions]
· Neighbor Yanks a Power Line & Voltage Overloads the Block [Home Repair & Improvement]
· [iPhone] 2.0.2 firmware is out, Please post outcome [All things Macintosh]
· [Speed] Comcast to throttle individual users; all protocols [Comcast HSI]
· Just reccived a message from Jim Prentice [TekSavvy]