Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autorunning program from CD or USB on Win7/8

I work for an IT shop that sees some computers come in with rather nasty viruses. We are working an autorun script that will run a malware killing tool (RKill) when we insert a USB or CD (preferably USB.) We want to run the tool as soon as the USB or CD is inserted without having UAC popup, ideally anyway. Our second choice is to have it open the Autorun options, even on PCs that have been locked down a la FBI virus. We have autorun.inf, a .bat that calls a .exe, and the .exe for the tool we want to run in the root of the USB or CD. We have tried the solution found here, but that didn't work.

The code for autorun.inf and rkill.bat are below.
autorun.inf:

[autorun]
open=rkill.bat    
Where the autorun.bat file reads:
start rkill.exe

rkill.bat:

start rkill.exe

I understand that there may not be a reliable way to do this, but any help would be greatly appreciated.

like image 905
AWarnock Avatar asked Oct 09 '13 15:10

AWarnock


People also ask

How do I AutoRun a CD in Windows 7?

To configure AutoPlay in Windows Vista or 7, open Start menu by clicking Start button or pressing Windows Key on your keyboard. Type "autoplay" in Search box and click Autoplay. In Windows 8, open Settings search using keyboard shortcut Windows Key+W, type "autoplay" in Search box and click AutoPlay.


1 Answers

use this:

[autorun]
OPEN=rkill.bat
SHELLEXECUTE=rkill.bat
ACTION=run rkill.bat
ICON=rkill.exe,0

works for me! also, I run a pc repair shop also, so, a tip for you: use a boot disk

any of these work wonders:

Windows PE (with custom script)

Comodo Rescue Disc

like image 138
cascading-style Avatar answered Oct 01 '22 23:10

cascading-style