In: Computer Science
Let's say we have the following lines of pseudo-code in a program. What type of malware is in this code?
username = get_username();
password = get_password();
if username is "l33t h4ck0r":
return PERMIT_ENTRY
if username and password are valid:
return PERMIT_ENTRY
else
return DENY_ENTRY
rootkit |
||
spyware |
||
trojan horse |
||
backdoor |
d) Backdoor
The backdoor fragment in a program allows user to access backdoor information without necessarily following the common security procedures needed.
In this case, once the programmer keys in the username he or she logs in without putting password.
Therefore, this is a backdoor fragment.
rootkit
A rootkit is a malicious software that allows an unauthorized user to have privileged access to a computer and to restricted areas of its software. A rootkit may contain a number of malicious tools such as keyloggers, banking credential stealers, password stealers, antivirus disablers, and bots for DDoS attacks
spyware
Spyware is unwanted software that infiltrates your computing device, stealing your internet usage data and sensitive information. Spyware is classified as a type of malware — malicious software designed to gain access to or damage your computer, often without your knowledge.
trojan horse
A Trojan horse or Trojan is a type of malware that is often disguised as legitimate software. Trojans can be employed by cyber-thieves and hackers trying to gain access to users' systems.
The answer is 100% correct
If you have any doubts, leave a comment below before rating. I'll be happy to assist you further
Please UPVOTE