OSX USB监控 [英] OSX USB Monitoring

查看:112
本文介绍了OSX USB监控的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何监视OSX上的所有USB流量?我从Apple Dev网站下载了USB监控扩展,并运行了USB Prober.当我开始监视时,什么都没有显示,并且在监视时有数据正在与USB设备之间来回发送.

How can I monitor all USB traffic on OSX? I downloaded the USB monitoring extensions from the Apple Dev website and ran USB Prober. Nothing shows up when I start the monitoring, and there is data being sent to and from the USB device while monitoring.

我在此站点上找到了2个类似的主题,但是除了使用libusb之外,没有一个答案.我希望我不必使用libusb从头开始编写自己的监视器.鉴于在2010年提出了这些问题,我希望从那时起就已经开发出工具来在OSX上实现此目标.

I found 2 similar topics on this site, but neither gave an answer aside from using libusb. I was hoping I wouldn't have to write my own monitor from scratch using libusb. Seeing as the questions were asked in 2010, I'm hoping tools have been developed since then to accomplish this on OSX.

推荐答案

在高塞拉利昂(甚至可能是旧版本)中,您可能需要

It's possible in high sierra (and maybe older versions), you'll need Wireshark's nightly build (I am using V2.5.0rc0). After you install it, you'll need to bring up the USB "interface":

sudo ifconfig XHC20 up

然后,您可以使用wireshark嗅探XHC20界面中的所有流量.完成后,请记住将界面调低:

And after that you can use wireshark to sniff all the traffic in the XHC20 interface. When you finish, remember to turn the interface down:

sudo ifconfig XHC20 down

来源: aud-ios .

这篇关于OSX USB监控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆