April 14, 2008
12:52 am | Last updated: May 27, 2008 at: 3:28 am

USBVirusScan will launch any program you provide as a command line parameter each time a USB stick is inserted. The author 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 %d:

%d (or %c for legacy reasons) is a placeholder for the drive-letter of the inserted USB drive.

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 %d:

You can also hide the command line console with option -c. This only works with Console applications, not with Windows applications. Option -e will disable the Exit command in the pop-up menu.

The -q switch will stop a running instance of USBVirusScan.

A new flag, -d, adds debugging support to USBVirusScan. When this flag is present, USBVirusScan will write debug output when drives are inserted. This debug output can be viewed with DebugView.

If you’re still unsure of how USBVirusScan works, you can see it in action at YouTube or download higher resolution version. The video will show that the batch file (start.bat) which contains the configuration is being launched first. Then a USB flash drive is connected. USBVirusScan detected the USB flash drive and immediately runs McAfee antivirus to scan the drive.

All you need is an antivirus program installed. Then you’ll need to find out the command line that can perform a scan. Once you have the command line, just edit the start.bat file. I know the command line part can be a bit confusing for computer beginners. So I’ve provided a few command line for some popular antivirus.

AVG FREE 7.5
USBVirusScan.exe “C:\Program Files\Grisoft\AVG7\avgscan.exe� /clean %%c:

Kaspersky Anti-Virus 7
USBVirusScan.exe “C:\Program Files\Kasperksy Lab\Kaspersky Anti-Virus 7.0\avp.com� scan /i3 %%c

Norton AntiVirus 2008
USBVirusScan.exe “C:\Program Files\Norton Antivirus\navw32.exe� %%c:

ESET NOD32 Antivirus
USBVirusScan.exe “C:\Program Files\ESET\ESET NOD32 Antivirus\ecls.exe� /action=clean %%c:

ClamWin
USBVirusScan.exe “C:\Program Files\ClamWin\bin\clamscan.exe� --database=�C:\ProgramData\.clamwin\db� %%c:
Note: ClamWin is a bit tricky because you need to specify the virus definition database location. What I provided above is the default database location in Windows Vista. To check the location of the virus definition database, run ClamWin, go to Tools —> Preferences —> File Locations.

USBVirusScan

USB, Anti-virus, Anti-malware, Security, Antivirus, Scan, Autorun, Freeware, Software, Download

Loading

Contextual Related Posts:

1 Response | RSS comments on this post | Leave a comment»

  1. 1
    Aa'ed Alqarta says#1 | December 14th, 2008 at 8:36 am

    Hi,

    Nice way, I got my own recipe using Portable ClamAV Windows batch Autorun.inf. Check it out here:

    http://extremesecurity.blogspo.....-with.html

    Cheers ;]

No Pingback yet

PingBack URI

Leave a Response

Comment Preview
« Apple QuickTime for Windows Vista now supports ASLRPsystar promises $399 Leopard compatible “OpenMac” – An alternative to an Apple Mac »
Feed Icon

Subscribe via RSS or email: