|
|||||||||||
|
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 { 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+/); 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; $list{$array[0]} = $array[3]; }} } close(FileHND); sleep 3; } }
> 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 >
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:03:25 EDT |
||||||||||
|
|||||||||||