desowin / usbpcap

USB packet capture for Windows
http://desowin.org/usbpcap
902 stars 170 forks source link

Preparing for USBPcap 1.2.0.4 release #55

Closed desowin closed 6 years ago

desowin commented 6 years ago

The USBPcap 1.2.0.4 will feature the same driver as in previous release and modified USBPcapCMD.

There are numerous improvements to USBPcapCMD done already in master branch:

I would appreciate some pre-release testing. If you are interested, please:

In report, please include Windows version, user account type and Wireshark version (if applicable).

It is recommended to use USBPcapCMD as extcap. If you have recent Wireshark version, simply place the USBPcapCMD (the version to be tested) in C:\Program Files\Wireshark\extcap directory and restart Wireshark.

gpotter2 commented 6 years ago

Seems like Windows 10 didn't really like it (I got a SmartScreen error). Otherwise it's working good ! (Installed it as extpcap)

image

gpotter2 commented 6 years ago

@desowin Isn't there a mistake in the doc here: http://desowin.org/usbpcap/captureformat.html

USBPCAP_TRANSFER_ISOCHRONOUS When function is equal to USBPCAP_TRANSFER_ISOCHRONOUS (0) the header type is USBPCAP_BUFFER_ISOCH_HEADER

I think it should be When transfer ... according to its doc

transfer (offset 22) determines the transfer type and thus the header type. See below for details.

desowin commented 6 years ago

@gpotter2 The SmartScreen is related to the fact that the automated build is signed using the test (self issued) certificate. SmartScreen is entirely related to the signature and not to the actual code.

This whole Authenticode, unlike some ISO certifications and/or CE certification, are only related to the fact that the certificate was bought from the expensive CA and used for signing. The only thing it really does verify is the the software comes from a individual/company that proved his identity to the Certificate Authority.

desowin commented 6 years ago

@gpotter2 You are right about the "function"/"transfer" mistake. I have corrected it. By the way, if you find other problems on the website, please note that the website contents are available in the gh-pages branch (and thus it's possible to open Pull Requests with proposed changes).

gpotter2 commented 6 years ago

Thanks !

gpotter2 commented 6 years ago

@desowin Hi ! I'm trying to setup scapy/USBPcap integration.

I have several issues:

I need to be able to call USBPcapCMD.exe from a piped powershell then parse its output.

Thanks a lot for any help

desowin commented 6 years ago

@gpotter2 You didn't provide the root hub parameter. In your case it should be "-d \\.\USBPcap1". By the way, I am used to see multiple root hubs on devices, it's interesting to know that Surface Pro 4 has just a single USB 3.0 root hub (did I properly guess from the list of devices?).

If you want a list of devices that you could parse, then take a look at the extcap interface.

The command to get the list of devices would be: "--extcap-interface \\.\USBPcap1 --extcap-config"

gpotter2 commented 6 years ago

Thanks ! Will look into it

You guessed correctly :)

desowin commented 6 years ago

USBPcap 1.2.0.4 is now officially released.

gpotter2 commented 6 years ago

Thanks @desowin for your help !

If you want to have a look, here is how I implemented USBpcap in scapy.

Good luck with the project !