LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Closed Thread
  Search this Thread
Old 06-12-2014, 03:38 AM   #1
mutwkil
Member
 
Registered: Feb 2010
Posts: 30

Rep: Reputation: 0
Exclamation Packet modification problem


I have a PC with 2 NIC. each NIC connected to another PC just like this A<--->R<--->B.
(R) contains 2 sniffers each of them connected to different NIC. each sniffer(1) replace destination MAC address located in each packet coming from A with B's MAC address.
sniffer (2) does the opposite process which make R work just like a router.
(A) and (B) run TCP chat program.
Next for each incoming packet from (A) i did the following:
I appended 1 byte of data to the TCP data section.
  • I incremented Total length located in Ip header of packet by one
  • I recomputed check sum located in IP header
but the packet doesn't reach B, and A continue retransmitting that packet, later it reset the connection.
can anybody show me what the problem?
 
Old 06-12-2014, 04:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I notice your post history shows at least three duplicate threads and one warning for the same.
I'm giving you a second and final warning not to post duplicate threads again.
 
  


Closed Thread



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IP packet sniffer and modification tools kikilinux Programming 3 02-28-2014 05:40 AM
Can anyone help me with this file modification problem? Deadally Programming 11 06-10-2011 10:31 AM
Packet formarion and MAC modification in C programme kumar_bst Linux - Networking 4 05-13-2010 10:12 AM
packet capture and modification mimithebrain Programming 5 03-13-2006 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration