用arp-scan扫描局域网IP地址
http://blog.chinaunix.net/uid-20682026-id-3236757.html
阅读(1244) | 评论(0) | 转发(1) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
1,在安装之前需要安装
yum install -y libpcap libpcap-devel
如果没有安装yum工具
需要用rpm安装如下软件包
[root@oradba arp-scan-1.8]# yum list|grep libpcap
libpcap.i386 14:0.9.4-15.el5 installed
libpcap.x86_64 14:0.9.4-15.el5 installed
libpcap-devel.i386 14:0.9.4-15.el5 installed
libpcap-devel.x86_64 14:0.9.4-15.el5 installed
yum install -y libpcap libpcap-devel
如果没有安装yum工具
需要用rpm安装如下软件包
[root@oradba arp-scan-1.8]# yum list|grep libpcap
libpcap.i386 14:0.9.4-15.el5 installed
libpcap.x86_64 14:0.9.4-15.el5 installed
libpcap-devel.i386 14:0.9.4-15.el5 installed
libpcap-devel.x86_64 14:0.9.4-15.el5 installed
2,下载软件包
wget http://www.nta-monitor.com/tools/arp-scan/download/arp-scan-1.8.tar.gz
3,编译软件包
tar xvf arp-scan-1.8.tar.gz
cd arp-scan-1.8
./configure
make && make install
wget http://www.nta-monitor.com/tools/arp-scan/download/arp-scan-1.8.tar.gz
3,编译软件包
tar xvf arp-scan-1.8.tar.gz
cd arp-scan-1.8
./configure
make && make install
查看网段所有的主机
[root@oradba arp-scan-1.8]# arp-scan -l
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.1 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.4 00:26:b9:51:68:ef Dell Inc //网卡
192.168.100.5 20:cf:30:6f:6f:c6 ASUSTek COMPUTER INC.
192.168.100.6 48:5b:39:86:1c:62 ASUSTek COMPUTER INC.
192.168.100.7 48:5b:39:86:1c:3a ASUSTek COMPUTER INC.
有多个网卡可以指定选择哪个网卡
[root@gateway ~]# arp-scan --interface=eth1 -l
Interface: eth1, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.1 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.4 00:26:b9:51:68:ef Dell Inc
192.168.100.5 20:cf:30:6f:6f:c6 ASUSTek COMPUTER INC.
192.168.100.6 48:5b:39:86:1c:62 ASUSTek COMPUTER INC.
192.168.100.7 48:5b:39:86:1c:3a ASUSTek COMPUTER INC.
192.168.100.8 bc:30:5b:ad:74:22 Dell Inc.
192.168.100.9 00:26:b9:8e:16:17 Dell Inc
192.168.100.15 00:26:b9:35:cf:63 Dell Inc
192.168.100.17 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.18 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.19 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.20 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.22 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.23 84:2b:2b:59:31:4f Dell Inc.
192.168.100.24 00:26:b9:8e:16:17 Dell Inc
指定某一段IP地址
[root@gateway ~]# arp-scan --interface=eth1 192.168.100.0/29
Interface: eth1, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8 with 8 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.1 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.4 00:26:b9:51:68:ef Dell Inc
192.168.100.5 20:cf:30:6f:6f:c6 ASUSTek COMPUTER INC.
192.168.100.6 48:5b:39:86:1c:62 ASUSTek COMPUTER INC.
192.168.100.7 48:5b:39:86:1c:3a ASUSTek COMPUTER INC.
用于更新MAC地址,便于在扫描时知道使用的是那个厂商的网卡
[root@gateway ~]# get-oui -v
Fetching OUI data from http://standards.ieee.org/regauth/oui/oui.txt
Fetched 2642079 bytes
Opening output file ieee-oui.txt
16445 OUI entries written to file ieee-oui.txt
[root@gateway ~]# get-iab -v
Fetching IAB data from http://standards.ieee.org/regauth/oui/iab.txt
Fetched 608631 bytes
Opening output file ieee-iab.txt
3995 IAB entries written to file ieee-iab.txt
[root@oradba arp-scan-1.8]# arp-scan -l
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.1 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.4 00:26:b9:51:68:ef Dell Inc //网卡
192.168.100.5 20:cf:30:6f:6f:c6 ASUSTek COMPUTER INC.
192.168.100.6 48:5b:39:86:1c:62 ASUSTek COMPUTER INC.
192.168.100.7 48:5b:39:86:1c:3a ASUSTek COMPUTER INC.
有多个网卡可以指定选择哪个网卡
[root@gateway ~]# arp-scan --interface=eth1 -l
Interface: eth1, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.1 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.4 00:26:b9:51:68:ef Dell Inc
192.168.100.5 20:cf:30:6f:6f:c6 ASUSTek COMPUTER INC.
192.168.100.6 48:5b:39:86:1c:62 ASUSTek COMPUTER INC.
192.168.100.7 48:5b:39:86:1c:3a ASUSTek COMPUTER INC.
192.168.100.8 bc:30:5b:ad:74:22 Dell Inc.
192.168.100.9 00:26:b9:8e:16:17 Dell Inc
192.168.100.15 00:26:b9:35:cf:63 Dell Inc
192.168.100.17 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.18 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.19 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.20 00:0c:29:08:6a:06 VMware, Inc.
192.168.100.22 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.23 84:2b:2b:59:31:4f Dell Inc.
192.168.100.24 00:26:b9:8e:16:17 Dell Inc
指定某一段IP地址
[root@gateway ~]# arp-scan --interface=eth1 192.168.100.0/29
Interface: eth1, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8 with 8 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.100.1 00:24:1d:17:d6:e3 GIGA-BYTE TECHNOLOGY CO.,LTD.
192.168.100.4 00:26:b9:51:68:ef Dell Inc
192.168.100.5 20:cf:30:6f:6f:c6 ASUSTek COMPUTER INC.
192.168.100.6 48:5b:39:86:1c:62 ASUSTek COMPUTER INC.
192.168.100.7 48:5b:39:86:1c:3a ASUSTek COMPUTER INC.
用于更新MAC地址,便于在扫描时知道使用的是那个厂商的网卡
[root@gateway ~]# get-oui -v
Fetching OUI data from http://standards.ieee.org/regauth/oui/oui.txt
Fetched 2642079 bytes
Opening output file ieee-oui.txt
16445 OUI entries written to file ieee-oui.txt
[root@gateway ~]# get-iab -v
Fetching IAB data from http://standards.ieee.org/regauth/oui/iab.txt
Fetched 608631 bytes
Opening output file ieee-iab.txt
3995 IAB entries written to file ieee-iab.txt
其它用法可以参照arp-scan --help
相关热门文章
给主人留下些什么吧!~~
评论热议
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通