Computer virus: Difference between revisions

[pending revision][pending revision]
Content deleted Content added
RainR (talk | contribs)
m rvv
Line 39:
See also [http://news.bbc.co.uk/1/hi/technology/3172967.stm BBC News' Why people write computer viruses]
 
== Replication Strategies ==
== monkey men
 
In order to replicate itself, a virus must be permitted to execute code and write to memory. For this reason, many viruses attach themselves to executable files that may be part of legitimate programs. If a user tries to start an infected program, the virus' code may be executed first. Viruses can be divided into two types, on the basis of their behavior when they get executed. Nonresident viruses immediately search for other hosts that can be infected, infect these targets, and finally transfer control to the application program they infected. Resident viruses do not search for hosts when they are started. Instead, a resident virus loads itself into memory on execution and transfers control to the host program. The virus stays active in the background and infects new hosts when those files are accessed by other programs or the operating system itself.