Introduction: Batch File Prank

Hi Boffins of the world!

Today I'm going to show you how to right a random batch file prank.

I'll say it right now, this is NOT A VIRUS, it's a piece of harmless fun!

Have fun!

Step 1: Getting Started

 Okay, first you need to open notepad as this is where you'll type in your batch file.

Step 2: The Actual File

 Okay so here is the actual file (feel free to copy and paste it -

@echo off
@echo WARNING VIRUS ATTACK!
@echo WARNING VIRUS ATTACK!
@echo WARNING VIRUS ATTACK!
@echo All Files Deleted. Reboot to Restore.
@echo Press Enter to Reboot
ping 1.1.1.1 -n 1 -w 5000 >NUL
@echo C: Drive Deleted
@echo WARNING! All Files Lost! Virus Detected 
@echo Contact Administrator
@echo WARNING! FIREWALL BREACHED!
pause
@echo WARNING! System Shutdown in 5!
ping 1.1.1.1. -n 1 -w 1000 >NUL
@echo WARNING! System Shutdown in 4!
ping 1.1.1.1 -n 1 -w 1000 >NUL
@echo WARNING! System Shutdown in 3!
ping 1.1.1.1 -n 1 -w 1000>NUL
@echo WARNING System Shutdown in 2!
ping 1.1.1.1 -n 1 -w 1000>NUL
@echo WARNING! System Shutdown in 1!
ping 1.1.1.1 -n 1 -w 1000 >NUL
@echo Man are you easy to fool! 




Step 3: Also...

 If you want you can change the last line of the batch file (@echo man are you easy to fool!) to this

shutdown -s -f -t 15 -c  

Which will cause the pc to shutdown in 15 seconds, but will do no lasting damage!

Well Bye-Bye!

Comments

author
Histocon (author)2017-09-18

@echo off

color 0f

title ©2017 Northern Territory Government of Australia [HDD SEARCH AND SEIZURE]

echo Obtaining Computer's IP Address...

timeout 3

echo VPN found..[active]................................................................

timeout 3

echo ...................................................................................

echo ..Updating the NT Police ©PROMIS system............................................

echo ...................................................................................

timeout 3

echo ...................................................................................

echo . Dialing Northern Territory police headquarters 131 444..

echo ...................................................................................

timeout 5

echo ...................................................................................

echo ..Your IP Address 138.44.213.7 is now being traced by ©PROMIS servers..............

echo ..The Northern Territory Government of Australia [HDD SEARCH AND SEIZURE] program..

echo ..has been activated and detected you as a potential threat to the ©PROMIS system..

echo .."276B. Unlawful access to data..................................................

echo ..[1] A person unlawfully accessessing data held in a computer with intent to-.....

echo ..(a) cause loss or harm to the person entitled to the data or a third person; or..

echo ..(b) gain a benefit or advantage, whether personally or for a third party,........

echo ..-is guilty of a crime and is liable to imprisonment for 10 years.................

echo ..

echo ...................................................................................

timeout 10

echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

echo ::imediate erasure of your computer's Hard Drive(s) to conceal evidence will:::::::

echo ::result in further investigation and severe criminal penalties to include 10::::::

echo ::years imprisonment and a $500,000 fine for obstruction of justice and disclosure:

echo ::of government information::::::::::::::::::::::::::::::::::::::::::::::::::::::::

echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

echo ...................................................................................

echo ..©2017 Northern Territory Government of Australia [HDD SEARCH AND SEIZURE]........

echo ..program will now procede to duplicate and uplaod your hard drive(s) data to......

echo ..©PROMIS servers..................................................................

echo ...................................................................................

timeout 5

echo ...................................................................................

echo ..HDD data duplication successful..................................................

echo ...................................................................................

timeout 2

echo ...................................................................................

echo ..HDD data successfully uploaded to ©PROMIS servers................................

echo ...................................................................................

timeout 5

echo ..to ensure no further offences occur under your name ©PROMIS has concluded........

echo ..to render your computer unserviceable............................................

echo ...................................................................................

echo ..command 3hgw5th6p.exe has successfully been initiated and will render your.......

echo ..computer unserviceable in roughly 5 business days................................

echo ..command 3hgw5th6p.exe will now proceed to boot up within roughly 10-15 seconds...

echo ...................................................................................

timeout 15

set loopvar=1

:looplabel

set /a loopvar=%loopvar%+1

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

if '%loopvar%'=='1500' goto endlabel

goto looplabel

:endlabel

shutdown -s -f -t 15 -c "©2017 Northern Territory Government of Australia [HDD SEARCH AND SEIZURE] program was successful. The ©PROMIS servers will contact you within 8-10 business days reguarding the results of the ©2017 Northern Territory Government of Australia [HDD SEARCH AND SEIZURE]."

author
forrestr6 (author)2017-07-05

@echo off

@echo WARNING WINDOWS DEFENDER BREACH!

@echo WARNING WINDOWS DEFENDER BREACH!

@echo WARNING WINDOWS DEFENDER BREACH!

@echo All Files Deleted. Reboot to Restore.

@echo Press Enter to Reboot

ping 1.1.1.1 -n 1 -w 5000 >NUL

@echo C: Drive Deleted

@echo WARNING! All Files Lost! Virus Detected

@echo Contact Administrator

@echo WARNING! FIREWALL BREACHED!

pause

@echo WARNING! System Shutdown in 5!

ping 1.1.1.1. -n 1 -w 1000 >NUL

@echo WARNING! System Shutdown in 4!

ping 1.1.1.1 -n 1 -w 1000 >NUL

@echo WARNING! System Shutdown in 3!

ping 1.1.1.1 -n 1 -w 1000>NUL

@echo WARNING System Shutdown in 2!

ping 1.1.1.1 -n 1 -w 1000>NUL

@echo WARNING! System Shutdown in 1!

pause

SHUTDOWN /s /f /c "just a prank bro"

author
BubbaSkywalker (author)2017-01-30

You can also mesh this with a windows error .vbs file with a simple opening command embedded into a fork bomb loop.

author
Janneske2 made it! (author)2016-06-12

here is the file

NOTE: it is not a real virus! REALLY!!!

Word Document.docx.bat
author
Janneske2 made it! (author)2016-06-12

here is the file

NOTE: it is not a real virus! REALLY!!!

Word Document.docx.bat
author
Janneske2 made it! (author)2016-06-12

here is the file

NOTE: it is not a real virus! REALLY!!!

Word Document.docx.bat
author
Janneske2 (author)2016-06-12

I made this out of it:

@echo off

color 0a

timeout /T 1 /nobreak>nul

@echo WARNING! Virus Attack!

timeout /T 2 /nobreak>nul

@echo WARNING! Virus Attack!

timeout /T 3 /nobreak>nul

@echo WARNING! Virus Attack!

timeout /T 1 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo All files deleted. Reboot to restore.

@echo Press Enter to reboot.

pause>nul

cls

timeout /T 3 /nobreak>nul

@echo C:Drive deleted.

timeout /T 2 /nobreak>nul

@echo WARNING! All files lost.

timeout /T 1 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo Contact Administrator.

timeout /T 4 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo Virus Detected!

timeout /T 2 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo WARNING! System shutdown in 5!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 4!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 3!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 2!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 1!

timeout /T 2 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo PRANK!!!

timeout /T 1 /nobreak>nul

pause

author
jps4 (author)2015-02-13

try this

:start %0
%0

author
MaxR2 (author)2014-09-02

So, I pimped this code out a little bit! Please tell me if I can make anything more efficient or better, or even if I made any mistakes! THANKS! :)

@echo off

@echo WARNING VIRUS ATTACK!

@echo WARNING VIRUS ATTACK!

@echo WARNING VIRUS ATTACK!

@echo All Files Deleted. Reboot to Restore.

@echo Press Enter to Reboot

ping 1.1.1.1 -n 1 -w 5000 >NUL

@echo C: Drive Deleted

@echo WARNING! All Files Lost! Virus Detected

@echo Contact Administrator

@echo WARNING! FIREWALL BREACHED!

pause

@echo WARNING! System Shutdown in 5!

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 4!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 3!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 2!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 1!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo Man are you easy to fool!

@echo Do you REALLY think I would make a virus to delete all files on your computer?

@echo Well, I might. But not this time.

@echo This time.

@echo THIS TIME.

@echo Press Enter to End

ping 1.1.1.1 -n 1 -w 4000 >NUL

@echo SIKE! Im deleting everything now!

@echo Now I will give you a REAL countdown!

pause

@echo DELETING ALL FILES IN 5

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 4

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 3

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 2

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 1

ping 1.1.1.1. -n 1 -w 1500>NUL

pause

color 2

:start

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start

author
messmaker (author)2011-02-16

could i be in on this? (:

author
nova (author)messmaker2011-02-17

Sure, we never really did figure out what we were going to do, so for sure.

author
rahulbumwatt (author)nova2011-02-18

Right then! we may as well get started! Nova, you already have my email, messmaker, ive sent you a private message. reply soon!

author
Alfred17k (author)rahulbumwatt2013-10-25

Can I be in on this? I have a few years of practice with these sort of viruses. .




author
messmaker (author)rahulbumwatt2011-02-21

i have added you both to windows live.
im looking forward to working with you both.

author
nova (author)rahulbumwatt2011-02-18

Absolutely, rahulbumwatt, you could start a group email maybe? As i don't have messmaker's.

author
xXFrEnZyXx (author)2012-08-09

Does this code work?

@echo off

color a
echo Please wait...
cls
pause>nul

Please reply ;D

------Contact Info--------
AIM: EliteOzzie
------------------------------

author
lukeford (author)2012-07-01

i fixed your code for you

@echo off

color a
echo WARNING VIRUS ATTACK!
:sleep
ping 1.1.1.1 -n 1 -w 5000 >NUL
cls


echo All Files Deleted. Reboot to Restore.
ping 1.1.1.1 -n 1 -w 1000>nul
echo Press Enter to Reboot
pause>nul
cls

echo C: Drive Deleted
echo WARNING! All Files Lost! Virus Detected
echo Contact Administrator
:sleep
ping 1.1.1.1 -n 3 -w 1000>nul
cls
echo WARNING! FIREWALL BREACHED!
:sleep
ping 1.1.1.1 -n 3 -w 1000>nul
cls

echo WARNING! System Shutdown in 5!
ping 1.1.1.1. -n 1 -w 1000 >NUL
cls
echo WARNING! System Shutdown in 4!
ping 1.1.1.1 -n 1 -w 1000 >NUL
cls
echo WARNING! System Shutdown in 3!
ping 1.1.1.1 -n 1 -w 1000>NUL
cls
echo WARNING! System Shutdown in 2!
ping 1.1.1.1 -n 1 -w 1000>NUL
cls
echo WARNING! System Shutdown in 1!
ping 1.1.1.1 -n 1 -w 1000 >NUL
cls
echo Man are you easy to fool!
pause>nul

author
mthee1 (author)2012-06-12

@echo off
title p@ythee Virus Killer
color 7c
echo.
echo Hey, You have a *** Very Dangerous Virus ***
echo.
echo.
echo Virus is Activating NOW . . . . .
ping localhost > nul
cls
echo Trying to remove ⌡öuX.dll . . . . .
ping localhost > nul
:_1
color cf
dir/s
goto:_1

author
mthee1 (author)2012-06-12

That code is not for Prank...

@echo off
:a
explorer
goto:a

author
nova (author)2010-04-23

 great file! the only thing i would add is: display the message warning in a message box with msg * WARNING VIRUS ATTACK! or you could make a continuos loop to the message, making it unclosable, with this code:

:msg
echo.
echo msg * WARNING VIRUS ATTACK!
goto msg

but besides that, thanks for the file!! 

author
jediking14 (author)nova2010-06-07

The msg* thing never works with me...

author
messmaker (author)jediking142011-02-19

@echo off
msg * hello
msg hello2
pause





Run that and see if one of those commands work.,

author
nova (author)jediking142010-06-09

yeah, sometimes it decides to screw around with you, it's kind of annoying...

author
jediking14 (author)nova2010-06-10

Feel ya on that brother.

author
nova (author)jediking142010-06-12

Finally. someone who knows the feeling, i tell people this and they're like what?

author
messmaker (author)nova2011-02-16

@echo off
:A
msg * VIRUS ATTACK!
ping localhost -n 1 >nul
goto :A





that one is readable and better, even though i just made it up then|:

author
rahulbumwatt (author)messmaker2011-02-18

Nice

author
nova (author)messmaker2011-02-17

Woops, yeah, i meant top put just msg, instead of echo msg

author
rahulbumwatt (author)nova2010-04-25

 Do you mean...


:A
@echo off
echo WARNING VIRUS ATTACK!
goto A

But that would open it so fast you wouldn't be able to read it!

BUT, i could do 

:A 
@echo off
echo WARNING VIRUS ATTACK!
pause
goto A

And that would work.

Thanks for the suggestion though!

author
messmaker (author)rahulbumwatt2011-02-16

@echo off
msg * Windows has detected this as a virus. Please wait.
ping localhost -n 4 >nul
echo Windows is deleting the file...
ping localhost -n 3 >nul
:A
msg * VIRUS ATTACK!
goto :A




I just wrote the code then and i didnt test it, but it will work (:

author
nova (author)rahulbumwatt2010-04-25

 no, if u put msg * a message box appears and stays there until you close it, with this code you can't close it, very useful! the msg box is seperate from the file. 

author

 OR did you mean a .vbs file?

author
nova (author)nova2010-04-23

 btw u would want to put that code at the end, because it will prevent the duration of the fileand you will need to shutdown thecomputer to get rid of the box, hope this helped!!

author
nova (author)nova2010-04-23

also, would you like to collaborate on a large batch file?

author
rahulbumwatt (author)nova2010-04-25

 Sure.

Right now i'm working on a real(ish) virus instructable.

If you'd give me your email or something i'll send it to you!


author
messmaker (author)2011-02-16

im really sorry to say, but that code fails :P


if i fixed it up a bit and sent you a code, could u edit it with a proper code?

About This Instructable

91,727views

11favorites

License:

More by rahulbumwatt:Hacking Flash GamesBatch File Prank
Add instructable to: