Oct28th2006

USBVirusScan - Detect USBDevice + Scan for Virus

USBVirusScan - Detect USBDevice + Scan for Virus

http://didierstevens.wordpress.com/2006/10/16/usbvirusscan/

When Bruce Scheiner blogged about USBDumper, I downloaded the program and filed it for some later experimentation.

During our vacation I started programming on a rainy evening, and USBVirusScan was born.

USBVirusScan will launch any program you provide as a command line parameter each time a USB stick is inserted. I use it to start a full virus scan on the inserted USB drive, hence the name.

For example, to start a cmd.exe on each USB drive you insert, you start USBVirusScan like this:

USBVirusScan cmd /k %c:

%c is a placeholder for the drive-letter of the inserted USB drive (yes, that’s %c like C’s printf function, and no, that’s not completely secure, but feel free to adapt it…).

USBVirusScan uses a system tray icon and balloons to announce the insertion of a USB drive. If you want to hide this system tray icon, start USBVirusScan with option -i, like this:
USBVirusScan -i cmd /k %c:

0 Responses to “USBVirusScan - Detect USBDevice + Scan for Virus”


  1. No Comments

Leave a Reply




Syndicate

Xobni outlook add-in for your inbox

Categories

Archives