Difference between revisions of "Scan-subnet.pl"
From Organic Design wiki
m |
m |
||
Line 7: | Line 7: | ||
while ( $#_ >= 0 ) { | while ( $#_ >= 0 ) { | ||
( $ip, $mac, $os ) = ( shift @_, shift @_, shift @_ ); | ( $ip, $mac, $os ) = ( shift @_, shift @_, shift @_ ); | ||
− | print "$ip\t [$mac] $os\n" | + | print "$ip\t[$mac] $os\n" |
} | } | ||
} | } |
Revision as of 09:15, 22 May 2009
This little script uses nmap to give you a list of all the IP addresses in use on all the subnets on all active network interfaces on the host it is run on. It also gives the MAC address and a basic description for each.
Example output: