Introduction: How to Make a Fake Virus With a Batch File

In this Instructable I will be showing you how to make a batch file, that should fool your friends into thinking that their computer has a virus. It will look something like the above image when it's running. At the end of the program a message will pop up that says "Your computer has committed suicide. Good-bye". Then the computer will shutdown. To cancel the shutdown procces type "shutdown /a" into command prompt and press enter.

Step 1: Open Notepad

Open the typing program notepad on your computer. You'll use notepad to make the batch file.

Step 2: Write the Program

If you have experience writing batch files feel free to modify and improve the below code, If you don't have experience than simply copy and paste the code into notepad. Save the file as a ".bat" file, such as "Virus.bat".








@echo off

title Cyber Attack Sequence Initiation
color 02
echo Warning-Complete File Corruption imminent.
timeout /t 3 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 10
timeout /t 1 /nobreak >nul
ClS
echo Complete file corruption and computer shutdown in 9
timeout /t 1 /nobreak >nul
ClS
echo Complete file corruption and computer shutdown in 8
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 7
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 6
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 5
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 4
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 3
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 2
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 1
timeout /t 1 /nobreak >nul
CLS
echo File corruption and computer shutdown initiated
timeout /t 3 /nobreak >nul
CLS
echo Corrupting Critical System Files...
echo del* *
timeout /t 2 /nobreak >nul
echo The System cannot find the file specified.
echo:
echo:
echo:
echo:
echo:
echo Corrupting Root Partition...
echo del C:\Windows
timeout /t 2 /nobreak >nul
echo Deletion Successful!
echo:
echo:
echo:
echo:
echo:
echo:
echo:
echo Disabling Windows Firewall...
echo Killing all processes...
timeout /t 2 /nobreak >nul
echo Allowing virus to boot from startup...
timeout /t 2 /nobreak >nul
echo:
echo:
echo:
echo:
echo:
echo Virus has been executed successfully!
echo:
echo:
echo Have Fun!
timeout /t 2 /nobreak >nul

shutdown -s -t 45 /c  Your computer has committed suicide. Have a nice day.






Step 3: Congratulations!

The program is ready to freak out the unfortunate person that happens to open it. Just plant it somewhere that you know a person will stumble on it, and wait.

Comments

author
1497980 made it!(author)2017-06-09

i dont get any of this could you make a simpler version for a 7th grader perhaps ??!

author
MuhdF22 made it!(author)2017-02-15

Can I make folders that contain a folder that contain more folders that contain folder and so on? Just like bombing.

author
ZahranZ made it!(author)2016-07-31

HERE REALLY VIRUSES (NOT FAKE VIRUS) Note:This will crash your computer if you not using virtualbox or vmware

What the viruses

You system paused at startup

CODE:

@echo Delete virus pc now?
pause
tree
@echo Deleting done
pause
@echo The system detector was incorrupted. Continue?
pause
dir
@echo Detected 2 Viruses. Delete now?
pause
tree
@echo ACCES DENIED
@echo ACCES DENIED
@echo ACCES DENIED
pause
@echo System was crash. Would you shutdown your computer?
shutdown
end

author
AidilA8 made it!(author)2016-09-11

its real???

how to recover from the crash!?

author
RAGE2Sage made it!(author)2016-12-19

just hold power button and restart

author
ZahranZ made it!(author)2016-09-17

I can't recover the crashes use virtualbox for crate or launch the virus

author
redmaster50 made it!(author)2014-11-17

i know how to make real viruses

author
RAGE2Sage made it!(author)2016-12-19

saaaaammmmmeeeee

author
StupidKidWhitStupidIdeas made it!(author)2016-11-26

REAL VIRUS!!! but weak

Hello guys I have here small fork bomb its not extremly dangerous ist the weakest one so you can try on your virtual machines or you can try this script on your friends as prank!

Here is code:

@echo off
cd C:\
mkdir Desktop
cd C:\Desktop
mkdir Programsfiles64
cd C:\Desktop\Programsfiles64
mkdir Windows32
cd C:\Desktop\Programsfiles64\
:MojZivotMaZmysel
cd C:\
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color C0
start color a0
start color C0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color C0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color a0
start color C0
start color a0
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"

echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"

echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"

echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"
echo.>"c:\Desktop\KILLLOG%random%.txt"

echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\KILLLOG%random%.txt"

echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
echo.>"c:\Desktop\Programsfiles64\Windows32\KILLLOG%random%.txt"
TIMEOUT -T 1
goto :MojZivotMaZmysel

For delete all this mess you must go to Windows (C:) and from there delete fake Desktop file !!

That is all from my side :D Bye and have nice day :´)

author
Geometry+Dash+NosKA. made it!(author)2016-09-05
author
VedangT made it!(author)2016-02-29

Cool

author
NinjaNerdGamer made it!(author)2016-01-23

the message isnt displaying at the end?

author
CrazyHypedGamer%21 made it!(author)2016-01-15

and then add @echo off

shutdown -s -t 0 -c "Your computer has ran into a crash shuting down (you can reboot the system after shutdown)" this will instantly shutdown the computer!

author
tuna6211 made it!(author)2015-11-23

You must "save as..." it and save it as "virus.bat" "all files"

author
shiva999 made it!(author)2015-11-12

This does not work on windows8pro

author
ahmadb made it!(author)2015-02-03

My pc didn't shut down after cmd closed.

im using windows7

author
cadepellerin made it!(author)2015-02-03

Thanks for reading,

Sometimes in windows 7 the security settings are set in a way that won't allow it to shutdown. To check and see if that was the problem, enter shutdown /s into command prompt and press enter. If your computer does shutdown, than it was another problem that I have not encountered.

Again thanks for reading, and please let me know if you figure it out or need help

author
xXJeff+The+KillerXx made it!(author)2015-04-28

I did it in Windows Vista and it didn't shutdown

author
johnp163 made it!(author)2015-10-23

try just using shutdown -s

author
The+Prickly+Potato made it!(author)2015-04-06

I remember the days when I used to be in love with batch programming ! I used to make games, programs and well everything in batch. I remember making something similar to this :). If you want a "REAL" virus kinda thing then just use this three line code.

:top

start

goto top

( I do not recommedend doing this as this can cause the computer to lag and even get stuck ). Have fun programming :).

-Prickly Potato

author
johnp163 made it!(author)2015-10-15

that would just cause your computer to crash but its cooler if you use:

:8

title error

start cmd

goto 8

it will make your computer very slow untill it crashes completely

author
TheGreyPumpkin made it!(author)2015-07-21

Is it possible to create a version of this that does not incur shutdown?

author
johnp163 made it!(author)2015-10-15

Try just deleting the shut down portions of the code

author
jacobcastillo made it!(author)2015-04-27

I made it but it doesn't really shutdown.

doughboy.jpg
author
pedrom5 made it!(author)2014-12-03

it was fun messing with my friends brother

author
argha.koner.7 made it!(author)2014-10-30

Khankir chele tr baper gare pro marbo..

About This Instructable

133,906views

23favorites

License:

More by cadepellerin:Password Protected File Using Batch FilesHow to make a Fake Virus with a Batch File
Add instructable to: