This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

what’s the primary reason windows can’t capture usb packets yet linux can

0

http://wiki.wireshark.org/CaptureSetup/USB
is it because windows just doesn't have the software to do so?

asked 16 May '12, 01:15

wiresharkhelpers's gravatar image

wiresharkhel...
309913
accept rate: 0%


2 Answers:

1

Microsoft :-)

Just kidding.... Linux offers a subsystem (usbmon) that enables libpcap to sniff USB traffic. There is nothing comparable under windows, as nobody has implemented it yet. You'll find some hints in the wiki how to create such a subsystem ("Hints for developing something like a Windows native "USBPcap":). However some of the links are outdated.

Regards
Kurt

answered 16 May '12, 01:17

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 16 May '12, 01:22

ok so windows doesn't have the software

(16 May '12, 01:24) wiresharkhel...

well, it's not yet possible with wireshark.

If you need to sniff USB traffic on windows 7, check this link:

http://blogs.msdn.com/b/usbcoreblog/archive/2009/12/04/etw-in-the-windows-7-usb-core-stack.aspx

(16 May '12, 01:57) Kurt Knochner ♦

Microsoft:) boy,that is spot on(SteveJ will shower his blessings)

(11 Apr '13, 12:49) krishnayeddula

The company that the first SteveJ who comes to mind formerly headed doesn't have a published and documented mechanism for doing USB sniffing. There are debug versions of the IOUSBFamily kext ("kext" is to OS X as "lkm" is to Linux or ".sys file", I guess, is to Windows) that provide information that some Apple tools can read; the debug versions are OS-version-dependent. Apple Technical Q&A QA1370, which is a bit out of date (/Developer is obsolete; that stuff is now under /Applications/Xcode.app/Contents) says

The logging version of the IOUSBFamily Kernel Extension does not provide packet data information that is available under Windows. Even under Windows, a USB Analyzer is required to analyze problems resulting from STALL, DATA TOGGLE, and other protocol error conditions.

so it sounds as if, even with that kext, you can't do as much sniffing on OS X as you can on Windows. Linux FTW here....

(11 Apr '13, 18:30) Guy Harris ♦♦

1

You can use USBPcap to capture USB traffic on Windows.

answered 11 Apr '13, 11:53

desowin's gravatar image

desowin
262
accept rate: 0%

nice one. Thank you!

(11 Apr '13, 14:21) Kurt Knochner ♦