desowin / usbpcap

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

USBPcap - USB Packet capture for Windows

End-user installer is available at: http://desowin.org/usbpcap Following informations are intended for developers and power users only.

Directory overview: USBPcapCMD - sample user space application USBPcapDriver - filter driver used to capture data

Build instructions: Download and install Windows Driver Kit 7.1.0 from Microsoft http://www.microsoft.com/en-us/download/details.aspx?id=11800

Adjust driver_build_win7_64bit.bat (first line of that file):

Installation: TESTSIGNING must be enabled in order to install this driver on 64 bit Windows. To do so, issue following command (as administrator): Bcdedit.exe -set TESTSIGNING ON and reboot.

Right click on the USBPcap.inf file and select Install.

After installing, reboot.

Usage: Currently there is no capture engine dll. You can use the USBPcapCMD.exe to select the filter instance (there is one instance per root hub) and specify the output pcap file name.

Licensing: USBPcapDriver is licensed under GPLv2 license. USBPcapCMD is licensed under BSD 2-Clause license.