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

Picture of 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

Picture of Open Notepad

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

Step 2: Write the Program

Picture of 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

MuhdF22 (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.

Poseidon3 (author)MuhdF222017-08-21

Sure.

@Echo Off

:Variables

set Location=\File

set Start=C:\Users\%Username%\Desktop\Start

Rem Making Dir..

mkdir C:\Users\%Username%\Desktop\Start

:Loop

set Path=%Start%

mkdir %Start%%Location%

set Start=%Start%%Location%

pause>nul

goto Loop

Remove the "pause>nul" to make it automatic. But I warn you, don't do this to your own computer.

1497980 (author)2017-06-09

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

Poseidon3 (author)14979802017-08-21

Just do: shutdown -s
And if you want to do more, just do shutdown /? in the command prompt.

Gamerd5 (author)2017-08-14

do we have 45 sec before shutdown? i read the bottom and saw -t 45 so i guess we have 45 sec to write shutdown -a

ZahranZ (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

AidilA8 (author)ZahranZ2016-09-11

its real???

how to recover from the crash!?

RAGE2Sage (author)AidilA82016-12-19

just hold power button and restart

ZahranZ (author)AidilA82016-09-17

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

redmaster50 (author)2014-11-17

i know how to make real viruses

RAGE2Sage (author)redmaster502016-12-19

saaaaammmmmeeeee

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 :´)

Geometry Dash NosKA. (author)2016-09-05
VedangT (author)2016-02-29

Cool

NinjaNerdGamer (author)2016-01-23

the message isnt displaying at the end?

CrazyHypedGamer! (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!

tuna6211 (author)2015-11-23

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

shiva999 (author)2015-11-12

This does not work on windows8pro

ahmadb (author)2015-02-03

My pc didn't shut down after cmd closed.

im using windows7

cadepellerin (author)ahmadb2015-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

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

try just using shutdown -s

The Prickly Potato (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

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

TheGreyPumpkin (author)2015-07-21

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

johnp163 (author)TheGreyPumpkin2015-10-15

Try just deleting the shut down portions of the code

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

I made it but it doesn't really shutdown.

pedrom5 (author)2014-12-03

it was fun messing with my friends brother

argha.koner.7 (author)2014-10-30

Khankir chele tr baper gare pro marbo..

About This Instructable

136,452views

24favorites

License:

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