Go Back   The UNIX and Linux Forums > Top Forums > Programming
.
google site



Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #15 (permalink)  
Old 08-17-2009
Registered User
 

Join Date: Aug 2009
Posts: 2
I see - thanks -

I'm a student of network security, and joined the Unix Group on Linkedin in order to learn more about the world of Unix/Linux as it seems a lot of work is done on those opperating systems.

Thanks for your patience.
Sponsored Links
  #16 (permalink)  
Old 09-26-2009
Registered User
 

Join Date: Aug 2009
Posts: 26
Hello everybody,

Finally, i came up with how to do it, it's not the way i thought it was going to be, but it works.

The solution is in SIOCxARP. My program's algorithm listens for ARP traffic, and when receives a valid frame, uses SIOCSARP to add an entry to the ARP cache. The kernel does it before, but just in case, this will overwrite it.

When it detects a malicious frame, it uses SIOCDARP to delete the entry previously created by the kernel in the cache, so the ARP attack has no impact over the secured host.

Thank you VERY MUCH for your help, fpmurphy, Corona688.
  #17 (permalink)  
Old 09-26-2009
Registered User
 

Join Date: Aug 2009
Posts: 26
Hello everybody,

Finally, i came up with how to do it, it's not the way i thought it was going to be, but it works.

The solution is in SIOCxARP. My program's algorithm listens for ARP traffic, and when receives a valid frame, uses SIOCSARP to add an entry to the ARP cache. The kernel does it before, but just in case, this will overwrite it.

When it detects a malicious frame, it uses SIOCDARP to delete the entry previously created by the kernel in the cache, so the ARP attack has no impact over the secured host.

Thank you VERY MUCH for your help, fpmurphy, Corona688.
  #18 (permalink)  
Old 09-28-2009
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 2,454
Sounds like a fairly portable solution actually.
  #19 (permalink)  
Old 09-30-2009
fpmurphy's Avatar
Moderator
 

Join Date: Dec 2003
Location: Florida
Posts: 2,101
Semash, glad I was able to help.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Manipulate lines with sed/awk TheBigAmbulance Shell Programming and Scripting 2 06-29-2009 05:29 PM
manipulate postscript via sed lada niva Shell Programming and Scripting 3 02-03-2009 12:36 PM
Linux cache joshighanshyam Linux 0 05-06-2008 05:53 AM
How to manipulate date? phani Shell Programming and Scripting 5 04-06-2005 03:17 PM
UBC cache vs. Metadata cache sushaga UNIX for Advanced & Expert Users 2 04-25-2002 04:43 AM



All times are GMT -4. The time now is 11:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0