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

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
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.
So if this is the case, it is a sufficient workaround but not what was intended.
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?
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).
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...