Skip to content

Commit d53d57d

Browse files
committed
Final changes for v1.4.
git-svn-id: svn+ssh://svn.nta-monitor.com/trunk/opensource/arp-scan@7904 062a1500-4a13-0410-a63b-ee65f32af78f
1 parent 98457ff commit d53d57d

12 files changed

+51
-19
lines changed

Diff for: Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ bin_PROGRAMS = arp-scan
77
#
88
dist_bin_SCRIPTS = get-oui get-iab arp-fingerprint
99
#
10-
dist_check_SCRIPTS = check-arp-scan-run1
10+
dist_check_SCRIPTS = check-run1
1111
#
1212
dist_man_MANS = arp-scan.1 get-oui.1 get-iab.1 arp-fingerprint.1
1313
#

Diff for: TODO

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ $Id$
33
Code tidy up: reduce the number of global variables.
44

55
Additional ARP fingerprinting options, e.g. arpsha != srcaddr.
6+
7+
Use libnet or another packet creation library to allow arp-scan to run on
8+
non-linux platforms.

Diff for: arp-fingerprint

+4-3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ my $arpscan="arp-scan -N -q -r 1";
7373
# PIX OS PIX OS on PIX Firewall at 7663
7474
# WinME Windows ME on VMware
7575
# HP-UX 11 HP-UX B.11.00 A 9000/712 (PA-RISC)
76+
# PIX OS PIX OS (unknown vsn) on Cisco PIX 525
7677
#
7778
my %fp_hash = (
7879
'11110100000' => 'FreeBSD 5.3, Win98, WinME, NT4, 2000, XP, 2003',
@@ -87,8 +88,8 @@ my %fp_hash = (
8788
'10110100000' => 'Win 3.11, 95, NT 3.51',
8889
'11110000011' => '4.3 BSD, OpenBSD 3.1, OpenBSD 3.9',
8990
'10110110000' => 'NetBSD 2.0.2',
90-
'00010110011' => 'Unknown 1', # dwk at 7663 in June 2006, Entrada Networks
91-
'01010110011' => 'PIX OS', # dwk at 7663 in June 2006, Cisco
91+
'00010110011' => 'PIX OS', # dwk at 7663 in June 2006, Cisco PIX 525
92+
'01010110011' => 'PIX OS', # dwk at 7663 in June 2006, Cisco PIX 525
9293
'00000110000' => 'Netware 6.5',
9394
);
9495
#
@@ -144,7 +145,7 @@ if (&fp("","$target") eq "1") {
144145
$fingerprint .= &fp("--arphrd=255","$target");
145146
# 8: invalid arp protocol type
146147
$fingerprint .= &fp("--arppro=0xffff","$target");
147-
# 9: arp prototocol type = Novell IPX
148+
# 9: arp protocol type = Novell IPX
148149
$fingerprint .= &fp("--arppro=0x8137","$target");
149150
# 10: invalid protocol address length
150151
$fingerprint .= &fp("--arppln=6","$target");

Diff for: arp-fingerprint.1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" $Id$
22
.TH ARP-FINGERPRINT 1 "June 8, 2006"
3-
.\" Please adjust this date whenever revising the manpage.
3+
.\" Please adjust this date whenever revising the man page.
44
.SH NAME
55
arp-fingerprint \- Fingerprint a system using ARP
66
.SH SYNOPSIS
@@ -21,7 +21,7 @@ This fingerprint string is then used to lookup the likely target operating syste
2121
Many of the fingerprint strings are shared by several operating systems, so
2222
there is not always a one-to-one mapping between fingerprint strings and
2323
operating systems. Also the fact that a system's fingerprint matches a certain
24-
operating system (or list of operating systems) does not necesarily mean that
24+
operating system (or list of operating systems) does not necessarily mean that
2525
the system being fingerprinted is that operating system, although it is quite
2626
likely. This is because the list of operating systems is not exhaustive; it is
2727
just what I have discovered to date, and there are bound to be operating

Diff for: arp-scan.1

+31-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" $Id$
22
.TH ARP-SCAN 1 "June 25, 2006"
3-
.\" Please adjust this date whenever revising the manpage.
3+
.\" Please adjust this date whenever revising the man page.
44
.SH NAME
55
arp-scan \- The ARP scanner
66
.SH SYNOPSIS
@@ -486,7 +486,7 @@ List of IEEE IAB (Individual Address Block) to vendor mappings.
486486
.I /usr/local/share/ether-scan-engine/mac-vendor.txt
487487
List of other Ethernet MAC to vendor mappings.
488488
.SH EXAMPLES
489-
This example shows
489+
The example below shows
490490
.B arp-scan
491491
being used to scan the network
492492
.I 192.168.0.0/24
@@ -496,7 +496,7 @@ using the network interface
496496
.nf
497497
$ arp-scan --interface=eth0 192.168.0.0/24
498498
Interface: eth0, datalink type: EN10MB (Ethernet)
499-
Starting arp-scan 1.3 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
499+
Starting arp-scan 1.4 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
500500
192.168.0.1 00:c0:9f:09:b8:db QUANTA COMPUTER, INC.
501501
192.168.0.3 00:02:b3:bb:66:98 Intel Corporation
502502
192.168.0.5 00:02:a5:90:c3:e6 Compaq Computer Corporation
@@ -514,6 +514,34 @@ Starting arp-scan 1.3 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/
514514
13 packets received by filter, 0 packets dropped by kernel
515515
Ending arp-scan: 256 hosts scanned in 3.386 seconds (75.61 hosts/sec). 13 responded
516516
.fi
517+
.PP
518+
This next example shows
519+
.B arp-scan
520+
being used to scan the local network after configuring the
521+
network interface with DHCP using
522+
.IR pump .
523+
.PP
524+
.nf
525+
# pump
526+
# ifconfig eth0
527+
eth0 Link encap:Ethernet HWaddr 00:D0:B7:0B:DD:C7
528+
inet addr:10.0.84.178 Bcast:10.0.84.183 Mask:255.255.255.248
529+
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
530+
RX packets:46335 errors:0 dropped:0 overruns:0 frame:0
531+
TX packets:1542776 errors:0 dropped:0 overruns:0 carrier:0
532+
collisions:1644 txqueuelen:1000
533+
RX bytes:6184146 (5.8 MiB) TX bytes:348887835 (332.7 MiB)
534+
# arp-scan --localnet
535+
Interface: eth0, datalink type: EN10MB (Ethernet)
536+
Starting arp-scan 1.4 with 8 hosts (http://www.nta-monitor.com/tools/arp-scan/)
537+
10.0.84.179 00:02:b3:63:c7:57 Intel Corporation
538+
10.0.84.177 00:d0:41:08:be:e8 AMIGO TECHNOLOGY CO., LTD.
539+
10.0.84.180 00:02:b3:bd:82:9b Intel Corporation
540+
10.0.84.181 00:02:b3:1f:73:da Intel Corporation
541+
542+
4 packets received by filter, 0 packets dropped by kernel
543+
Ending arp-scan 1.4: 8 hosts scanned in 0.820 seconds (9.76 hosts/sec). 4 responded
544+
.fi
517545
.SH AUTHOR
518546
Roy Hills <[email protected]>
519547
.SH "SEE ALSO"

Diff for: arp-scan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ add_mac_vendor(struct hash_control *table, const char *filename) {
20422042
int result;
20432043
const char *result_str;
20442044
/*
2045-
* Complile the regex pattern if this is the first time we
2045+
* Compile the regex pattern if this is the first time we
20462046
* have been called.
20472047
*/
20482048
if (first_call) {

Diff for: check-arp-scan-run1 renamed to check-run1

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh
2-
# $Id: check-arp-scan-run1 6194 2006-03-09 14:27:39Z rsh $
2+
# $Id: check-run1 6194 2006-03-09 14:27:39Z rsh $
33
#
4-
# check-arp-scan-run1 -- Shell script to test arp-scan basic functionality
4+
# check-run1 -- Shell script to test arp-scan basic functionality
55
#
66
# Author: Roy Hills
77
# Date: 9 March 2006
88
#
99
# This shell script checks that "arp-scan --help" and "arp-scan --version"
10-
# work. These options don't use much of the arp-scan functionallity, so if
11-
# they fail, then there is a fundimental problem with the program.
10+
# work. These options don't use much of the arp-scan functionality, so if
11+
# they fail, then there is a fundamental problem with the program.
1212
#
1313
TMPFILE=/tmp/arp-scan-test.$$.tmp
1414
#

Diff for: configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dnl $Id$
22
dnl Process this file with autoconf to produce a configure script.
33

4-
AC_INIT([arp-scan], [1.3], [[email protected]])
4+
AC_INIT([arp-scan], [1.4], [[email protected]])
55
AC_PREREQ(2.59)
66
AC_REVISION($Revision$)
77
AC_CONFIG_SRCDIR([arp-scan.c])

Diff for: get-iab

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# converts it to the format needed by arp-scan.
2626
#
2727
# This script assumes that all the IAB entries start with 00-50-C2. This
28-
# is currently the case, and will probably be so for the forseeable
28+
# is currently the case, and will probably be so for the foreseeable
2929
# future.
3030
#
3131
use warnings;

Diff for: get-iab.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" $Id: get-iab.1 7780 2006-06-20 08:32:01Z rsh $
22
.TH GET-IAB 1 "May 30, 2006"
3-
.\" Please adjust this date whenever revising the manpage.
3+
.\" Please adjust this date whenever revising the man page.
44
.SH NAME
55
get-iab \- Fetch the arp-scan IAB file from the IEEE website
66
.SH SYNOPSIS

Diff for: get-oui.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" $Id$
22
.TH GET-OUI 1 "May 30, 2006"
3-
.\" Please adjust this date whenever revising the manpage.
3+
.\" Please adjust this date whenever revising the man page.
44
.SH NAME
55
get-oui \- Fetch the arp-scan OUI file from the IEEE website
66
.SH SYNOPSIS

Diff for: utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ print_times(void) {
411411
* 01-23-45-67-89-ab
412412
* 01:23:45:67:89:ab
413413
*
414-
* The hax characters [a-z] may be specified in either upper or lower case.
414+
* The hex characters [a-z] may be specified in either upper or lower case.
415415
*/
416416
int
417417
get_ether_addr(const char *address_string, unsigned char *ether_addr) {

0 commit comments

Comments
 (0)