macos - 在 Mac 上嗅探 USB 流量?

标签 macos usb

有没有办法嗅探 Mac 上的 USB 端口?我看过libusb#usblib但我找不到任何可以在 Mac 上运行的东西。

最佳答案

我找到了一个方法,你需要Wireshark's nightly build (我使用的是V2.5.0rc0)。安装后,您需要打开 USB“接口(interface)”:

sudo ifconfig XHC20 up

之后您可以使用wireshark嗅探XHC20接口(interface)中的所有流量。完成后,请记住关闭界面:

sudo ifconfig XHC20 down

来源:aud-ios .

关于macos - 在 Mac 上嗅探 USB 流量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13827224/

相关文章:

python - 无法导入pylab?

macos - 从我的 mac 访问 tomcat web 服务器时出错

objective-c - 有没有办法(在构建时)判断我的 10.9 应用程序是否可以在 10.8 上运行?

macos - Common Lisp 程序的 OS X 包

android - 针对 android 的 libusb 进行编译和链接

android - 在 Android 上通过 USB 发送 MIDI 消息

postgresql - 错误 : Failure while executing; `/bin/launchctl bootstrap gui/501/Users/josh/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist` exited with 5

android - Eclipse Android SDK 无法通过 USB 连接看到新的三星 Galaxy S4 设备

linux - C++检测USB串口设备插入/拔出

c++ - 创建虚拟设备