There are three (four in this case) subroutines common throughout most viruses: the search method, the infection method, the stealth method, and the payload (optional).
The search method enables the virus to determinate infected files from uninfected files and infect the uninfected ones.
The infection method allows the virus to inject its code into uninfected files found by the search subroutine.
The stealth method is what masks the virus's activities not only to the user, but also to the operating system and other security software installed on the host computer. Not all viruses have this subroutine.
The final (and optional) payload subroutine is the section of code in the virus that allows the malware to cause destruction to the infected computer, such as deleting files, stealing confidential information, locking the user out of their system, etc.
Chat with our AI personalities
Viruses generally consist of a protein coat called a capsid, genetic material such as DNA or RNA, and sometimes an outer lipid envelope. The capsid protects the viral genetic material, allowing the virus to infect host cells and replicate.
Every virus has two main parts: a protein coat called capsid that surrounds and protects the genetic material, and the genetic material itself which can be DNA or RNA. The genetic material contains the instructions needed for the virus to replicate and infect host cells.
A virus typically consists of genetic material (DNA or RNA), a protein coat called a capsid that encloses the genetic material, an envelope derived from the host cell membrane (in some viruses), and sometimes additional structures like spikes or tails for attachment and entry into host cells.
The genetic material (such as DNA or RNA) of the virus is injected into the infected cell. This genetic material hijacks the cell's machinery to replicate and produce more virus particles.
The scientific word for virus is "virus."
Smallpox was a virus.