通过 MAC 地址查找品牌/型号的好工具?

use*_*ame 6 router log-files mac-address

MAC 地址(以太网 ID)的前几位数字特定于其制造商/型号。我不会问什么是查找这些的最佳方法,因为它是主观的......但我很想知道这里是否有人找到了一个特别有效的资源来做到这一点。

Che*_*ion 11

在线时,我使用MAC_Find: - 如果您只查找一两个,这会很有帮助。

如果您想查找更多数量或 MAC 地址列表,运行脚本以grepIEEE 的 OUI List 中获取行(使用或类似的东西)会更容易。请注意,oui.txt 文件用破折号而不是冒号分隔 MAC 地址。

为了让生活更有趣,这里有一个 shell 脚本,可以从任何arp会给你的东西中获取制造商的:

#!/bin/sh

# Get Mac Addresses, add missing 0s, only grab the first 8 characters, change to dashes and uppercase
arp -a | awk {'print toupper($4)'} | sed 's/^[0-9A-F]:/0&/g' | sed 's/:\([0-9A-F]\):/:0\1:/g' | cut -c 1-8 | sed 's/:/-/g' > /tmp/arp.txt

for line in `cat /tmp/arp.txt`
    do
    echo `grep $line /PATH/TO/oui.txt`
done

rm /tmp/arp.txt
Run Code Online (Sandbox Code Playgroud)

示例输出:

00-00-5A (hex) SysKonnect GmbH
00-00-5A (hex) SysKonnect GmbH
00-03-93 (hex) Apple Computer, Inc.
00-17-F2 (hex) Apple Computer
00-17-F2 (hex) Apple Computer
00-0A-95 (hex) Apple Computer, Inc.
00-11-24 (hex) Apple Computer
00-16-CB (hex) Apple Computer
00-11-24 (hex) Apple Computer
00-17-F2 (hex) Apple Computer
00-16-CB (hex) Apple Computer
Run Code Online (Sandbox Code Playgroud)