This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

How to capture USB packets please?

asked Oct 31 '17

Hi all,

I used Wireshark many moons ago and need to return to the fold, but this time to sniff USB packets.

I've installed USBpcap but there is no USB interface shown on Wireshark, just the Ethernet connections.

I've looked at the documentation but can't find an idiot's how-to. The references to USB seem to be in the context of USB to Ethernet convertors. Is there a guide available? What am I doing wrong please?

Running Windows 7 and soon Windows 10.

Cheers John

1 Answer

0

answered Oct 31 '17

updated Oct 31 '17

What Wireshark version?

On Windows, USBPcap is the capture driver for USB. What does the output of command line command USBPcapCMD.exe show, it should be a list of USB devices as illustrated here? If it doesn't then you should raise an issue at the USBPcap project site.

If the command does show a list of devices, what does tshark -D display?

Comments

Thanks for the info, Graham, it's certainly helped I hadn't twigged that it's a two-stage process - use USBPcapCMD to capture the packets to a file then use Wireshark to display them. I'm using the latest Wireshark (2.4.2). tshark shows only the wired interfaces, as shown at start-up. Cheers

User 27576 ( Oct 31 '17 )

It is not intended to be a two-stage process. Normally *shark should call USBPcapCMD.exe in extcap mode and show you each USB root hub as a capture-able interface just as you expect. So if you can capture using USBPcapCMD.exe run from the command line but not from *shark, something is wrong.

User 73968 ( Oct 31 '17 )

So if this is the case, it is a sufficient workaround but not what was intended.

User 73968 ( Oct 31 '17 )

OK, there does seem to be a problem with my installation then, since the USB interfaces aren't offered in Wireshark. What can I do to help sort it out?

User 27576 ( Oct 31 '17 )

Does your `C:\Program Files\Wireshark\extcap` directory exist and contain a copy of `USBPcapCMD.exe`? (If you have installed Wireshark elsewhere, use that path of course).

User 73968 ( Oct 31 '17 )

It does exist but is empty. USBcapCMD is in C:\Program Files\USBPcap. I copied it to ...\Wireshark\extcap\ and the USB interfaces are now shown in Wireshark. Great stuff, thank you! Seems there's a problem in USBcap's installer though...

User 27576 ( Oct 31 '17 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.