Appearance
Appearance
此 Lua 脚本会向 Wireshark 添加一个新的 GUI 菜单,允许用户查询 OUI 和其他 MAC 地址前缀。它使用本地安装的 manuf 文件(如果存在),或本地生成的 oui.txt 文件来执行这些查询。如果你正在寻找在线 OUI Lookup Tool,请访问:https://www.wireshark.org/tools/oui-lookup.html。
OUI 和 MAC 地址搜索可以使用冒号、连字符或句点分隔,也可以完全不包含分隔符。搜索还可以包含任意文本以及 Lua patterns。
安装 - 放入 plugins 目录 - 请参阅 Wireshark 中的 Lua Support
ouilookup.lua
示例:
有关 Lua patterns 的帮助,请参阅 https://www.lua.org/manual/5.4/manual.html#6.4.1
此 OUI 查询工具也可以使用 tshark 从命令行运行。例如:
Windows:tshark.exe -X lua_script:path\to\ouilookup.lua -X lua_script1:path\to\ouilookup.txt -c 0 2> nul
*nix:tshark -X lua_script:path/to/ouilookup.lua -X lua_script1:path/to/ouilookup.txt -c 0 2> /dev/null
... 其中 ouilookup.txt 是包含 OUI 搜索条件的任意文件名。