<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7127919320208763361</id><updated>2011-11-28T06:18:54.056+07:00</updated><category term='Visual Basic'/><category term='Other'/><category term='VB'/><category term='Virus'/><category term='Computer'/><title type='text'>Neo's WebBlog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-6774432445229115836</id><published>2011-02-02T02:09:00.000+07:00</published><updated>2011-02-02T02:17:26.529+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Computer'/><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>Computer virus</title><content type='html'>&lt;p&gt;A &lt;b&gt;computer virus&lt;/b&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Computer_program" title="Computer program"&gt;computer program&lt;/a&gt; that can copy itself&lt;sup id="cite_ref-vx.netlux.org_0-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-vx.netlux.org-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and infect a computer. The term "virus" is also commonly but erroneously used to refer to other types of &lt;a href="http://en.wikipedia.org/wiki/Malware" title="Malware"&gt;malware&lt;/a&gt;, including but not limited to &lt;a href="http://en.wikipedia.org/wiki/Adware" title="Adware"&gt;adware&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Spyware" title="Spyware"&gt;spyware&lt;/a&gt; programs that do not have the reproductive ability. A true virus can spread from one computer to another (in some form of executable &lt;a href="http://en.wikipedia.org/wiki/Code" title="Code"&gt;code&lt;/a&gt;) when its host is taken to the target computer; for instance because a user sent it over a network or the Internet, or carried it on a removable medium such as a &lt;a href="http://en.wikipedia.org/wiki/Floppy_disk" title="Floppy disk"&gt;floppy disk&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Compact_Disc" title="Compact Disc"&gt;CD&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/DVD" title="DVD"&gt;DVD&lt;/a&gt;, or &lt;a href="http://en.wikipedia.org/wiki/USB_flash_drive" title="USB flash drive"&gt;USB drive&lt;/a&gt;.&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Viruses can increase their chances of spreading to other computers by infecting files on a &lt;a href="http://en.wikipedia.org/wiki/Network_file_system" title="Network file system"&gt;network file system&lt;/a&gt; or a file system that is accessed by another computer.&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-3"&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;As stated above, the term "computer virus" is sometimes used as a catch-all phrase to include all types of &lt;a href="http://en.wikipedia.org/wiki/Malware" title="Malware"&gt;malware&lt;/a&gt;, even those that do not have the reproductive ability. Malware includes computer viruses, &lt;a href="http://en.wikipedia.org/wiki/Computer_worm" title="Computer worm"&gt;computer worms&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Trojan_horse_%28computing%29" title="Trojan horse (computing)"&gt;Trojan horses&lt;/a&gt;, most &lt;a href="http://en.wikipedia.org/wiki/Rootkit" title="Rootkit"&gt;rootkits&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Spyware" title="Spyware"&gt;spyware&lt;/a&gt;, dishonest &lt;a href="http://en.wikipedia.org/wiki/Adware" title="Adware"&gt;adware&lt;/a&gt; and other malicious and unwanted software, including true viruses. Viruses are sometimes confused with worms and Trojan horses, which are technically different. A worm can exploit security &lt;a href="http://en.wikipedia.org/wiki/Vulnerability_%28computing%29" title="Vulnerability (computing)"&gt;vulnerabilities&lt;/a&gt; to spread itself automatically to other computers through networks, while a Trojan horse is a program that appears harmless but hides malicious functions. Worms and Trojan horses, like viruses, may harm a computer system's data or performance. Some viruses and other malware have symptoms noticeable to the computer user, but many are surreptitious or simply do nothing to call attention to themselves. Some viruses do nothing beyond reproducing themselves.&lt;/p&gt;&lt;p&gt;The first academic work on the theory of computer viruses (although the term "computer virus" was not invented at that time) was done by &lt;a href="http://en.wikipedia.org/wiki/John_von_Neumann" title="John von Neumann"&gt;John von Neumann&lt;/a&gt; in 1949 who held lectures at the University of Illinois about the "Theory and Organization of Complicated Automata". The work of von Neumann was later published as the "Theory of self-reproducing automata".&lt;sup id="cite_ref-4" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-4"&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; In his essay von Neumann postulated that a computer program could reproduce.&lt;/p&gt; &lt;p&gt;In 1972 Veith Risak published his article "Selbstreproduzierende Automaten mit minimaler Informationsübertragung" (Self-reproducing automata with minimal information exchange).&lt;sup id="cite_ref-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-5"&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The article describes a fully functional virus written in &lt;a href="http://en.wikipedia.org/wiki/Assembler" title="Assembler"&gt;assembler&lt;/a&gt; language for a SIEMENS 4004/35 computer system.&lt;/p&gt; &lt;p&gt;In 1980 Jürgen Kraus wrote his &lt;a href="http://en.wikipedia.org/wiki/Diplom" title="Diplom"&gt;diplom&lt;/a&gt; thesis "Selbstreproduktion bei Programmen" (Self-reproduction of programs) at the University of &lt;a href="http://en.wikipedia.org/wiki/Dortmund" title="Dortmund"&gt;Dortmund&lt;/a&gt;.&lt;sup id="cite_ref-6" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-6"&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; In his work Kraus postulated that computer programs can behave in a way similar to biological viruses.&lt;/p&gt; &lt;p&gt;In 1984 &lt;a href="http://en.wikipedia.org/wiki/Fred_Cohen" title="Fred Cohen"&gt;Fred Cohen&lt;/a&gt; from the University of Southern California wrote his paper "Computer Viruses - Theory and Experiments".&lt;sup id="cite_ref-7" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-7"&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; It was the first paper to explicitly call a self-reproducing program a "virus"; a term introduced by his mentor &lt;a href="http://en.wikipedia.org/wiki/Leonard_Adleman" title="Leonard Adleman"&gt;Leonard Adleman&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;An article that describes "useful virus functionalities" was published by &lt;a href="http://en.wikipedia.org/wiki/J._B._Gunn" title="J. B. Gunn"&gt;J. B. Gunn&lt;/a&gt; under the title "Use of virus functions to provide a virtual APL interpreter under user control" in 1984.&lt;sup id="cite_ref-8" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-8"&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Science_Fiction"&gt;Science Fiction&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/The_Terminal_Man" title="The Terminal Man"&gt;The Terminal Man&lt;/a&gt;&lt;/i&gt;, a science fiction novel by &lt;a href="http://en.wikipedia.org/wiki/Michael_Crichton" title="Michael Crichton"&gt;Michael Crichton&lt;/a&gt; (1972), told (as a sideline story) of a computer with &lt;a href="http://en.wikipedia.org/wiki/Telephone_modem" title="Telephone modem" class="mw-redirect"&gt;telephone modem&lt;/a&gt; dialing capability, which had been programmed to randomly dial phone numbers until it hit a modem that is answered by another computer. It then attempted to program the answering computer with its own program, so that the second computer would also begin dialing random numbers, in search of yet another computer to program. The program is assumed to spread exponentially through susceptible computers.&lt;/p&gt; &lt;p&gt;The actual term 'virus' was first used in &lt;a href="http://en.wikipedia.org/wiki/David_Gerrold" title="David Gerrold"&gt;David Gerrold&lt;/a&gt;'s 1972 novel, &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/When_HARLIE_Was_One" title="When HARLIE Was One"&gt;When HARLIE Was One&lt;/a&gt;&lt;/i&gt;. In that novel, a sentient computer named HARLIE writes viral software to retrieve damaging personal information from other computers to blackmail the man who wants to turn him off.&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Virus_programs"&gt;Virus programs&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The &lt;a href="http://en.wikipedia.org/wiki/Creeper_virus" title="Creeper virus"&gt;Creeper virus&lt;/a&gt; was first detected on &lt;a href="http://en.wikipedia.org/wiki/ARPANET" title="ARPANET"&gt;ARPANET&lt;/a&gt;, the forerunner of the &lt;a href="http://en.wikipedia.org/wiki/Internet" title="Internet"&gt;Internet&lt;/a&gt;, in the early 1970s.&lt;sup id="cite_ref-viruslist_9-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-viruslist-9"&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Creeper was an experimental self-replicating program written by Bob Thomas at &lt;a href="http://en.wikipedia.org/wiki/BBN_Technologies" title="BBN Technologies"&gt;BBN Technologies&lt;/a&gt; in 1971.&lt;sup id="cite_ref-10" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-10"&gt;&lt;span&gt;[&lt;/span&gt;11&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Creeper used the ARPANET to infect DEC &lt;a href="http://en.wikipedia.org/wiki/PDP-10" title="PDP-10"&gt;PDP-10&lt;/a&gt; computers running the &lt;a href="http://en.wikipedia.org/wiki/TOPS-20" title="TOPS-20"&gt;TENEX operating system&lt;/a&gt;.&lt;sup id="cite_ref-11" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-11"&gt;&lt;span&gt;[&lt;/span&gt;12&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Creeper gained access via the ARPANET and copied itself to the remote system where the message, "I'm the creeper, catch me if you can!" was displayed. The &lt;i&gt;Reaper&lt;/i&gt; program was created to delete Creeper.&lt;sup id="cite_ref-12" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-12"&gt;&lt;span&gt;[&lt;/span&gt;13&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;A program called "&lt;a href="http://en.wikipedia.org/wiki/Elk_Cloner" title="Elk Cloner"&gt;Elk Cloner&lt;/a&gt;" was the first computer virus to appear "in the wild" — that is, outside the single computer or lab where it was created.&lt;sup id="cite_ref-prank_13-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-prank-13"&gt;&lt;span&gt;[&lt;/span&gt;14&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Written in 1981 by &lt;a href="http://en.wikipedia.org/wiki/Richard_Skrenta" title="Richard Skrenta" class="mw-redirect"&gt;Richard Skrenta&lt;/a&gt;, it attached itself to the &lt;a href="http://en.wikipedia.org/wiki/Apple_DOS" title="Apple DOS"&gt;Apple DOS&lt;/a&gt; 3.3 operating system and spread via &lt;a href="http://en.wikipedia.org/wiki/Floppy_disk" title="Floppy disk"&gt;floppy disk&lt;/a&gt;.&lt;sup id="cite_ref-prank_13-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-prank-13"&gt;&lt;span&gt;[&lt;/span&gt;14&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-14" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-14"&gt;&lt;span&gt;[&lt;/span&gt;15&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; This virus, created as a practical joke when Skrenta was still in high school, was injected in a game on a floppy disk. On its 50th use the &lt;a href="http://en.wikipedia.org/wiki/Elk_Cloner" title="Elk Cloner"&gt;Elk Cloner&lt;/a&gt; virus would be activated, infecting the computer and displaying a short poem beginning "Elk Cloner: The program with a personality."&lt;/p&gt; &lt;p&gt;The first PC virus in the wild was a boot sector virus dubbed &lt;a href="http://en.wikipedia.org/wiki/%28c%29Brain" title="(c)Brain" class="mw-redirect"&gt;(c)Brain&lt;/a&gt;,&lt;sup id="cite_ref-15" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-15"&gt;&lt;span&gt;[&lt;/span&gt;16&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; created in 1986 by the Farooq Alvi Brothers in &lt;a href="http://en.wikipedia.org/wiki/Lahore,_Pakistan" title="Lahore, Pakistan" class="mw-redirect"&gt;Lahore, Pakistan&lt;/a&gt;, reportedly to deter piracy of the software they had written.&lt;sup id="cite_ref-16" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-16"&gt;&lt;span&gt;[&lt;/span&gt;17&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Before computer networks became widespread, most viruses spread on &lt;a href="http://en.wikipedia.org/wiki/Removable_media" title="Removable media"&gt;removable media&lt;/a&gt;, particularly &lt;a href="http://en.wikipedia.org/wiki/Floppy_disk" title="Floppy disk"&gt;floppy disks&lt;/a&gt;. In the early days of the &lt;a href="http://en.wikipedia.org/wiki/Personal_computer" title="Personal computer"&gt;personal computer&lt;/a&gt;, many users regularly exchanged information and programs on floppies. Some viruses spread by infecting programs stored on these disks, while others installed themselves into the disk &lt;a href="http://en.wikipedia.org/wiki/Boot_sector" title="Boot sector"&gt;boot sector&lt;/a&gt;, ensuring that they would be run when the user booted the computer from the disk, usually inadvertently. PCs of the era would attempt to boot first from a floppy if one had been left in the drive. Until floppy disks fell out of use, this was the most successful infection strategy and boot sector viruses were the most common in the wild for many years.&lt;sup id="cite_ref-vx.netlux.org_0-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-vx.netlux.org-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Traditional computer viruses emerged in the 1980s, driven by the spread of personal computers and the resultant increase in &lt;a href="http://en.wikipedia.org/wiki/Bulletin_board_system" title="Bulletin board system"&gt;BBS&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Modem" title="Modem"&gt;modem&lt;/a&gt; use, and software sharing. &lt;a href="http://en.wikipedia.org/wiki/Bulletin_board" title="Bulletin board"&gt;Bulletin board&lt;/a&gt;-driven software sharing contributed directly to the spread of Trojan horse programs, and viruses were written to infect popularly traded software. &lt;a href="http://en.wikipedia.org/wiki/Shareware" title="Shareware"&gt;Shareware&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Copyright_violation" title="Copyright violation" class="mw-redirect"&gt;bootleg&lt;/a&gt; software were equally common &lt;a href="http://en.wikipedia.org/wiki/Vector_%28malware%29" title="Vector (malware)"&gt;vectors&lt;/a&gt; for viruses on BBS's.&lt;sup class="Template-Fact" title="This claim needs references to reliable sources from January 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Macro_virus_%28computing%29" title="Macro virus (computing)"&gt;Macro viruses&lt;/a&gt; have become common since the mid-1990s. Most of these viruses are written in the scripting languages for Microsoft programs such as &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Word" title="Microsoft Word"&gt;Word&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Excel" title="Microsoft Excel"&gt;Excel&lt;/a&gt; and spread throughout &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office"&gt;Microsoft Office&lt;/a&gt; by infecting documents and spreadsheets. Since Word and Excel were also available for &lt;a href="http://en.wikipedia.org/wiki/Mac_OS" title="Mac OS"&gt;Mac OS&lt;/a&gt;, most could also spread to &lt;a href="http://en.wikipedia.org/wiki/Macintosh" title="Macintosh"&gt;Macintosh computers&lt;/a&gt;. Although most of these viruses did not have the ability to send infected &lt;a href="http://en.wikipedia.org/wiki/Electronic_mail" title="Electronic mail" class="mw-redirect"&gt;e-mail&lt;/a&gt;, those viruses which did take advantage of the &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Outlook" title="Microsoft Outlook"&gt;Microsoft Outlook&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Component_Object_Model" title="Component Object Model"&gt;COM&lt;/a&gt; interface.&lt;sup class="Template-Fact" title="This claim needs references to reliable sources from January 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Some old versions of Microsoft Word allow macros to replicate themselves with additional blank lines. If two macro viruses simultaneously infect a document, the combination of the two, if also self-replicating, can appear as a "mating" of the two and would likely be detected as a virus unique from the "parents".&lt;sup id="cite_ref-17" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-17"&gt;&lt;span&gt;[&lt;/span&gt;18&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;A virus may also send a &lt;a href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator" title="Uniform Resource Locator"&gt;web address&lt;/a&gt; link as an &lt;a href="http://en.wikipedia.org/wiki/Instant_message" title="Instant message" class="mw-redirect"&gt;instant message&lt;/a&gt; to all the contacts on an infected machine. If the recipient, thinking the link is from a friend (a trusted source) follows the link to the website, the virus hosted at the site may be able to infect this new computer and continue propagating.&lt;/p&gt; &lt;p&gt;Viruses that spread using &lt;a href="http://en.wikipedia.org/wiki/Cross-site_scripting" title="Cross-site scripting"&gt;cross-site scripting&lt;/a&gt; were first reported in 2002,&lt;sup id="cite_ref-18" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-18"&gt;&lt;span&gt;[&lt;/span&gt;19&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and were academically demonstrated in 2005.&lt;sup id="cite_ref-19" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-19"&gt;&lt;span&gt;[&lt;/span&gt;20&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; There have been multiple instances of the cross-site scripting viruses in the wild, exploiting websites such as &lt;a href="http://en.wikipedia.org/wiki/Samy_%28XSS%29" title="Samy (XSS)"&gt;MySpace&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Yahoo" title="Yahoo" class="mw-redirect"&gt;Yahoo&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt;&lt;span class="mw-headline" id="Infection_strategies"&gt;Infection strategies&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;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 attempts to launch an infected program, the virus' code may be executed simultaneously. Viruses can be divided into two types based on their behavior when they are executed. Nonresident viruses immediately search for other hosts that can be infected, infect those targets, and finally transfer control to the &lt;a href="http://en.wikipedia.org/wiki/Application_software" title="Application software"&gt;application program&lt;/a&gt; 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.&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Nonresident_viruses"&gt;Nonresident viruses&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Nonresident viruses can be thought of as consisting of a &lt;i&gt;finder module&lt;/i&gt; and a &lt;i&gt;replication module&lt;/i&gt;. The finder module is responsible for finding new files to infect. For each new executable file the finder module encounters, it calls the replication module to infect that file.&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Resident_viruses"&gt;Resident viruses&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Resident viruses contain a replication module that is similar to the one that is employed by nonresident viruses. This module, however, is not called by a finder module. The virus loads the replication module into memory when it is executed instead and ensures that this module is executed each time the operating system is called to perform a certain operation. The replication module can be called, for example, each time the operating system executes a file. In this case the virus infects every suitable program that is executed on the computer.&lt;/p&gt; &lt;p&gt;Resident viruses are sometimes subdivided into a category of &lt;i&gt;fast infectors&lt;/i&gt; and a category of &lt;i&gt;slow infectors&lt;/i&gt;. Fast infectors are designed to infect as many files as possible. A fast infector, for instance, can infect every potential host file that is accessed. This poses a special problem when using anti-virus software, since a virus scanner will access every potential host file on a computer when it performs a system-wide scan. If the virus scanner fails to notice that such a virus is present in memory the virus can "piggy-back" on the virus scanner and in this way infect all files that are scanned. Fast infectors rely on their fast infection rate to spread. The disadvantage of this method is that infecting many files may make detection more likely, because the virus may slow down a computer or perform many suspicious actions that can be noticed by anti-virus software. Slow infectors, on the other hand, are designed to infect hosts infrequently. Some slow infectors, for instance, only infect files when they are copied. Slow infectors are designed to avoid detection by limiting their actions: they are less likely to slow down a computer noticeably and will, at most, infrequently trigger anti-virus software that detects suspicious behavior by programs. The slow infector approach, however, does not seem very successful.&lt;/p&gt; &lt;h2&gt;&lt;span class="mw-headline" id="Vectors_and_hosts"&gt;Vectors and hosts&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Viruses have targeted various types of transmission media or hosts. This list is not exhaustive:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Binary &lt;a href="http://en.wikipedia.org/wiki/Executable_file" title="Executable file" class="mw-redirect"&gt;executable files&lt;/a&gt; (such as &lt;a href="http://en.wikipedia.org/wiki/COM_file" title="COM file"&gt;COM files&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/EXE" title="EXE"&gt;EXE&lt;/a&gt; files in &lt;a href="http://en.wikipedia.org/wiki/MS-DOS" title="MS-DOS"&gt;MS-DOS&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Portable_Executable" title="Portable Executable"&gt;Portable Executable&lt;/a&gt; files in &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Windows" title="Microsoft Windows"&gt;Microsoft Windows&lt;/a&gt;, the Mach-O format in OSX, and &lt;a href="http://en.wikipedia.org/wiki/Executable_and_Linkable_Format" title="Executable and Linkable Format"&gt;ELF&lt;/a&gt; files in &lt;a href="http://en.wikipedia.org/wiki/Linux" title="Linux"&gt;Linux&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Volume_Boot_Record" title="Volume Boot Record" class="mw-redirect"&gt;Volume Boot Records&lt;/a&gt; of &lt;a href="http://en.wikipedia.org/wiki/Floppy_disk" title="Floppy disk"&gt;floppy disks&lt;/a&gt; and hard disk partitions&lt;/li&gt;&lt;li&gt;The &lt;a href="http://en.wikipedia.org/wiki/Master_boot_record" title="Master boot record"&gt;master boot record&lt;/a&gt; (MBR) of a hard disk&lt;/li&gt;&lt;li&gt;General-purpose &lt;a href="http://en.wikipedia.org/wiki/Script_%28computer_programming%29" title="Script (computer programming)" class="mw-redirect"&gt;script&lt;/a&gt; files (such as &lt;a href="http://en.wikipedia.org/wiki/Batch_file" title="Batch file"&gt;batch files&lt;/a&gt; in &lt;a href="http://en.wikipedia.org/wiki/MS-DOS" title="MS-DOS"&gt;MS-DOS&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Windows" title="Microsoft Windows"&gt;Microsoft Windows&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/VBScript" title="VBScript"&gt;VBScript&lt;/a&gt; files, and &lt;a href="http://en.wikipedia.org/wiki/Shell_script" title="Shell script"&gt;shell script&lt;/a&gt; files on &lt;a href="http://en.wikipedia.org/wiki/Unix-like" title="Unix-like"&gt;Unix-like&lt;/a&gt; platforms).&lt;/li&gt;&lt;li&gt;Application-specific script files (such as &lt;a href="http://en.wikipedia.org/wiki/Telix" title="Telix"&gt;Telix&lt;/a&gt;-scripts)&lt;/li&gt;&lt;li&gt;System specific autorun script files (such as &lt;a href="http://en.wikipedia.org/wiki/Autorun.inf" title="Autorun.inf"&gt;Autorun.inf&lt;/a&gt; file needed by Windows to automatically run software stored on &lt;a href="http://en.wikipedia.org/wiki/USB" title="USB" class="mw-redirect"&gt;USB&lt;/a&gt; Memory Storage Devices).&lt;/li&gt;&lt;li&gt;Documents that can contain &lt;a href="http://en.wikipedia.org/wiki/Macro_%28computer_science%29" title="Macro (computer science)"&gt;macros&lt;/a&gt; (such as &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Word" title="Microsoft Word"&gt;Microsoft Word&lt;/a&gt; documents, &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Excel" title="Microsoft Excel"&gt;Microsoft Excel&lt;/a&gt; spreadsheets, &lt;a href="http://en.wikipedia.org/wiki/AmiPro" title="AmiPro" class="mw-redirect"&gt;AmiPro&lt;/a&gt; documents, and &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Access" title="Microsoft Access"&gt;Microsoft Access&lt;/a&gt; database files)&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Cross-site_scripting" title="Cross-site scripting"&gt;Cross-site scripting&lt;/a&gt; vulnerabilities in web applications (see &lt;a href="http://en.wikipedia.org/wiki/XSS_Worm" title="XSS Worm" class="mw-redirect"&gt;XSS Worm&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Arbitrary computer files. An exploitable &lt;a href="http://en.wikipedia.org/wiki/Buffer_overflow" title="Buffer overflow"&gt;buffer overflow&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Format_string" title="Format string" class="mw-redirect"&gt;format string&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Race_condition" title="Race condition"&gt;race condition&lt;/a&gt; or other exploitable bug in a program which reads the file could be used to trigger the execution of code hidden within it. Most bugs of this type can be made more difficult to exploit in &lt;a href="http://en.wikipedia.org/wiki/Computer_architecture" title="Computer architecture"&gt;computer architectures&lt;/a&gt; with protection features such as an &lt;a href="http://en.wikipedia.org/wiki/NX_bit" title="NX bit"&gt;execute disable bit&lt;/a&gt; and/or &lt;a href="http://en.wikipedia.org/wiki/Address_space_layout_randomization" title="Address space layout randomization"&gt;address space layout randomization&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/PDF" title="PDF" class="mw-redirect"&gt;PDFs&lt;/a&gt;, like &lt;a href="http://en.wikipedia.org/wiki/HTML" title="HTML"&gt;HTML&lt;/a&gt;, may &lt;i&gt;link&lt;/i&gt; to malicious code. PDFs can also be infected with malicious code.&lt;/p&gt; &lt;p&gt;In operating systems that use file extensions to determine program associations (such as Microsoft Windows), the extensions may be hidden from the user by default. This makes it possible to create a file that is of a different type than it appears to the user. For example, an executable may be created named "picture.png.exe", in which the user sees only "picture.png" and therefore assumes that this file is an image and most likely is safe, yet when opened runs the executable on the client machine.&lt;/p&gt; &lt;p&gt;An additional method is to generate the virus code from parts of existing operating system files by using the CRC16/CRC32 data. The initial code can be quite small (tens of bytes) and unpack a fairly large virus. This is analogous to a biological "prion" in the way it works but is vulnerable to signature based detection. This attack has not yet been seen "in the wild".&lt;/p&gt; &lt;h2&gt;&lt;span class="mw-headline" id="Methods_to_avoid_detection"&gt;Methods to avoid detection&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;In order to avoid detection by users, some viruses employ different kinds of deception. Some old viruses, especially on the MS-DOS platform, make sure that the "last modified" date of a host file stays the same when the file is infected by the virus. This approach does not fool anti-virus software, however, especially those which maintain and date &lt;a href="http://en.wikipedia.org/wiki/Cyclic_redundancy_check" title="Cyclic redundancy check"&gt;Cyclic redundancy checks&lt;/a&gt; on file changes.&lt;/p&gt; &lt;p&gt;Some viruses can infect files without increasing their sizes or damaging the files. They accomplish this by overwriting unused areas of executable files. These are called &lt;i&gt;cavity viruses&lt;/i&gt;. For example, the &lt;a href="http://en.wikipedia.org/wiki/CIH_virus" title="CIH virus" class="mw-redirect"&gt;CIH virus&lt;/a&gt;, or &lt;a href="http://en.wikipedia.org/wiki/Chernobyl_Virus" title="Chernobyl Virus" class="mw-redirect"&gt;Chernobyl Virus&lt;/a&gt;, infects &lt;a href="http://en.wikipedia.org/wiki/Portable_Executable" title="Portable Executable"&gt;Portable Executable&lt;/a&gt; files. Because those files have many empty gaps, the virus, which was 1 &lt;a href="http://en.wikipedia.org/wiki/Kilobyte" title="Kilobyte"&gt;KB&lt;/a&gt; in length, did not add to the size of the file.&lt;/p&gt; &lt;p&gt;Some viruses try to avoid detection by killing the tasks associated with antivirus software before it can detect them.&lt;/p&gt; &lt;p&gt;As computers and operating systems grow larger and more complex, old hiding techniques need to be updated or replaced. Defending a computer against viruses may demand that a file system migrate towards detailed and explicit permission for every kind of file access.&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Avoiding_bait_files_and_other_undesirable_hosts"&gt;Avoiding bait files and other undesirable hosts&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;A virus needs to infect hosts in order to spread further. In some cases, it might be a bad idea to infect a host program. For example, many anti-virus programs perform an integrity check of their own code. Infecting such programs will therefore increase the likelihood that the virus is detected. For this reason, some viruses are programmed not to infect programs that are known to be part of anti-virus software. Another type of host that viruses sometimes avoid are &lt;i&gt;bait files&lt;/i&gt;. Bait files (or &lt;i&gt;goat files&lt;/i&gt;) are files that are specially created by anti-virus software, or by anti-virus professionals themselves, to be infected by a virus. These files can be created for various reasons, all of which are related to the detection of the virus:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Anti-virus professionals can use bait files to take a sample of a virus (i.e. a copy of a program file that is infected by the virus). It is more practical to store and exchange a small, infected bait file, than to exchange a large application program that has been infected by the virus.&lt;/li&gt;&lt;li&gt;Anti-virus professionals can use bait files to study the behavior of a virus and evaluate detection methods. This is especially useful when the virus is &lt;a href="http://en.wikipedia.org/wiki/Polymorphic_code" title="Polymorphic code"&gt;polymorphic&lt;/a&gt;. In this case, the virus can be made to infect a large number of bait files. The infected files can be used to test whether a virus scanner detects all versions of the virus.&lt;/li&gt;&lt;li&gt;Some anti-virus software employs bait files that are accessed regularly. When these files are modified, the anti-virus software warns the user that a virus is probably active on the system.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Since bait files are used to detect the virus, or to make detection possible, a virus can benefit from not infecting them. Viruses typically do this by avoiding suspicious programs, such as small program files or programs that contain certain patterns of 'garbage instructions'.&lt;/p&gt; &lt;p&gt;A related strategy to make baiting difficult is &lt;i&gt;sparse infection&lt;/i&gt;. Sometimes, sparse infectors do not infect a host file that would be a suitable candidate for infection in other circumstances. For example, a virus can decide on a random basis whether to infect a file or not, or a virus can only infect host files on particular days of the week.&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Stealth"&gt;Stealth&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Some viruses try to trick antivirus software by intercepting its requests to the operating system. A virus can hide itself by intercepting the antivirus software’s request to read the file and passing the request to the virus, instead of the &lt;a href="http://en.wikipedia.org/wiki/Operating_System" title="Operating System" class="mw-redirect"&gt;OS&lt;/a&gt;. The virus can then return an uninfected version of the file to the antivirus software, so that it seems that the file is "clean". Modern antivirus software employs various techniques to counter stealth mechanisms of viruses. The only completely reliable method to avoid stealth is to boot from a medium that is known to be clean.&lt;/p&gt; &lt;h4&gt;&lt;span class="mw-headline" id="Self-modification"&gt;Self-modification&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;Most modern antivirus programs try to find virus-patterns inside ordinary programs by scanning them for so-called &lt;i&gt;virus signatures&lt;/i&gt;. A signature is a characteristic byte-pattern that is part of a certain virus or family of viruses. If a virus scanner finds such a pattern in a file, it notifies the user that the file is infected. The user can then delete, or (in some cases) "clean" or "heal" the infected file. Some viruses employ techniques that make detection by means of signatures difficult but probably not impossible. These viruses modify their code on each infection. That is, each infected file contains a different variant of the virus.&lt;/p&gt; &lt;h4&gt;&lt;span class="mw-headline" id="Encryption_with_a_variable_key"&gt;Encryption with a variable key&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;A more advanced method is the use of simple &lt;a href="http://en.wikipedia.org/wiki/Encryption" title="Encryption"&gt;encryption&lt;/a&gt; to encipher the virus. In this case, the virus consists of a small decrypting module and an encrypted copy of the virus code. If the virus is encrypted with a different key for each infected file, the only part of the virus that remains constant is the decrypting module, which would (for example) be appended to the end. In this case, a virus scanner cannot directly detect the virus using signatures, but it can still detect the decrypting module, which still makes indirect detection of the virus possible. Since these would be symmetric keys, stored on the infected host, it is in fact entirely possible to decrypt the final virus, but this is probably not required, since self-modifying code is such a rarity that it may be reason for virus scanners to at least flag the file as suspicious.&lt;/p&gt; &lt;p&gt;An old, but compact, encryption involves &lt;a href="http://en.wikipedia.org/wiki/Exclusive_or" title="Exclusive or"&gt;XORing&lt;/a&gt; each byte in a virus with a constant, so that the exclusive-or operation had only to be repeated for decryption. It is suspicious for a code to modify itself, so the code to do the encryption/decryption may be part of the signature in many virus definitions.&lt;/p&gt; &lt;h4&gt;&lt;span class="mw-headline" id="Polymorphic_code"&gt;Polymorphic code&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Polymorphic_code" title="Polymorphic code"&gt;Polymorphic code&lt;/a&gt; was the first technique that posed a serious &lt;a href="http://en.wikipedia.org/wiki/Threat_%28computer%29" title="Threat (computer)"&gt;threat&lt;/a&gt; to virus scanners. Just like regular encrypted viruses, a polymorphic virus infects files with an encrypted copy of itself, which is decoded by a decryption module. In the case of polymorphic viruses, however, this decryption module is also modified on each infection. A well-written polymorphic virus therefore has no parts which remain identical between infections, making it very difficult to detect directly using signatures. Antivirus software can detect it by decrypting the viruses using an emulator, or by statistical pattern analysis of the encrypted virus body. To enable polymorphic code, the virus has to have a &lt;a href="http://en.wikipedia.org/wiki/Polymorphic_engine" title="Polymorphic engine"&gt;polymorphic engine&lt;/a&gt; (also called mutating engine or mutation engine) somewhere in its encrypted body. See &lt;a href="http://en.wikipedia.org/wiki/Polymorphic_code" title="Polymorphic code"&gt;Polymorphic code&lt;/a&gt; for technical detail on how such engines operate.&lt;sup id="cite_ref-20" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-20"&gt;&lt;span&gt;[&lt;/span&gt;21&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Some viruses employ polymorphic code in a way that constrains the mutation rate of the virus significantly. For example, a virus can be programmed to mutate only slightly over time, or it can be programmed to refrain from mutating when it infects a file on a computer that already contains copies of the virus. The advantage of using such slow polymorphic code is that it makes it more difficult for antivirus professionals to obtain representative samples of the virus, because bait files that are infected in one run will typically contain identical or similar samples of the virus. This will make it more likely that the detection by the virus scanner will be unreliable, and that some instances of the virus may be able to avoid detection.&lt;/p&gt; &lt;h4&gt;&lt;span class="mw-headline" id="Metamorphic_code"&gt;Metamorphic code&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;To avoid being detected by emulation, some viruses rewrite themselves completely each time they are to infect new executables. Viruses that utilize this technique are said to be &lt;a href="http://en.wikipedia.org/wiki/Metamorphic_code" title="Metamorphic code"&gt;metamorphic&lt;/a&gt;. To enable &lt;a href="http://en.wikipedia.org/wiki/Metamorphic_code" title="Metamorphic code"&gt;metamorphism&lt;/a&gt;, a &lt;b&gt;metamorphic engine&lt;/b&gt; is needed. A metamorphic virus is usually very large and complex. For example, &lt;a href="http://en.wikipedia.org/wiki/W32/Simile" title="W32/Simile" class="mw-redirect"&gt;W32/Simile&lt;/a&gt; consisted of over 14000 lines of &lt;a href="http://en.wikipedia.org/wiki/Assembly_language" title="Assembly language"&gt;Assembly language&lt;/a&gt; code, 90% of which is part of the metamorphic engine.&lt;sup id="cite_ref-21" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-21"&gt;&lt;span&gt;[&lt;/span&gt;22&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-22" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-22"&gt;&lt;span&gt;[&lt;/span&gt;23&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="mw-headline" id="Vulnerability_and_countermeasures"&gt;Vulnerability and countermeasures&lt;/span&gt;&lt;/h2&gt; &lt;h3&gt;&lt;span class="mw-headline" id="The_vulnerability_of_operating_systems_to_viruses"&gt;The vulnerability of operating systems to viruses&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Just as &lt;a href="http://en.wikipedia.org/wiki/Genetic_diversity" title="Genetic diversity"&gt;genetic diversity&lt;/a&gt; in a population decreases the chance of a single disease wiping out a population, the diversity of software systems on a network similarly limits the destructive potential of viruses. This became a particular concern in the 1990s, when &lt;a href="http://en.wikipedia.org/wiki/Microsoft" title="Microsoft"&gt;Microsoft&lt;/a&gt; gained market dominance in desktop operating systems and &lt;a href="http://en.wikipedia.org/wiki/Office_suite" title="Office suite"&gt;office suites&lt;/a&gt;. The users of Microsoft software (especially networking software such as &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Outlook" title="Microsoft Outlook"&gt;Microsoft Outlook&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer" title="Internet Explorer"&gt;Internet Explorer&lt;/a&gt;) are especially vulnerable to the spread of viruses. Microsoft software is targeted by virus writers due to their desktop dominance, and is often criticized for including many errors and holes for virus writers to exploit. Integrated and non-integrated Microsoft applications (such as &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office"&gt;Microsoft Office&lt;/a&gt;) and applications with scripting languages with access to the file system (for example &lt;a href="http://en.wikipedia.org/wiki/Visual_Basic_Script" title="Visual Basic Script" class="mw-redirect"&gt;Visual Basic Script&lt;/a&gt; (VBS), and applications with networking features) are also particularly vulnerable.&lt;/p&gt; &lt;p&gt;Although Windows is by far the most popular target operating system for virus writers, viruses also exist on other platforms. Any operating system that allows third-party programs to run can theoretically run viruses. Some operating systems are more secure than others. Unix-based operating systems (and NTFS-aware applications on Windows NT based platforms) only allow their users to run executables within their own protected memory space.&lt;/p&gt; &lt;p&gt;An Internet based experiment revealed that there were cases when people willingly pressed a particular button to download a virus. Security analyst Didier Stevens ran a half year advertising campaign on &lt;a href="http://en.wikipedia.org/wiki/Google_AdWords" title="Google AdWords" class="mw-redirect"&gt;Google AdWords&lt;/a&gt; which said "Is your PC virus-free? Get it infected here!". The result was 409 clicks.&lt;sup id="cite_ref-23" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-23"&gt;&lt;span&gt;[&lt;/span&gt;24&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-24" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-24"&gt;&lt;span&gt;[&lt;/span&gt;25&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;As of 2006&lt;sup class="plainlinks noprint asof-tag update" style="display: none;"&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=Computer_virus&amp;amp;action=edit" class="external text" rel="nofollow"&gt;[update]&lt;/a&gt;&lt;/sup&gt;, there are relatively few security exploits targeting &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X" title="Mac OS X"&gt;Mac OS X&lt;/a&gt; (with a Unix-based file system and &lt;a href="http://en.wikipedia.org/wiki/Kernel_%28computer_science%29" title="Kernel (computer science)" class="mw-redirect"&gt;kernel&lt;/a&gt;).&lt;sup id="cite_ref-25" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-25"&gt;&lt;span&gt;[&lt;/span&gt;26&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The number of viruses for the older Apple operating systems, known as Mac OS Classic, varies greatly from source to source, with Apple stating that there are only four known viruses, and independent sources stating there are as many as 63 viruses. Many Mac OS Classic viruses targeted the &lt;a href="http://en.wikipedia.org/wiki/HyperCard" title="HyperCard"&gt;HyperCard&lt;/a&gt; authoring environment. The difference in virus vulnerability between Macs and Windows is a chief selling point, one that &lt;a href="http://en.wikipedia.org/wiki/Apple,_Inc" title="Apple, Inc" class="mw-redirect"&gt;Apple&lt;/a&gt; uses in their &lt;a href="http://en.wikipedia.org/wiki/Get_a_Mac" title="Get a Mac"&gt;Get a Mac&lt;/a&gt; advertising.&lt;sup id="cite_ref-26" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-26"&gt;&lt;span&gt;[&lt;/span&gt;27&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; In January 2009, &lt;a href="http://en.wikipedia.org/wiki/Symantec" title="Symantec"&gt;Symantec&lt;/a&gt; announced the discovery of a trojan that targets Macs.&lt;sup id="cite_ref-mac_trojan_27-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-mac_trojan-27"&gt;&lt;span&gt;[&lt;/span&gt;28&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; This discovery did not gain much coverage until April 2009.&lt;sup id="cite_ref-mac_trojan_27-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-mac_trojan-27"&gt;&lt;span&gt;[&lt;/span&gt;28&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;While Linux, and Unix in general, has always natively blocked normal users from having access to make changes to the operating system environment, Windows users are generally not. This difference has continued partly due to the widespread use of administrator accounts in contemporary versions like XP. In 1997, when a virus for Linux was released – known as "&lt;a href="http://en.wikipedia.org/wiki/Bliss_%28virus%29" title="Bliss (virus)"&gt;Bliss&lt;/a&gt;" – leading antivirus vendors issued warnings that &lt;a href="http://en.wikipedia.org/wiki/Unix-like" title="Unix-like"&gt;Unix-like&lt;/a&gt; systems could fall prey to viruses just like Windows.&lt;sup id="cite_ref-28" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-28"&gt;&lt;span&gt;[&lt;/span&gt;29&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The Bliss virus may be considered characteristic of viruses – as opposed to worms – on Unix systems. Bliss requires that the user run it explicitly, and it can only infect programs that the user has the access to modify. Unlike Windows users, most Unix users do not &lt;a href="http://en.wikipedia.org/wiki/Logging_%28computer_security%29" title="Logging (computer security)" class="mw-redirect"&gt;log in&lt;/a&gt; as an administrator user except to install or configure software; as a result, even if a user ran the virus, it could not harm their operating system. The Bliss virus never became widespread, and remains chiefly a research curiosity. Its creator later posted the source code to Usenet, allowing researchers to see how it worked.&lt;sup id="cite_ref-29" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-29"&gt;&lt;span&gt;[&lt;/span&gt;30&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="The_role_of_software_development"&gt;The role of software development&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Because software is often designed with security features to prevent unauthorized use of system resources, many viruses must exploit &lt;a href="http://en.wikipedia.org/wiki/Software_bug" title="Software bug"&gt;software bugs&lt;/a&gt; in a system or application to spread. &lt;a href="http://en.wikipedia.org/wiki/Software_engineering" title="Software engineering"&gt;Software development&lt;/a&gt; strategies that produce large numbers of bugs will generally also produce potential exploits.&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Anti-virus_software_and_other_preventive_measures"&gt;Anti-virus software and other preventive measures&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Many users install &lt;a href="http://en.wikipedia.org/wiki/Anti-virus_software" title="Anti-virus software" class="mw-redirect"&gt;anti-virus software&lt;/a&gt; that can detect and eliminate known viruses after the computer &lt;a href="http://en.wikipedia.org/wiki/Downloading" title="Downloading" class="mw-redirect"&gt;downloads&lt;/a&gt; or runs the executable. There are two common methods that an &lt;a href="http://en.wikipedia.org/wiki/Anti-virus_software" title="Anti-virus software" class="mw-redirect"&gt;anti-virus software&lt;/a&gt; application uses to detect viruses. The first, and by far the most common method of virus detection is using a list of &lt;a href="http://en.wikipedia.org/wiki/Virus_signature" title="Virus signature" class="mw-redirect"&gt;virus signature&lt;/a&gt; definitions. This works by examining the content of the computer's memory (its &lt;a href="http://en.wikipedia.org/wiki/Random_Access_Memory" title="Random Access Memory" class="mw-redirect"&gt;RAM&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Boot_sector" title="Boot sector"&gt;boot sectors&lt;/a&gt;) and the files stored on fixed or removable drives (hard drives, floppy drives), and comparing those files against a &lt;a href="http://en.wikipedia.org/wiki/Database" title="Database"&gt;database&lt;/a&gt; of known virus "signatures". The disadvantage of this detection method is that users are only protected from viruses that pre-date their last virus definition update. The second method is to use a &lt;a href="http://en.wikipedia.org/wiki/Heuristic_%28computer_science%29" title="Heuristic (computer science)" class="mw-redirect"&gt;heuristic&lt;/a&gt; algorithm to find viruses based on common behaviors. This method has the ability to detect novel viruses that anti-virus security firms have yet to create a signature for.&lt;/p&gt; &lt;p&gt;Some anti-virus programs are able to scan opened files in addition to sent and received e-mails "on the fly" in a similar manner. This practice is known as "on-access scanning". Anti-virus software does not change the underlying capability of host software to transmit viruses. Users must update their software regularly to &lt;a href="http://en.wikipedia.org/wiki/Patch_%28computing%29" title="Patch (computing)"&gt;patch&lt;/a&gt; security holes. Anti-virus software also needs to be regularly updated in order to recognize the latest &lt;a href="http://en.wikipedia.org/wiki/Threat_%28computer%29" title="Threat (computer)"&gt;threats&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;One may also minimize the damage done by viruses by making regular &lt;a href="http://en.wikipedia.org/wiki/Backup" title="Backup"&gt;backups&lt;/a&gt; of data (and the operating systems) on different media, that are either kept unconnected to the system (most of the time), read-only or not accessible for other reasons, such as using different &lt;a href="http://en.wikipedia.org/wiki/File_system" title="File system"&gt;file systems&lt;/a&gt;. This way, if data is lost through a virus, one can start again using the backup (which should preferably be recent).&lt;/p&gt; &lt;p&gt;If a backup session on &lt;a href="http://en.wikipedia.org/wiki/Optical_disc" title="Optical disc"&gt;optical media&lt;/a&gt; like &lt;a href="http://en.wikipedia.org/wiki/CD" title="CD" class="mw-redirect"&gt;CD&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/DVD" title="DVD"&gt;DVD&lt;/a&gt; is closed, it becomes read-only and can no longer be affected by a virus (so long as a virus or infected file was not copied onto the CD/DVD). Likewise, an operating system on a &lt;a href="http://en.wikipedia.org/wiki/Bootable" title="Bootable" class="mw-redirect"&gt;bootable&lt;/a&gt; CD can be used to start the computer if the installed operating systems become unusable. Backups on removable media must be carefully inspected before restoration. The Gammima virus, for example, propagates via removable &lt;a href="http://en.wikipedia.org/wiki/Flash_drives" title="Flash drives" class="mw-redirect"&gt;flash drives&lt;/a&gt;.&lt;sup id="cite_ref-30" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-30"&gt;&lt;span&gt;[&lt;/span&gt;31&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-31" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-31"&gt;&lt;span&gt;[&lt;/span&gt;32&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="mw-headline" id="Recovery_methods"&gt;Recovery methods&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Once a computer has been compromised by a virus, it is usually unsafe to continue using the same computer without completely reinstalling the operating system. However, there are a number of recovery options that exist after a computer has a virus. These actions depend on severity of the type of virus.&lt;/p&gt; &lt;h4&gt;&lt;span class="mw-headline" id="Virus_removal"&gt;Virus removal&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;One possibility on &lt;a href="http://en.wikipedia.org/wiki/Windows_Me" title="Windows Me"&gt;Windows Me&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Windows_XP" title="Windows XP"&gt;Windows XP&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Windows_Vista" title="Windows Vista"&gt;Windows Vista&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Windows_7" title="Windows 7"&gt;Windows 7&lt;/a&gt; is a tool known as &lt;a href="http://en.wikipedia.org/wiki/System_Restore" title="System Restore"&gt;System Restore&lt;/a&gt;, which restores the registry and critical system files to a previous checkpoint. Often a virus will cause a system to hang, and a subsequent hard reboot will render a system restore point from the same day corrupt. Restore points from previous days should work provided the virus is not designed to corrupt the restore files or also exists in previous restore points.&lt;sup id="cite_ref-32" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_virus#cite_note-32"&gt;&lt;span&gt;[&lt;/span&gt;33&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Some viruses, however, disable System Restore and other important tools such as &lt;a href="http://en.wikipedia.org/wiki/Task_Manager" title="Task Manager" class="mw-redirect"&gt;Task Manager&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Command_Prompt" title="Command Prompt"&gt;Command Prompt&lt;/a&gt;. An example of a virus that does this is CiaDoor. However, many such viruses can be removed by &lt;a href="http://en.wikipedia.org/wiki/Booting" title="Booting"&gt;rebooting&lt;/a&gt; the computer, entering Windows &lt;a href="http://en.wikipedia.org/wiki/Safe_mode" title="Safe mode"&gt;safe mode&lt;/a&gt;, and then using system tools.&lt;/p&gt; &lt;p&gt;Administrators have the option to disable such tools from limited users for various reasons (for example, to reduce potential damage from and the spread of viruses). A virus can modify the registry to do the same even if the Administrator is controlling the computer; it blocks &lt;i&gt;all&lt;/i&gt; users including the administrator from accessing the tools. The message "Task Manager has been disabled by your administrator" may be displayed, even to the administrator.&lt;sup class="Template-Fact" title="This claim needs references to reliable sources from February 2009" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Users running a Microsoft operating system can access Microsoft's website to run a free scan, provided they have their 20-digit registration number. Many websites run by &lt;a href="http://en.wikipedia.org/wiki/Anti-virus_software" title="Anti-virus software" class="mw-redirect"&gt;anti-virus software&lt;/a&gt; companies provide free online virus scanning, with limited cleaning facilities (the purpose of the sites is to sell anti-virus products). Some websites allow a single suspicious file to be checked by many antivirus programs in one operation.&lt;/p&gt; &lt;h4&gt;&lt;span class="mw-headline" id="Operating_system_reinstallation"&gt;Operating system reinstallation&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;Reinstalling the operating system is another approach to virus removal. It involves either reformatting the computer's hard drive and installing the OS and all programs from original media, or restoring the entire partition with a clean &lt;a href="http://en.wikipedia.org/wiki/Disc_cloning" title="Disc cloning" class="mw-redirect"&gt;backup image&lt;/a&gt;. User data can be restored by booting from a &lt;a href="http://en.wikipedia.org/wiki/Live_CD" title="Live CD"&gt;Live CD&lt;/a&gt;, or putting the hard drive into another computer and booting from its operating system with great care not to infect the second computer by executing any infected programs on the original drive; and once the system has been restored precautions must be taken to avoid reinfection from a restored &lt;a href="http://en.wikipedia.org/wiki/Executable_file" title="Executable file" class="mw-redirect"&gt;executable file&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;These methods are simple to do, may be faster than disinfecting a computer, and are guaranteed to remove any malware. If the operating system and programs must be reinstalled from scratch, the time and effort to reinstall, reconfigure, and restore user preferences must be taken into account. Restoring from an image is much faster, totally safe, and restores the exact configuration to the state it was in when the image was made, with no further trouble.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-6774432445229115836?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/6774432445229115836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2011/02/computer-virus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/6774432445229115836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/6774432445229115836'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2011/02/computer-virus.html' title='Computer virus'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-4771177625569356841</id><published>2009-05-01T13:08:00.000+07:00</published><updated>2009-05-01T13:11:01.170+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Best 20 Visual Basic Tutorial</title><content type='html'>Dibawah ini merupakan 20 kumpulan situs visual basic terbaik yang bisa jadi acuan bagi yang ingin lebih mendalami visual basic. &lt;br /&gt;&lt;br /&gt;A1VBCode - VB Source Code Site: Provides hundreds free Visual Basic source code snippets and applications in all categories. Submit your own code and win monthly VB prizes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;VB Wire: A Visual Basic news source. This site provides Visual Basic news which is updated daily. The site also provides a weekly VB newsletter which is delivered to your inbox with all of the past weeks VB news.&lt;br /&gt;&lt;br /&gt;AppDev Training: Developer Training for Visual Basic, ASP, XML, SQL Server, VBA, Microsoft Access, Visual InterDev, and FoxPro through CD’s, videos, classes and licensing.&lt;br /&gt;&lt;br /&gt;ITtoolbox Portal for Visual Basic: Content, community, and service for Visual Basic professionals. Providing technical discussion, job postings, an integrated directory, news, and much more.&lt;br /&gt;&lt;br /&gt;VB Chat: A place where you can go and chat live about Visual Basic with other Visual Basic programmers around the world.&lt;br /&gt;&lt;br /&gt;Just VB Jobs: This is an excellent new job site. It contains a huge database of nothing but VB jobs. It also contains numerous other VB resources which you'll find very helpful.&lt;br /&gt;&lt;br /&gt;VBShop - The Visual Basic Shop: Tools and tips for VB programmers. Optimization, documentation, add-ins.&lt;br /&gt;&lt;br /&gt;Programmers Heaven - Where programmers go: The Internet's most complete source of free downloadable programming files, source codes, utilities, Visual Basic, C/C++, JAVA, and other tools for programmers and developers. All files and links are organized in an easy-to-find format.&lt;br /&gt;&lt;br /&gt;Visual Basic Jobs: Another excellent VB job site which you can use to search through a huge list of Visual Basic jobs across the U.S.&lt;br /&gt;&lt;br /&gt;ProgrammingTutorials.com: Excellent site offering programming tutorials in many categories.&lt;br /&gt;&lt;br /&gt;VB Code: This very popular site contains many VB code samples and snippets which you can search through.&lt;br /&gt;&lt;br /&gt;VB Web Directory: Contains a huge index of Visual Basic Resources. Contains links, books, VB forums, job bank, and much more.&lt;br /&gt;&lt;br /&gt;CodeGuru: An information resource for Visual Basic programmers. Contains information on all aspects of Visual Basic.&lt;br /&gt;&lt;br /&gt;VB Accelerator: An excellent general Visual Basic site providing up to date VB news, tips, and many source code samples.&lt;br /&gt;&lt;br /&gt;Visual Basic Expert: This site is for serious VB developers, huge amounts of professional code for download, help forum, developer resources, book reviews, online training and more..&lt;br /&gt;&lt;br /&gt;Developers Domain: This site contains free code downloads, message boards, links, and much more.&lt;br /&gt;&lt;br /&gt;Visual Basic Bookmark: A comprehensive directory of programming resources and development information for Visual Basic programmers, Database developers &amp;amp; web designers.&lt;br /&gt;&lt;br /&gt;CodeArchive.com- The Source Code Site: The largest amount of Visual Basic source code on the Internet. Other features include a chat room and message board. You can get 50 MB for your own web site on CodeArchive.com .&lt;br /&gt;&lt;br /&gt;Planet Source Code: Contains thousands of lines of source code which you can copy and paste directly into your own applications. Some of the code is in downloadable zip files. &lt;br /&gt;&lt;br /&gt;VB Web - The online guide to VB- Over 120 downloads, and Tutorials on Commands, Controls, Windows API, Subclassing, Debugging and more. We also have Links, a Free Newsletter and Book Reviews. Fully Searchable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dari semua yang terbaik diatas menurut saya yang paling terbaik adalah planet-source-code.com &lt;br /&gt;&lt;br /&gt;Source by: &lt;a href="http://www.visualbasicbooks.com"&gt;http://www.visualbasicbooks.com&lt;/a&gt;, &lt;a href="http://oom-vb.blogspot.com/2007/08/20-situs-visual-basic-terbaik.html"&gt;http://oom-vb.blogspot.com/2007/08/20-situs-visual-basic-terbaik.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-4771177625569356841?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/4771177625569356841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/05/best-20-visual-basic-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/4771177625569356841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/4771177625569356841'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/05/best-20-visual-basic-tutorial.html' title='Best 20 Visual Basic Tutorial'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-1988906724175075994</id><published>2009-04-27T15:14:00.000+07:00</published><updated>2009-04-27T15:15:21.460+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>How to help prevent computer viruses</title><content type='html'>Nothing can guarantee the security of your computer 100 percent.&lt;br /&gt;&lt;br /&gt;You can continue to improve your computer's security and decrease the possibility of infection by using a firewall, keeping your system up-to-date, maintaining a current antivirus software subscription, and following a few best practices.&lt;br /&gt;Tip&lt;br /&gt;&lt;br /&gt;Tip: Because no security method is guaranteed, it's important to back up critical files on a regular basis before you encounter a virus or other problems.&lt;br /&gt;Steps to help avoid viruses:&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;Use an Internet firewall&lt;br /&gt;&lt;br /&gt;Note: Windows Vista and Windows XP with SP2 has a firewall already built-in and turned on by default.&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;Visit Microsoft Update and turn on automatic updating.&lt;br /&gt;&lt;br /&gt;Note: If you've installed the most recent version of Microsoft Office, Automatic Updates will also update your Office programs. If you have an earlier version of Office, use Office Update.&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;Subscribe to industry standard antivirus software, such as Windows Live OneCare and keep it current.&lt;br /&gt;&lt;br /&gt;4.&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;Never open an e-mail attachment from someone you don't know.&lt;br /&gt;&lt;br /&gt;5.&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;Avoid opening an e-mail attachment from someone you know, unless you know exactly what the attachment is. The sender may be unaware that it contains a virus.&lt;br /&gt;Top of pageTop of page&lt;br /&gt;What about spyware?&lt;br /&gt;&lt;br /&gt;Although spyware programs are different from viruses, some can behave like viruses and pose similar and other risks. To help protect against spyware, use antispyware software such as Windows Defender. Windows Defender comes with Windows Vista. If you use Windows XP SP2, you can download Windows Defender for no charge.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source by:&lt;a href="http://www.microsoft.com/protect/computer/viruses/prevent.mspx"&gt; http://www.microsoft.com/protect/computer/viruses/prevent.mspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-1988906724175075994?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/1988906724175075994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/how-to-help-prevent-computer-viruses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/1988906724175075994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/1988906724175075994'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/how-to-help-prevent-computer-viruses.html' title='How to help prevent computer viruses'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-8974995850993689567</id><published>2009-04-27T15:02:00.001+07:00</published><updated>2009-04-27T15:05:12.161+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>How to remove a computer virus</title><content type='html'>Even for an expert, removing a virus from a computer can be a daunting task without the help of tools designed for the job.&lt;br /&gt;&lt;br /&gt;Some viruses and other unwanted software (including spyware) are even designed to reinstall themselves after they have been detected and removed.&lt;br /&gt;&lt;br /&gt;Fortunately, by updating your computer and using free, trial-period, or low-cost antivirus tools, you can help permanently remove (and prevent) unwanted software.&lt;br /&gt;Steps to help remove a virus:&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Visit Microsoft Update and install the latest updates.&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;If you currently use antivirus software, visit the manufacturer's Web site, update your software, and then perform a thorough scan of your computer. If you don't use antivirus software, subscribe to a service and scan your computer immediately.&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Download, install, and run the Malicious Software Removal Tool. Note that this tool does not prevent viruses from infecting your system; it helps to remove existing viruses.&lt;br /&gt;Top of pageTop of page&lt;br /&gt;Why didn't my antivirus software work?&lt;br /&gt;&lt;br /&gt;It's crucial to keep your antivirus software current with the latest updates (usually called definition files) that help the tool identify and remove the latest threats.&lt;br /&gt;&lt;br /&gt;In addition, not all antivirus tools are the same; if you find that the one you use isn't working to your satisfaction, you should do some research and try an alternative.&lt;br /&gt;&lt;br /&gt;Note: What you might think is a virus could actually be spyware. Download and install Windows Defender or other antispyware software to see if that fixes the problem. Windows Defender comes with Windows Vista. If you use Windows XP SP2, you can download Windows Defender for no charge.&lt;br /&gt;Top of pageTop of page&lt;br /&gt;How do I install updates and antivirus software if I can't use my computer?&lt;br /&gt;&lt;br /&gt;It might be difficult to download tools or update your computer if your computer has a virus. In this case, use a friend's or other computer to download the tools to a disk, or get support from Microsoft.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source by: &lt;a href="http://www.microsoft.com/protect/computer/viruses/remove.mspx"&gt;http://www.microsoft.com/protect/computer/viruses/remove.mspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-8974995850993689567?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/8974995850993689567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/how-to-remove-computer-virus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/8974995850993689567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/8974995850993689567'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/how-to-remove-computer-virus.html' title='How to remove a computer virus'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-844456612218912608</id><published>2009-04-27T14:55:00.001+07:00</published><updated>2009-04-27T14:59:20.251+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>Signs of viruses: Are you infected?</title><content type='html'>After you open and run an infected program or attachment on your computer, you might not realize that you've introduced a virus until you notice something isn't quite right.&lt;br /&gt;&lt;br /&gt;Here are a few primary indicators that your computer might be infected:&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;Your computer runs more slowly than normal&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;Your computer stops responding or locks up often&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;Your computer crashes and restarts every few minutes&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;Your computer restarts on its own and then fails to run normally&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;Applications on your computer don't work correctly&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;Disks or disk drives are inaccessible&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;You can't print correctly&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;You see unusual error messages&lt;br /&gt;•  &lt;br /&gt;&lt;br /&gt;You see distorted menus and dialog boxes&lt;br /&gt;&lt;br /&gt;These are common signs of infection—but they might also indicate hardware or software problems that have nothing to do with a virus. Unless you run the Microsoft Malicious Software Removal Tool and install industry-standard, up-to-date antivirus software on your computer, there is no way to be certain if your computer is infected with a virus or not. If you don't have current antivirus software installed or if you're interested in installing a different brand, you can try Windows Live OneCare free for 90 days or visit our Windnows Marketplace for software from other companies.&lt;br /&gt;Tip&lt;br /&gt;&lt;br /&gt;Tip: Beware of messages warning you that you sent e-mail that contained a virus. This can indicate that the virus has listed your e-mail address as the sender of tainted e-mail. This does not necessarily mean you have a virus. Some viruses have the ability to forge e-mail addresses.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source by:&lt;a href="http://www.microsoft.com/protect/computer/viruses/indicators.mspx"&gt; http://www.microsoft.com/protect/computer/viruses/indicators.mspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-844456612218912608?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/844456612218912608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/signs-of-viruses-are-you-infected.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/844456612218912608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/844456612218912608'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/signs-of-viruses-are-you-infected.html' title='Signs of viruses: Are you infected?'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-7202901991118798005</id><published>2009-04-27T14:53:00.001+07:00</published><updated>2009-04-27T14:53:58.783+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>What is a computer virus?</title><content type='html'>Computer viruses are small software programs that are designed to spread from one computer to another and to interfere with computer operation.&lt;br /&gt;&lt;br /&gt;A virus might corrupt or delete data on your computer, use your e-mail program to spread itself to other computers, or even erase everything on your hard disk.&lt;br /&gt;&lt;br /&gt;Viruses are most easily spread by attachments in e-mail messages or instant messaging messages. That is why it is essential that you never open e-mail attachments unless you know who it's from and you are expecting it.&lt;br /&gt;&lt;br /&gt;Viruses can be disguised as attachments of funny images, greeting cards, or audio and video files.&lt;br /&gt;&lt;br /&gt;Viruses also spread through downloads on the Internet. They can be hidden in illicit software or other files or programs you might download.&lt;br /&gt;&lt;br /&gt;To help avoid viruses, it's essential that you keep your computer current with the latest updates and antivirus tools, stay informed about recent threats, and that you follow a few basic rules when you surf the Internet, download files, and open attachments.&lt;br /&gt;&lt;br /&gt;Once a virus is on your computer, its type or the method it used to get there is not as important as removing it and preventing further infection.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source by: &lt;a href="http://www.microsoft.com/protect/computer/basics/virus.mspx"&gt;http://www.microsoft.com/protect/computer/basics/virus.mspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-7202901991118798005?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/7202901991118798005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/what-is-computer-virus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/7202901991118798005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/7202901991118798005'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/what-is-computer-virus.html' title='What is a computer virus?'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-5807031907620579360</id><published>2009-04-27T14:34:00.000+07:00</published><updated>2009-04-27T14:42:10.353+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>Fake virus scare</title><content type='html'>There is a computer virus that is being sent across the Internet. If you receive an e-mail message with the subject line "Free Money," DO NOT read the message. DELETE it immediately, UNPLUG your computer, then BURN IT to ASHES in a government-approved toxic waste disposal INCINERATOR.&lt;br /&gt;&lt;br /&gt;Once a computer is infected, it will be TOO LATE. Your computer will begin to emit a vile ODOR. Then it will secrete a foul, milky DISCHARGE. Verily, it shall SCREECH with the tortured, monitor-shattering SCREAM of 1,000 hell-scorched souls, drawing unwanted attention to your cubicle from co-workers and supervisors alike. After violently ripping itself from the wall, your computer will punch through your office window as it STREAKS into the night, HOWLING like a BANSHEE. Once free, it will spend the rest of its days CRUSHING household PETS and MOCKING the POPE.&lt;br /&gt;&lt;br /&gt;Some filthy, disgusting miscreant... some no-good, low-down, good-for -nothing DIRTY SNAKE, in twisted pursuit of his own sadistic dreams, is sending this virus across the Net via an e-mail entitled "Free Money." What is so terrifying about this virus is that you do not even to have to open the e-mail for it to activate. In fact, you do not even need to RECEIVE the e-mail. You do not even need to OWN a COMPUTER. "Free Money" can infect even minor HOUSEHOLD APPLIANCES.&lt;br /&gt;&lt;br /&gt;How it does this with straight ASCII code is, franky, a matter of some debate... but BELIEVE YOU US, if this weren't a SERIOUS situation, WE WOULDN'T BE DISCUSSING IT IN 'ALL CAPS'.&lt;br /&gt;&lt;br /&gt;So for the LOVE OF GOD, forward this e-mail to all those you claim to care about, all those you purport to love. Don't do it later! Do it NOW! Now! Now! NOW! NOW! NOW!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source by: &lt;a href="http://www.trouble.org/survey/v_parody.html"&gt;http://www.trouble.org/survey/v_parody.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-5807031907620579360?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/5807031907620579360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/fake-virus-scare.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/5807031907620579360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/5807031907620579360'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/fake-virus-scare.html' title='Fake virus scare'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-435261917714430804</id><published>2009-04-27T12:23:00.002+07:00</published><updated>2009-04-27T12:27:53.062+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus'/><title type='text'>Computer Virus</title><content type='html'>A computer virus is a computer program that can copy itself and infect a computer without the permission or knowledge of the owner. The term "virus" is also commonly but erroneously used to refer to other types of malware, adware, and spyware programs that do not have the reproductive ability. A true virus can only spread from one computer to another (in some form of executable code) when its host is taken to the target computer; for instance because a user sent it over a network or the Internet, or carried it on a removable medium such as a floppy disk, CD, DVD, or USB drive. Viruses can increase their chances of spreading to other computers by infecting files on a network file system or a file system that is accessed by another computer.&lt;br /&gt;&lt;br /&gt;The term "computer virus" is sometimes used as a catch-all phrase to include all types of malware. Malware includes computer viruses, worms, trojan horses, most rootkits, spyware, dishonest adware, crimeware, and other malicious and unwanted software), including true viruses. Viruses are sometimes confused with computer worms and Trojan horses, which are technically different. A worm can exploit security vulnerabilities to spread itself to other computers without needing to be transferred as part of a host, and a Trojan horse is a program that appears harmless but has a hidden agenda. Worms and Trojans, like viruses, may cause harm to either a computer system's hosted data, functional performance, or networking throughput, when they are executed. Some viruses and other malware have symptoms noticeable to the computer user, but many are surreptitious.&lt;br /&gt;&lt;br /&gt;Most personal computers are now connected to the Internet and to local area networks, facilitating the spread of malicious code. Today's viruses may also take advantage of network services such as the World Wide Web, e-mail, Instant Messaging, and file sharing systems to spread.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Creeper virus was first detected on ARPANET, the forerunner of the Internet in the early 1970s.[3] Creeper was an experimental self-replicating program written by Bob Thomas at BBN in 1971.[4] Creeper used the ARPANET to infect DEC PDP-10 computers running the TENEX operating system. Creeper gained access via the ARPANET and copied itself to the remote system where the message, "I'm the creeper, catch me if you can!" was displayed. The Reaper program was created to delete Creeper.[5]&lt;br /&gt;&lt;br /&gt;A program called "Rother J" was the first computer virus to appear "in the wild" — that is, outside the single computer or lab where it was created.[citation needed] Written in 1981 by Richard Skrenta, it attached itself to the Apple DOS 3.3 operating system and spread via floppy disk.[6] This virus was created as a practical joke when Richard Skrenta was still in high school. It was injected in a game on a floppy disk. On its 50th use the Elk Cloner virus would be activated, infecting the computer and displaying a short poem beginning "Elk Cloner: The program with a personality."&lt;br /&gt;&lt;br /&gt;The first PC virus in the wild was a boot sector virus dubbed (c)Brain[7], created in 1986 by the Farooq Alvi Brothers, operating out of Lahore, Pakistan. The brothers reportedly created the virus to deter pirated copies of software they had written[citation needed]. However, analysts have claimed that the Ashar virus, a variant of Brain, possibly predated it based on code within the virus.[original research?]&lt;br /&gt;&lt;br /&gt;Before computer networks became widespread, most viruses spread on removable media, particularly floppy disks. In the early days of the personal computer, many users regularly exchanged information and programs on floppies. Some viruses spread by infecting programs stored on these disks, while others installed themselves into the disk boot sector, ensuring that they would be run when the user booted the computer from the disk, usually inadvertently. PCs of the era would attempt to boot first from a floppy if one had been left in the drive. Until floppy disks fell out of use, this was the most successful infection strategy and boot sector viruses were the most common in the wild for many years.[8]&lt;br /&gt;&lt;br /&gt;Traditional computer viruses emerged in the 1980s, driven by the spread of personal computers and the resultant increase in BBS, modem use, and software sharing. Bulletin board-driven software sharing contributed directly to the spread of Trojan horse programs, and viruses were written to infect popularly traded software. Shareware and bootleg software were equally common vectors for viruses on BBS's.[citation needed] Within the "pirate scene" of hobbyists trading illicit copies of retail software, traders in a hurry to obtain the latest applications were easy targets for viruses.[original research?]&lt;br /&gt;&lt;br /&gt;Macro viruses have become common since the mid-1990s. Most of these viruses are written in the scripting languages for Microsoft programs such as Word and Excel and spread throughout Microsoft Office by infecting documents and spreadsheets. Since Word and Excel were also available for Mac OS, most could also spread to Macintosh computers. Although most of these viruses did not have the ability to send infected e-mail, those viruses which did took advantage of the Microsoft Outlook COM interface.[citation needed]&lt;br /&gt;&lt;br /&gt;Some old versions of Microsoft Word allow macros to replicate themselves with additional blank lines. If two macro viruses simultaneously infect a document, the combination of the two, if also self-replicating, can appear as a "mating" of the two and would likely be detected as a virus unique from the "parents."[9]&lt;br /&gt;&lt;br /&gt;A virus may also send a web address link as an instant message to all the contacts on an infected machine. If the recipient, thinking the link is from a friend (a trusted source) follows the link to the website, the virus hosted at the site may be able to infect this new computer and continue propagating.&lt;br /&gt;&lt;br /&gt;Cross-site scripting viruses emerged recently, and were academically demonstrated in 2005.[10] Since 2005 there have been multiple instances of the cross-site scripting viruses in the wild, exploiting websites such as MySpace and Yahoo.&lt;br /&gt;&lt;br /&gt;Infection strategies&lt;br /&gt;&lt;br /&gt;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 attempts to launch an infected program, the virus' code may be executed simultaneously. Viruses can be divided into two types based on their behavior when they are executed. Nonresident viruses immediately search for other hosts that can be infected, infect those 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.&lt;br /&gt;&lt;br /&gt;Nonresident viruses&lt;br /&gt;&lt;br /&gt;Nonresident viruses can be thought of as consisting of a finder module and a replication module. The finder module is responsible for finding new files to infect. For each new executable file the finder module encounters, it calls the replication module to infect that file.[11]&lt;br /&gt;&lt;br /&gt;Resident viruses&lt;br /&gt;&lt;br /&gt;Resident viruses contain a replication module that is similar to the one that is employed by nonresident viruses. This module, however, is not called by a finder module. The virus loads the replication module into memory when it is executed instead and ensures that this module is executed each time the operating system is called to perform a certain operation. the replication module can be called, for example, each time the operating system executes a file. In this case the virus infects every suitable program that is executed on the computer.&lt;br /&gt;&lt;br /&gt;Resident viruses are sometimes subdivided into a category of fast infectors and a category of slow infectors. Fast infectors are designed to infect as many files as possible. A fast infector, for instance, can infect every potential host file that is accessed. This poses a special problem when using anti-virus software, since a virus scanner will access every potential host file on a computer when it performs a system-wide scan. If the virus scanner fails to notice that such a virus is present in memory the virus can "piggy-back" on the virus scanner and in this way infect all files that are scanned. Fast infectors rely on their fast infection rate to spread. The disadvantage of this method is that infecting many files may make detection more likely, because the virus may slow down a computer or perform many suspicious actions that can be noticed by anti-virus software. Slow infectors, on the other hand, are designed to infect hosts infrequently. Some slow infectors, for instance, only infect files when they are copied. Slow infectors are designed to avoid detection by limiting their actions: they are less likely to slow down a computer noticeably and will, at most, infrequently trigger anti-virus software that detects suspicious behavior by programs. The slow infector approach, however, does not seem very successful.&lt;br /&gt;&lt;br /&gt;Vectors and hosts&lt;br /&gt;&lt;br /&gt;Viruses have targeted various types of transmission media or hosts. This list is not exhaustive:&lt;br /&gt;&lt;br /&gt;    * Binary executable files (such as COM files and EXE files in MS-DOS, Portable Executable files in Microsoft Windows, and ELF files in Linux)&lt;br /&gt;    * Volume Boot Records of floppy disks and hard disk partitions&lt;br /&gt;    * The master boot record (MBR) of a hard disk&lt;br /&gt;    * General-purpose script files (such as batch files in MS-DOS and Microsoft Windows, VBScript files, and shell script files on Unix-like platforms).&lt;br /&gt;    * Application-specific script files (such as Telix-scripts)&lt;br /&gt;    * System specific autorun script files (such as Autorun.inf file needed to Windows to automatically run software stored on USB Memory Storage Devices).&lt;br /&gt;    * Documents that can contain macros (such as Microsoft Word documents, Microsoft Excel spreadsheets, AmiPro documents, and Microsoft Access database files)&lt;br /&gt;    * Cross-site scripting vulnerabilities in web applications&lt;br /&gt;    * Arbitrary computer files. An exploitable buffer overflow, format string, race condition or other exploitable bug in a program which reads the file could be used to trigger the execution of code hidden within it. Most bugs of this type can be made more difficult to exploit in computer architectures with protection features such as an execute disable bit and/or address space layout randomization.&lt;br /&gt;&lt;br /&gt;PDFs, like HTML, may link to malicious code.[citation needed]PDFs can also be infected with malicious code.&lt;br /&gt;&lt;br /&gt;In operating systems that use file extensions to determine program associations (such as Microsoft Windows), the extensions may be hidden from the user by default. This makes it possible to create a file that is of a different type than it appears to the user. For example, an executable may be created named "picture.png.exe", in which the user sees only "picture.png" and therefore assumes that this file is an image and most likely is safe.&lt;br /&gt;&lt;br /&gt;An additional method is to generate the virus code from parts of existing operating system files by using the CRC16/CRC32 data. The initial code can be quite small (tens of bytes) and unpack a fairly large virus. This is analogous to a biological "prion" in the way it works but is vulnerable to signature based detection.&lt;br /&gt;&lt;br /&gt;This attack has not yet been seen "in the wild".&lt;br /&gt;&lt;br /&gt;Methods to avoid detection&lt;br /&gt;&lt;br /&gt;In order to avoid detection by users, some viruses employ different kinds of deception. Some old viruses, especially on the MS-DOS platform, make sure that the "last modified" date of a host file stays the same when the file is infected by the virus. This approach does not fool anti-virus software, however, especially those which maintain and date Cyclic redundancy checks on file changes.&lt;br /&gt;&lt;br /&gt;Some viruses can infect files without increasing their sizes or damaging the files. They accomplish this by overwriting unused areas of executable files. These are called cavity viruses. For example the CIH virus, or Chernobyl Virus, infects Portable Executable files. Because those files have many empty gaps, the virus, which was 1 KB in length, did not add to the size of the file.&lt;br /&gt;&lt;br /&gt;Some viruses try to avoid detection by killing the tasks associated with antivirus software before it can detect them.&lt;br /&gt;&lt;br /&gt;As computers and operating systems grow larger and more complex, old hiding techniques need to be updated or replaced. Defending a computer against viruses may demand that a file system migrate towards detailed and explicit permission for every kind of file access.&lt;br /&gt;&lt;br /&gt;Avoiding bait files and other undesirable hosts&lt;br /&gt;&lt;br /&gt;A virus needs to infect hosts in order to spread further. In some cases, it might be a bad idea to infect a host program. For example, many anti-virus programs perform an integrity check of their own code. Infecting such programs will therefore increase the likelihood that the virus is detected. For this reason, some viruses are programmed not to infect programs that are known to be part of anti-virus software. Another type of host that viruses sometimes avoid is bait files. Bait files (or goat files) are files that are specially created by anti-virus software, or by anti-virus professionals themselves, to be infected by a virus. These files can be created for various reasons, all of which are related to the detection of the virus:&lt;br /&gt;&lt;br /&gt;    * Anti-virus professionals can use bait files to take a sample of a virus (i.e. a copy of a program file that is infected by the virus). It is more practical to store and exchange a small, infected bait file, than to exchange a large application program that has been infected by the virus.&lt;br /&gt;    * Anti-virus professionals can use bait files to study the behavior of a virus and evaluate detection methods. This is especially useful when the virus is polymorphic. In this case, the virus can be made to infect a large number of bait files. The infected files can be used to test whether a virus scanner detects all versions of the virus.&lt;br /&gt;    * Some anti-virus software employs bait files that are accessed regularly. When these files are modified, the anti-virus software warns the user that a virus is probably active on the system.&lt;br /&gt;&lt;br /&gt;Since bait files are used to detect the virus, or to make detection possible, a virus can benefit from not infecting them. Viruses typically do this by avoiding suspicious programs, such as small program files or programs that contain certain patterns of 'garbage instructions'.&lt;br /&gt;&lt;br /&gt;A related strategy to make baiting difficult is sparse infection. Sometimes, sparse infectors do not infect a host file that would be a suitable candidate for infection in other circumstances. For example, a virus can decide on a random basis whether to infect a file or not, or a virus can only infect host files on particular days of the week.&lt;br /&gt;&lt;br /&gt;Stealth&lt;br /&gt;&lt;br /&gt;Some viruses try to trick anti-virus software by intercepting its requests to the operating system. A virus can hide itself by intercepting the anti-virus software’s request to read the file and passing the request to the virus, instead of the OS. The virus can then return an uninfected version of the file to the anti-virus software, so that it seems that the file is "clean". Modern anti-virus software employs various techniques to counter stealth mechanisms of viruses. The only completely reliable method to avoid stealth is to boot from a medium that is known to be clean.&lt;br /&gt;&lt;br /&gt;Self-modification&lt;br /&gt;&lt;br /&gt;Most modern antivirus programs try to find virus-patterns inside ordinary programs by scanning them for so-called virus signatures. A signature is a characteristic byte-pattern that is part of a certain virus or family of viruses. If a virus scanner finds such a pattern in a file, it notifies the user that the file is infected. The user can then delete, or (in some cases) "clean" or "heal" the infected file. Some viruses employ techniques that make detection by means of signatures difficult but probably not impossible. These viruses modify their code on each infection. That is, each infected file contains a different variant of the virus.&lt;br /&gt;&lt;br /&gt;Encryption with a variable key&lt;br /&gt;&lt;br /&gt;A more advanced method is the use of simple encryption to encipher the virus. In this case, the virus consists of a small decrypting module and an encrypted copy of the virus code. If the virus is encrypted with a different key for each infected file, the only part of the virus that remains constant is the decrypting module, which would (for example) be appended to the end. In this case, a virus scanner cannot directly detect the virus using signatures, but it can still detect the decrypting module, which still makes indirect detection of the virus possible. Since these would be symmetric keys, stored on the infected host, it is in fact entirely possible to decrypt the final virus, but that probably isn't required, since self-modifying code is such a rarity that it may be reason for virus scanners to at least flag the file as suspicious.&lt;br /&gt;&lt;br /&gt;An old, but compact, encryption involves XORing each byte in a virus with a constant, so that the exclusive-or operation had only to be repeated for decryption. It is suspicious code that modifies itself, so the code to do the encryption/decryption may be part of the signature in many virus definitions.&lt;br /&gt;&lt;br /&gt;Polymorphic code&lt;br /&gt;&lt;br /&gt;Polymorphic code was the first technique that posed a serious threat to virus scanners. Just like regular encrypted viruses, a polymorphic virus infects files with an encrypted copy of itself, which is decoded by a decryption module. In the case of polymorphic viruses, however, this decryption module is also modified on each infection. A well-written polymorphic virus therefore has no parts which remain identical between infections, making it very difficult to detect directly using signatures. Anti-virus software can detect it by decrypting the viruses using an emulator, or by statistical pattern analysis of the encrypted virus body. To enable polymorphic code, the virus has to have a polymorphic engine (also called mutating engine or mutation engine) somewhere in its encrypted body. See Polymorphic code for technical detail on how such engines operate.[12]&lt;br /&gt;&lt;br /&gt;Some viruses employ polymorphic code in a way that constrains the mutation rate of the virus significantly. For example, a virus can be programmed to mutate only slightly over time, or it can be programmed to refrain from mutating when it infects a file on a computer that already contains copies of the virus. The advantage of using such slow polymorphic code is that it makes it more difficult for anti-virus professionals to obtain representative samples of the virus, because bait files that are infected in one run will typically contain identical or similar samples of the virus. This will make it more likely that the detection by the virus scanner will be unreliable, and that some instances of the virus may be able to avoid detection.&lt;br /&gt;&lt;br /&gt;Metamorphic code&lt;br /&gt;&lt;br /&gt;To avoid being detected by emulation, some viruses rewrite themselves completely each time they are to infect new executables. Viruses that use this technique are said to be metamorphic. To enable metamorphism, a metamorphic engine is needed. A metamorphic virus is usually very large and complex. For example, W32/Simile consisted of over 14000 lines of Assembly language code, 90% of which is part of the metamorphic engine.[13][14]&lt;br /&gt;&lt;br /&gt;Vulnerability and countermeasures&lt;br /&gt;&lt;br /&gt;The vulnerability of operating systems to viruses&lt;br /&gt;&lt;br /&gt;Just as genetic diversity in a population decreases the chance of a single disease wiping out a population, the diversity of software systems on a network similarly limits the destructive potential of viruses.&lt;br /&gt;&lt;br /&gt;This became a particular concern in the 1990s, when Microsoft gained market dominance in desktop operating systems and office suites. The users of Microsoft software (especially networking software such as Microsoft Outlook and Internet Explorer) are especially vulnerable to the spread of viruses. Microsoft software is targeted by virus writers due to their desktop dominance, and is often criticized for including many errors and holes for virus writers to exploit. Integrated and non-integrated Microsoft applications (such as Microsoft Office) and applications with scripting languages with access to the file system (for example Visual Basic Script (VBS), and applications with networking features) are also particularly vulnerable.&lt;br /&gt;&lt;br /&gt;Although Windows is by far the most popular operating system for virus writers, some viruses also exist on other platforms. Any operating system that allows third-party programs to run can theoretically run viruses. Some operating systems are less secure than others. Unix-based OS's (and NTFS-aware applications on Windows NT based platforms) only allow their users to run executables within their own protected memory space.&lt;br /&gt;&lt;br /&gt;An Internet based research revealed that there were cases when people willingly pressed a particular button to download a virus. Security analyst Didier Stevens ran a half year advertising campaign on Google AdWords which said "Is your PC virus-free? Get it infected here!". The result was 409 clicks.[15][16]&lt;br /&gt;&lt;br /&gt;As of 2006[update], there are relatively few security exploits targeting Mac OS X (with a Unix-based file system and kernel).[17] The number of viruses for the older Apple operating systems, known as Mac OS Classic, varies greatly from source to source, with Apple stating that there are only four known viruses, and independent sources stating there are as many as 63 viruses. Virus vulnerability between Macs and Windows is a chief selling point, one that Apple uses in their Get a Mac advertising.[18] In January 2009, Symantec announced what they believe to be the first virus targeted specifically at Macs.[19] This discovery did not gain much coverage until April 2009.[19]&lt;br /&gt;&lt;br /&gt;Windows and Unix have similar scripting abilities, but while Unix natively blocks normal users from having access to make changes to the operating system environment, older copies of Windows such as Windows 95 and 98 do not. In 1997, when a virus for Linux was released – known as "Bliss" – leading antivirus vendors issued warnings that Unix-like systems could fall prey to viruses just like Windows.[20] The Bliss virus may be considered characteristic of viruses – as opposed to worms – on Unix systems. Bliss requires that the user run it explicitly (so it is a trojan), and it can only infect programs that the user has the access to modify. Unlike Windows users, most Unix users do not log in as an administrator user except to install or configure software; as a result, even if a user ran the virus, it could not harm their operating system. The Bliss virus never became widespread, and remains chiefly a research curiosity. Its creator later posted the source code to Usenet, allowing researchers to see how it worked.[21]&lt;br /&gt;&lt;br /&gt;The role of software development&lt;br /&gt;&lt;br /&gt;Because software is often designed with security features to prevent unauthorized use of system resources, many viruses must exploit software bugs in a system or application to spread. Software development strategies that produce large numbers of bugs will generally also produce potential exploits.&lt;br /&gt;&lt;br /&gt;Anti-virus software and other preventive measures&lt;br /&gt;&lt;br /&gt;Many users install anti-virus software that can detect and eliminate known viruses after the computer downloads or runs the executable. There are two common methods that an anti-virus software application uses to detect viruses. The first, and by far the most common method of virus detection is using a list of virus signature definitions. This works by examining the content of the computer's memory (its RAM, and boot sectors) and the files stored on fixed or removable drives (hard drives, floppy drives), and comparing those files against a database of known virus "signatures". The disadvantage of this detection method is that users are only protected from viruses that pre-date their last virus definition update. The second method is to use a heuristic algorithm to find viruses based on common behaviors. This method has the ability to detect viruses that anti-virus security firms have yet to create a signature for.&lt;br /&gt;&lt;br /&gt;Some anti-virus programs are able to scan opened files in addition to sent and received e-mails 'on the fly' in a similar manner. This practice is known as "on-access scanning." Anti-virus software does not change the underlying capability of host software to transmit viruses. Users must update their software regularly to patch security holes. Anti-virus software also needs to be regularly updated in order to prevent the latest threats.&lt;br /&gt;&lt;br /&gt;One may also minimise the damage done by viruses by making regular backups of data (and the Operating Systems) on different media, that are either kept unconnected to the system (most of the time), read-only or not accessible for other reasons, such as using different file systems. This way, if data is lost through a virus, one can start again using the backup (which should preferably be recent).&lt;br /&gt;&lt;br /&gt;If a backup session on optical media like CD and DVD is closed, it becomes read-only and can no longer be affected by a virus (so long as a virus or infected file was not copied onto the CD/DVD). Likewise, an operating system on a bootable CD can be used to start the computer if the installed operating systems become unusable. Backups on removable media must be carefully inspected before restoration. The Gammima virus, for example, propagates via removable flash drives.[22][23]&lt;br /&gt;&lt;br /&gt;Another method is to use different operating systems on different file systems. A virus is not likely to affect both. Data backups can also be put on different file systems. For example, Linux requires specific software to write to NTFS partitions, so if one does not install such software and uses a separate installation of MS Windows to make the backups on an NTFS partition, the backup should remain safe from any Linux viruses (unless they are written to specifically provide this capability). Likewise, MS Windows can not read file systems like ext3, so if one normally uses MS Windows, the backups can be made on an ext3 partition using a Linux installation.&lt;br /&gt;&lt;br /&gt;Recovery methods&lt;br /&gt;&lt;br /&gt;Once a computer has been compromised by a virus, it is usually unsafe to continue using the same computer without completely reinstalling the operating system. However, there are a number of recovery options that exist after a computer has a virus. These actions depend on severity of the type of virus.&lt;br /&gt;&lt;br /&gt;Virus removal&lt;br /&gt;&lt;br /&gt;One possibility on Windows Me, Windows XP and Windows Vista is a tool known as System Restore, which restores the registry and critical system files to a previous checkpoint. Often a virus will cause a system to hang, and a subsequent hard reboot will render a system restore point from the same day corrupt. Restore points from previous days should work provided the virus is not designed to corrupt the restore files or also exists in previous restore points.[24] Some viruses, however, disable system restore and other important tools such as Task Manager and Command Prompt. An example of a virus that does this is CiaDoor.&lt;br /&gt;&lt;br /&gt;Administrators have the option to disable such tools from limited users for various reasons (for example, to reduce potential damage from and the spread of viruses). The virus modifies the registry to do the same, except, when the Administrator is controlling the computer, it blocks all users from accessing the tools. When an infected tool activates it gives the message "Task Manager has been disabled by your administrator.", even if the user trying to open the program is the administrator.[citation needed]&lt;br /&gt;&lt;br /&gt;Users running a Microsoft operating system can access Microsoft's website to run a free scan, provided they have their 20-digit registration number.&lt;br /&gt;&lt;br /&gt;Operating system reinstallation&lt;br /&gt;&lt;br /&gt;Reinstalling the operating system is another approach to virus removal. It involves simply reformatting the OS partition and installing the OS from its original media, or imaging the partition with a clean backup image (Taken with Ghost or Acronis for example).&lt;br /&gt;&lt;br /&gt;This method has the benefits of being simple to do, being faster than running multiple antivirus scans, and is guaranteed to remove any malware. Downsides include having to reinstall all other software, reconfiguring, restoring user preferences. User data can be backed up by booting off of a Live CD or putting the hard drive into another computer and booting from the other computer's operating system (though care must be taken not to transfer the virus to the new computer).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source by:&lt;a href="http://en.wikipedia.org/wiki/Computer_virus"&gt; http://en.wikipedia.org/wiki/Computer_virus&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-435261917714430804?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/435261917714430804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/computer-virus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/435261917714430804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/435261917714430804'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/computer-virus.html' title='Computer Virus'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-3128792707236068738</id><published>2009-04-14T15:48:00.000+07:00</published><updated>2009-04-14T15:51:54.265+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><title type='text'>Avoiding Naming Conflicts</title><content type='html'>&lt;title&gt;Avoiding Naming Conflicts&lt;/title&gt;&lt;style&gt;@import url(office.css);&lt;/style&gt;&lt;link disabled="" href="msoffice.css" rel="stylesheet"&gt;&lt;table width="0" align="right" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;object id="hhobj_3" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defidentifier"&gt;&lt;/object&gt; &lt;object id="hhobj_4" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defvariable"&gt;&lt;/object&gt; &lt;object id="hhobj_5" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defscoping"&gt;&lt;/object&gt; &lt;object id="hhobj_6" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defproclevel"&gt;&lt;/object&gt; &lt;object id="hhobj_7" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defmodulelevel"&gt;&lt;/object&gt; &lt;object id="hhobj_8" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defmodule"&gt;&lt;/object&gt; &lt;object id="hhobj_9" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defproject"&gt;&lt;/object&gt; &lt;object id="hhobj_10" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defreferencedproject"&gt;&lt;/object&gt; &lt;object id="hhobj_11" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;&lt;param name="Command" value="ALink"&gt;&lt;param name="Item1" value=""&gt;&lt;param name="Item2" value="defhostapplication"&gt;&lt;/object&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;h1&gt;&lt;a name="vaconavoidingnamingconflicts"&gt;&lt;/a&gt;&lt;/h1&gt;A naming conflict occurs when you try to create or use an identifier that was previously defined. In  some cases, naming conflicts generate errors such as "&lt;code&gt;Ambiguous name  detected&lt;/code&gt;" or "&lt;code&gt;Duplicate declaration in current scope&lt;/code&gt;".  Naming conflicts that go undetected can result in bugs in your code that produce  erroneous results, especially if you do not explicitly declare all variables before first use. &lt;p class="T"&gt;You can avoid most naming conflicts by understanding the scoping characteristics of identifiers for  data, objects, and procedures. Visual Basic has three scoping levels: procedure-level, private module-level, and public module-level.&lt;/p&gt; &lt;p class="T"&gt;A naming conflict can occur when an identifier:  &lt;/p&gt;&lt;ul&gt;&lt;li class="LB1"&gt;Is visible at more than one scoping level.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li class="LB1"&gt;Has two different meanings at the same level. &lt;/li&gt;&lt;/ul&gt; &lt;p class="T"&gt;For example, procedures in separate modules can have the same name. Therefore,  you can define a procedure named &lt;code&gt;MySub&lt;/code&gt; in modules named  &lt;code&gt;Mod1&lt;/code&gt; and &lt;code&gt;Mod2&lt;/code&gt;. No conflicts occur if each procedure is  called only from other procedures in its own module. However, an error can occur  if &lt;code&gt;MySub&lt;/code&gt; is called from a third module, and no qualification is  provided to distinguish between the two &lt;code&gt;MySub&lt;/code&gt; procedures.&lt;/p&gt; &lt;p class="T"&gt;Most naming conflicts can be resolved by preceding each identifier  with a qualifier that consists of the module name and, if necessary, a project name. For example:&lt;/p&gt;&lt;pre class="CT"&gt;&lt;code&gt;YourProject.YourModule.YourSub MyProject.MyModule.MyVar &lt;/code&gt;&lt;/pre&gt; &lt;p class="T"&gt;The preceding code calls the &lt;b&gt;Sub&lt;/b&gt; procedure  &lt;code&gt;YourSub&lt;/code&gt; and passes &lt;code&gt;MyVar&lt;/code&gt; as an argument. You can use  any combination of qualifiers to differentiate identical identifiers.&lt;/p&gt; &lt;p class="T"&gt;Visual Basic matches each reference to an identifier with the  "closest" declaration of a matching identifier. For example, if  &lt;code&gt;MyID&lt;/code&gt; is declared &lt;b&gt;Public&lt;/b&gt; in two modules in a project  (&lt;code&gt;Mod1&lt;/code&gt; and &lt;code&gt;Mod2&lt;/code&gt;), you can specify the &lt;code&gt;MyID&lt;/code&gt;  declared in &lt;code&gt;Mod2&lt;/code&gt; without qualification from within  &lt;code&gt;Mod2&lt;/code&gt;, but you must qualify it as &lt;code&gt;Mod2.MyID&lt;/code&gt; to specify  it in &lt;code&gt;Mod1&lt;/code&gt;. This is also true if &lt;code&gt;Mod2&lt;/code&gt; is in a  different but directly referenced  project. However, if &lt;code&gt;Mod2&lt;/code&gt; is in an indirectly referenced  project, that is, a project referenced by the project you directly reference,  references to the &lt;code&gt;Mod2&lt;/code&gt; variable named &lt;code&gt;MyID&lt;/code&gt; must always  be qualified with the project name. If you reference &lt;code&gt;MyID&lt;/code&gt; from a  third, directly referenced module, the match is made with the first declaration  encountered by searching:  &lt;/p&gt;&lt;ul&gt;&lt;li class="LB1"&gt;Directly referenced projects, in the order that they appear in the  &lt;b&gt;References&lt;/b&gt; dialog box of the &lt;b&gt;Tools&lt;/b&gt; menu.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li class="LB1"&gt;The modules of each project. Note that there is no inherent order  to the modules in the project. &lt;/li&gt;&lt;/ul&gt; &lt;p class="T"&gt;You can't reuse names of host-application objects, for example,  R1C1 in Microsoft Excel, at different scoping levels.&lt;/p&gt; &lt;p class="NT"&gt;&lt;b&gt;Tip&lt;/b&gt;   Typical errors caused by naming conflicts include  ambiguous names, duplicate declarations, undeclared identifiers, and procedures  that are not found. By beginning each module with an &lt;b&gt;Option Explicit  &lt;/b&gt;statement to force explicit declarations of variables before they are used,  you can avoid some potential naming conflicts and identifier-related bugs.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-3128792707236068738?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/3128792707236068738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/avoiding-naming-conflicts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/3128792707236068738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/3128792707236068738'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/avoiding-naming-conflicts.html' title='Avoiding Naming Conflicts'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7127919320208763361.post-5393421132804618884</id><published>2009-04-14T14:51:00.000+07:00</published><updated>2009-04-14T14:53:59.348+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Hello World</title><content type='html'>This is the 1st post.&lt;br /&gt;Happy blogging....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7127919320208763361-5393421132804618884?l=neoxioo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neoxioo.blogspot.com/feeds/5393421132804618884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neoxioo.blogspot.com/2009/04/hello-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/5393421132804618884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7127919320208763361/posts/default/5393421132804618884'/><link rel='alternate' type='text/html' href='http://neoxioo.blogspot.com/2009/04/hello-world.html' title='Hello World'/><author><name>Neo's WebBlog</name><uri>http://www.blogger.com/profile/16479856285401230316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
