WindowXP That is... Don' use on Windows Vista or
later!
Sorry...
SniffUSB 2.0 is a minor update to the predecessor SniffUSB 1.8 by Benoit Papillault.
The purpose of this release is actually to update Benoit's prior work to allow it to be built under newer development tools. In particular:
Benoit deserves quite a bit of credit because his V1.8 application and driver ported to these newer tools with very little effort.
Thanks, Benoit!
This release does not fix any bugs from Benoit's V1.8 release and does not offer any new functionality.
After making the initial port of the UsbSnoop driver to WDK 6000 (which went smoothly...) I did make additional modifications to the driver code. Most of these were to make the code more readable - at least to me.
The V2.0 UsbSnoop driver changes included:
In addition I removed some functionality:
I did very little work on the SniffUSB MFC application. Changes that I did make include:
SniffUSB 2.0 now supports only Windows XP.
Benoit's original SniffUSB V1.8 source and executables can be found at the URL:
http://benoit.papillault.free.fr/usbsnoop/
The SniffUSB main dialog is illustrated below:
The top of the display lists USB devices that are present on the host system.
These controls are provided:
Resume Log - Start or resume logging.
Pause Log - Pause logging.
Close Log - Command the driver to close the log file. Available only if logging is paused.
Delete Log - Delete the log file. Available only if driver has closed the log file.
These are used to specify when the Device List should be refreshed. Pressing the Refresh button will refresh the display at any time. You can have the display automatically refresh by checking the Auto-Refresh Enable checkbox and then specifying the refresh interval in the companion drop list.
By default the Device List shows only USB devices that are present on the system. You can also view devices that are not currently present by checking the List Devices Not Present checkbox.
In order to log USB operations you must install the UsbSnoop filter below the devices that you wish to monitor.
To install the UsbSnoop filter follow these steps:
Select the USB device of interest in the Device List.
Press the Install button in the Filter Control group. This calls SetupDi functions that are needed to install the UsbSnoop filter below the selected device. "Installed" should then appear in the "Filter Installed?" column of the Device List.
Here the term "installed" may be a little misleading. At this point the system has been configured so that the next time the selected device is started the UsbSnoop filter will be installed - but the filter isn't actually started.
The filter will actually be started the next time the selected device is started. If you restart your system, then the filter will be started when the system restarts. If the device is removable, then if you remove and re-plug the device the filter will be started as part of the re-plug process.
Alternatively you can press the Replug button in the Filter Control group. This restarts the selected device programmatically and as the selected device is restarted the UsbSnoop filter will actually be loaded below the selected device.
To uninstall a UsbSnoop filter follow these steps:
Select the USB device of interest in the Device List.
Press the Uninstall button in the Filter Control group. This calls SetupDi functions that are needed to uninstall the UsbSnoop filter from below the selected device. "Installed" should then disappear in the "Filter Installed?" column of the Device List.
Here the term "uninstalled" may be a little misleading. At this point the system has been configured so that the next time the selected device is started the UsbSnoop filter will be not be installed - but the UsbSnoop filter is actually still running and logging data.
You can press the Replug button in the Filter Control group. This restarts the selected device programmatically and as the selected device is restarted the UsbSnoop filter will not be loaded below the selected device.
Press the Uninstall All button in the Filter Control group. This does the "uninstall" and the "re-plug" operations needed to remove all UsbSnoop filter instances.
The default viewer simply opens the log file using Notepad. For more readable results, open the log file using WordPad.
Use WordPad to view the Log file.
This program is provided as a service to the Windows system software development community via Printing Communications Assoc., Inc. (PCAUSA) and Benoit Papillault.
The right to use this code in your own derivative works is granted so long as your own derivative works include significant modifications of your own. This product includes software developed by PCAUSA and Benoit Papillault. The names of PCAUSA and Benoit Papillault may not be used to endorse or promote products derived from this software without specific prior written permission.
Printing Communications Assoc., Inc. (PCAUSA) and Benoit Papillault expressly disclaim any warranty.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MECHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK ARISING FROM THE USE OF THIS SOFTWARE REMAINS WITH YOU.
PCAUSA's entire liability and your
exclusive remedy shall not exceed the
price paid for this material. In no event shall
PCAUSA or its suppliers be liable for
any damages whatsoever (including, without limitation,
damages for loss of business profit,
business interruption, loss of business information, or any other
pecuniary loss) arising out of the use or
inability to use this software, even if PCAUSA
has been advised of the possibility of
such damages. Because some states/jurisdictions do not allow the
exclusion or limitation of liability for
consequential or incidental damages, the above limitation may not
apply to you.
This is brand-new code that I have not been able to test thoroughly. So, I welcome your feedback in the following areas:
My email address is at the bottom of this page.
Please understand that SniffUSB is an experimental tool. Although
not known to have flaws, it is not as heavily tested as other PCAUSA
products.
You will need to install the .NET 2.0 framework to provide the necessary MFC and CRT support for SniffUSB. If there is sufficient interest I will make a MSI installer that installs the support for you.
There have been reports of failures (BSOD) when using SniffUSB on
Windows XP SP3 with some devices. SniffUSB is definitely is not
suitable for use on Windows Vista or later.
Use at your own risk!
SniffUSB 2.0.0006 x86 Edition
138.81KB (142141 bytes)SniffUSB 2.0.0006 x64 Edition
179.92KB (184236 bytes)
You can download the SniffUSB source code from the following link:
SniffUSB 2.0.0006 Source Code
194.75KB (199425 bytes)
You can view the SniffUSB 2.0 Release Notes from the following link:
Please let me know your experiences with this experimental software. Your feedback is needed if improvements are to be made to this tool.
Thomas F. Divine
tdivine@NOpcausaSPAM.com
(Remove "NO" and "SPAM" to get usable email address...)
|
Topic Status |
|
| February 23, 2007 | Improvements to logging
control and log file deletion. See the Release Notes. |
| January 14, 2007 | Improvements to MFC
application.
|
| January 1, 2007 | Minor update V2.0.0002. See the SniffUSB 2.0. |
| December 27, 2006 | Initial release. SniffUSB V2.0.0001. |