我发现了一些工具,它们似乎更新了我的系统上的OUI地址供应商数据库,比如老爷、亚罗顿-ng-oui-更新或update-oui:
update-oui(8) OUI update-oui(8)
NAME
update-oui - download new version of the OUI and IAB lists
SYNOPSIS
update-oui
DESCRIPTION
update-oui fetches the current version of the OUI and IAB lists from
http://standards.ieee.org/regauth/oui/index.shtml and installs it, if the
installed versions is older than 5 days.
This utility requires curl, wget or libwww-perl to be installed.
OPTIONS
-q Be quiet. Do not output messages.
-f Force the update, even if the file is newer than 5 days.
FILES
/usr/share/misc/
Directory holding symbolic links to oui.txt and iab.txt但如果我在我的网络上搜索IP:
luis@Zarzamoro:~$ sudo netdiscover -i eth1
92 Captured ARP Req/Rep packets, from 12 hosts. Total size: 5520
_____________________________________________________________________________
IP At MAC Address Count Len MAC Vendor
-----------------------------------------------------------------------------
192.168.4.31 bc:f1:f2:12:b4:93 60 3600 Unknown vendor
192.168.4.24 f0:db:e2:de:11:80 02 120 Unknown vendor
192.168.4.242 00:1d:7e:9c:6e:fc 05 300 Cisco-Linksys, LLC
192.168.4.243 00:1c:10:64:63:ac 05 300 Cisco-Linksys, LLC
192.168.4.244 00:1c:10:64:5f:94 05 300 Cisco-Linksys, LLC
192.168.4.1 d8:61:94:e5:0b:1d 05 300 Unknown vendor
192.168.4.246 00:1a:70:2f:ab:4b 04 240 Cisco-Linksys, LLC
192.168.4.10 84:11:9e:2b:1c:d6 01 060 Unknown vendor
192.168.4.11 ec:1f:72:5d:42:d0 02 120 Unknown vendor
192.168.4.245 00:1a:70:2f:aa:63 01 060 Cisco-Linksys, LLC
192.168.4.248 00:1a:70:2f:aa:d1 01 060 Cisco-Linksys, LLC
192.168.4.251 44:d9:e7:0a:0b:98 01 060 Unknown vendor只要有一些MACs报告为Unknown vendor,我想搜索任何on数据库的信息。
执行此搜索的正确命令行方法是什么?
也许是这样:
oui-info 44:d9:e7注意:我知道,使用web浏览器,我可以谷歌的MAC的前3对,但我想要一些命令行方法,以便我可以脚本或使用通过远程登录(SSH)。
发布于 2015-12-11 14:04:59
我不认为有一个自动化的工具来执行您的要求,但是可以通过直接处理文件oui.txt来完成。
首先,它标识下载的文件,例如:
root@kalilloX:~# locate oui.txt
/var/lib/ieee-data/oui.txt然后搜索您感兴趣的字符串。必须删除:或插入-:
root@kalilloX:~# grep -i "44d9e7" /var/lib/ieee-data/oui.txt
44D9E7 (base 16) Ubiquiti Networks, Inc.发布于 2018-10-18 11:46:45
您可以通过使用这个API的CURL这样的方法来检索实际的供应商:
curl -XGET "https://api.macaddress.io/v1?apiKey=at_2d31hlNQAO1PXZVTecL6yoVAxI8IW&output=vendor&search=bc:f1:f2:12:b4:93"或
wget -qO- "https://api.macaddress.io/v1?apiKey=at_2d31hlNQAO1PXZVTecL6yoVAxI8IW&output=vendor&search=bc:f1:f2:12:b4:93"对于列出的未知MAC地址,它返回以下结果:
bc:f1:f2:12:b4:93 -> Cisco Systems, Inc
f0:db:e2:de:11:80 -> Apple, Inc
d8:61:94:e5:0b:1d -> Objetivos y Sevicios de Valor Añadido
84:11:9e:2b:1c:d6 -> Samsung Electronics Co, Ltd
ec:1f:72:5d:42:d0 -> Samsung Electro-Mechanics(Thailand)
44:d9:e7:0a:0b:98 -> Ubiquiti Networks Inc要使用该服务,您需要获得一个apiKey,如果您每天请求不足1000个,它是免费的。
发布于 2017-11-06 12:30:47
我写了一个更新oui和iab文件的脚本。主要问题是,nmap-文件的格式与btscan或arpwatch等不一样,它们通常有不同的形式(带有双点的MAC-地址、连字符、没有分隔符、大写、小写等)。
您可以尝试这个脚本,它存储在https://github.com/burningfog/refresh_奥伊中。
请阅读自述文件,如果有任何问题,请每封邮件给我一个提示。如果github中除了命名之外还有其他工具,请告诉我oui文件的路径和该文件中的一些行,以便我可以查看该表单。
你好,燃烧的雾
https://unix.stackexchange.com/questions/248769
复制相似问题