How to Write a Virus?

A computer virus is any program that intentionally duplicates itself. People who get caught writing a computer virus can expect serious legal consequences. Intentionally infecting a computer with a virus violates several US and international laws.