监控USB流量
我想查看从 USB 发出的所有流量,并有可能根据内容策略阻止进出 USB 的数据交易。这将如何完成?有什么方法可以在 C# 中实现此目的,或者它更像是 C++ 类型的问题?
I want to view all traffic going out the USB, with the potential to block data transactions to/from the USB based on content policy. How would this be done? Any way to achieve this in C#, or is it more of a C++ type of problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 CreateFile() 和DeviceIoControl() 来处理这个问题,但它是并不像听起来那么容易。您是否想要监控来自每个可能插入的设备的所有流量?
You can use things like CreateFile() and DeviceIoControl() to handle this, but it's not going to be as easy as it sounds. Are you wanting to monitor all traffic from every possible device that could be plugged in?
我不知道这是否有帮助,但是 #usblib 项目已经存在很多年了。
http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx
i don't know if this helps, but the #usblib project has been around for many years.
http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx