|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
小知识:退一万步讲,即使CentOS项目终结,正在运行它的企业也可以很轻松的转移到另一个企业Linux的克隆版。1,在装置之前须要装置
yuminstall-ylibpcaplibpcap-devel
假如没有装置yum对象
须要用rpm装置以下软件包
[root@oradbaarp-scan-1.8]#yumlist|greplibpcap
libpcap.i38614:0.9.4-15.el5installed
libpcap.x86_6414:0.9.4-15.el5installed
libpcap-devel.i38614:0.9.4-15.el5installed
libpcap-devel.x86_6414:0.9.4-15.el5installed
2,下载软件包
wgethttp://www.nta-monitor.com/tools/arp-scan/download/arp-scan-1.8.tar.gz
3,编译软件包
tarxvfarp-scan-1.8.tar.gz
cdarp-scan-1.8
./configure
make&&makeinstall
检查网段一切的主机
[root@oradbaarp-scan-1.8]#arp-scan-l
Interface:eth0,datalinktype:EN10MB(Ethernet)
Startingarp-scan1.8with256hosts(http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.100:24:1d:17:d6:e3GIGA-BYTETECHNOLOGYCO.,LTD.
192.168.100.400:26:b9:51:68:efDellInc//网卡
192.168.100.520:cf:30:6f:6f:c6ASUSTekCOMPUTERINC.
192.168.100.648:5b:39:86:1c:62ASUSTekCOMPUTERINC.
192.168.100.748:5b:39:86:1c:3aASUSTekCOMPUTERINC.
有多个网卡可以指定选择哪一个网卡
[root@gateway~]#arp-scan--interface=eth1-l
Interface:eth1,datalinktype:EN10MB(Ethernet)
Startingarp-scan1.8with256hosts(http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.100:24:1d:17:d6:e3GIGA-BYTETECHNOLOGYCO.,LTD.
192.168.100.400:26:b9:51:68:efDellInc
192.168.100.520:cf:30:6f:6f:c6ASUSTekCOMPUTERINC.
192.168.100.648:5b:39:86:1c:62ASUSTekCOMPUTERINC.
192.168.100.748:5b:39:86:1c:3aASUSTekCOMPUTERINC.
192.168.100.8bc:30:5b:ad:74:22DellInc.
192.168.100.900:26:b9:8e:16:17DellInc
192.168.100.1500:26:b9:35:cf:63DellInc
192.168.100.1700:0c:29:08:6a:06VMware,Inc.
192.168.100.1800:0c:29:08:6a:06VMware,Inc.
192.168.100.1900:0c:29:08:6a:06VMware,Inc.
192.168.100.2000:0c:29:08:6a:06VMware,Inc.
192.168.100.2200:24:1d:17:d6:e3GIGA-BYTETECHNOLOGYCO.,LTD.
192.168.100.2384:2b:2b:59:31:4fDellInc.
192.168.100.2400:26:b9:8e:16:17DellInc
指定某一段IP地址
[root@gateway~]#arp-scan--interface=eth1192.168.100.0/29
Interface:eth1,datalinktype:EN10MB(Ethernet)
Startingarp-scan1.8with8hosts(http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.100:24:1d:17:d6:e3GIGA-BYTETECHNOLOGYCO.,LTD.
192.168.100.400:26:b9:51:68:efDellInc
192.168.100.520:cf:30:6f:6f:c6ASUSTekCOMPUTERINC.
192.168.100.648:5b:39:86:1c:62ASUSTekCOMPUTERINC.
192.168.100.748:5b:39:86:1c:3aASUSTekCOMPUTERINC.
用于更新MAC地址,便于在扫描时晓得应用的是谁人厂商的网卡
[root@gateway~]#get-oui-v
FetchingOUIdatafromhttp://standards.ieee.org/regauth/oui/oui.txt
Fetched2642079bytes
Openingoutputfileieee-oui.txt
16445OUIentrieswrittentofileieee-oui.txt
[root@gateway~]#get-iab-v
FetchingIABdatafromhttp://standards.ieee.org/regauth/oui/iab.txt
Fetched608631bytes
Openingoutputfileieee-iab.txt
3995IABentrieswrittentofileieee-iab.txt
其它用法可以参照arp-scan--help
小知识:Linux是一套免费使用和自由传播的类Unix操作系统。 |
|