Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: IP to MAC mapping

From: Shanon <liquid_nitrogen79(at)hotmail.com>
Date: Thu Nov 28 2002 - 00:40:37 EST

If you have linux box you can also try this simple perl script

#!/usr/bin/perl

$pid=fork();

if($pid>0){die "Forked";}

else

{

Do you need help?X

while (1)

{

open(FileHND,"/proc/net/arp");

open(LogHND,">>$ARGV[0]") if $ARGV[0];

open(LogHND,">>&STDOUT") if !$ARGV[0];

while(<FileHND>)

{

@array = split(/\s+/);

Do you need more help?X

if($array[0] =~ /^\d/){

if($list{$array[0]} && ($list{$array[0]} ne $array[3]))

{

print LogHND ("ARP Address $array[0] changed from $list{$array[0]} to $array[3]\n") ;

}

elsif($list{$array[0]} ne $array[3])

{

print LogHND "Adding $array[0]\n" if $ARGV[1] ne silent;

Can we help you?X

$list{$array[0]} = $array[3];

}}

}

close(FileHND);

sleep 3;

}

}

  • Original Message ----- From: "Burton M. Strauss III" <bstrauss3@attbi.com> To: <security-basics@securityfocus.com> Cc: "Johan Denoyer" <jdenoy@digital-connexion.info> Sent: Friday, November 22, 2002 6:19 PM Subject: RE: IP to MAC mapping

> Understand that most OSes (perhaps not windows, but I wouldn't put it past

>

> Set up a small Linux or *nix box and use arpwatch - it's a daemon that
>

> -----Burton
>

> -----Original Message-----
>
>

> Hi,
>

> we are currently looking into illegal usage of a protected network. We are
> managing a class C network, and we would like to be able to detect illegal
>
> Now I would like to find a software or a perl scrip that would do the
work.
> (The budget that we have is 0$, so freeware is likely to be the solution)
>

> I have tried doing searches using google without any luck. If anyone uses
>

> Thanks,
>
>

> Salutations,
>

> Johan Denoyer
> jdenoy@digital-connexion.info
> Digital Connexion
>
Can't find what you're looking for?X

  • application/octet-stream attachment: arp.pl
Received on Thu Nov 28 18:15:36 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:03:25 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library