Cs 14

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Experiment No.

14
Engroll No. SS20CO011 Name :- Prem Bonde
Aim:- To Create a small piece of code to prevent from any type
of virus.
Theory :-
A computer virus is a program which can harm our device and
files and infect Them for no further use. When a virus program is
executed, it replicates itself By modifying other computer
programs and instead enters its own coding. This Code infects a
file or program and if it spreads massively, it may ultimately Result
in crashing of the device. Across the world, Computer viruses are
a great issue of concern as they can Cause billions of dollars’
worth harm to the economy each year.

Types of Computer Virus


Discussed below are the different types of computer viruses:
• Boot Sector Virus – It is a type of virus that infects the boot
sector of floppy disks or the Master Boot Record (MBR) of hard
disks. The Boot sector comprises all the files which Are required to
start the Operating system of the computer. The virus either
overwrites the Existing program or copies itself to another part of
the disk.

• Direct Action Virus – When a virus attaches itself directly to a


.exe or .com file and Enters the device while its execution is
called a Direct Action Virus. If it gets installed in The memory, it
keeps itself hidden. It is also known as Non-Resident Virus.
• Resident Virus – A virus which saves itself in the memory of the
computer and then Infects other files and programs when its
originating program is no longer working. This Virus can easily
infect other files because it is hidden in the memory and is hard
to be Removed from the system.

• Multipartite Virus – A virus which can attack both, the boot


sector and the executable Files of an already infected computer
is called a multipartite virus. If a multipartite virus Attacks your
system, you are at risk of cyber threat.

• Overwrite Virus – One of the most harmful viruses, the overwrite


virus can completely Remove the existing program and replace
it with the malicious code by overwriting it. Gradually it can
completely replace the host’s programming code with the
harmful code.

• Polymorphic Virus – Spread through spam and infected


websites, the polymorphic virus Are file infectors which are
complex and are tough to detect. They create a modified or
Morphed version of the existing program and infect the system
and retain the original code
• File Infector Virus – As the name suggests, it first infects a single
file and then later Spreads itself to other executable files and
programs. The main source of this virus are Games and word
processors.
• Spacefiller Virus – It is a rare type of virus which fills in the empty
spaces of a file with Viruses. It is known as cavity virus. It will
neither affect the size of the file nor can be Detected easily.
• Macro Virus – A virus written in the same macro language as
used in the software Program and infects the computer if a word
processor file is opened. Mainly the source of Such viruses is via
emails. An anti-virus is a software which comprises programs or
set of programs which can detect and Remove all the harmful
and malicious software from your device. This anti-virus software
is Designed in a manner that they can search through the files in
a computer and determine the files Which are heavy or mildly
infected by a virus.
Given below is a list of few of the major antivirus software which
is most commonly used:
• Norton Antivirus
• F-Secure Antivirus
• Kaspersky Antivirus
• AVAST Antivirus
• Comodo Antivirus
• McAfee Antivirus
Code :-

Output :-

Conclusion :-
Thus we have successfully demonstrated Intrusion Detection
System.

You might also like