Docsity

ETHICAL HACKING PRACTICE QUESTIONS WITH SOLUTIONS, Exams of Computer Science

Toggle sidebar
bg1
ETHICAL HACKING PRACTICE
QUESTIONS WITH SOLUTIONS
Ethical Hacking (Legal Hacking) - Answer Perpetrating exploits against a
system with the intent to find vulnerabilities so that security weaknesses
can be addresses and the system can be made more secure.
Penetration Testing - Answer The practice of finding vulnerabilities and risks
with the purpose of securing the computer or network system.
Red team - Answer An offensive security team that attempts to discover
vulnerabilities in a network or computer system.
Blue team - Answer A defensive security team that attempts to close
vulnerabilities and stop the red team.
Purple team - Answer A mixture of both the red and blue teams.
Steps of Hacking - Answer 1. Reconnaissance (Preparatory phase)
2. Scanning and enumeration
3. Gaining access
4. Maintain access
5. Cover tracks
Reconnaissance - Answer Known as foot-printing. The phase where the
hacker begins to gather information on their target. Information can include
gathering publicly available information, using social engineering
techniques, and dumpster diving
Scanning/Enumeration - Answer Being actively engaged with the target.
Using various tools to gather in-depth information about the network,
computer systems, live systems, open ports, and more.
Enumeration - Answer Extracting information such as usernames, computer
names, network resources, shares, and services.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download ETHICAL HACKING PRACTICE QUESTIONS WITH SOLUTIONS and more Exams Computer Science in PDF only on Docsity!

ETHICAL HACKING PRACTICE

QUESTIONS WITH SOLUTIONS

Ethical Hacking (Legal Hacking) - Answer Perpetrating exploits against a system with the intent to find vulnerabilities so that security weaknesses can be addresses and the system can be made more secure. Penetration Testing - Answer The practice of finding vulnerabilities and risks with the purpose of securing the computer or network system. Red team - Answer An offensive security team that attempts to discover vulnerabilities in a network or computer system. Blue team - Answer A defensive security team that attempts to close vulnerabilities and stop the red team. Purple team - Answer A mixture of both the red and blue teams. Steps of Hacking - Answer 1. Reconnaissance (Preparatory phase)

  1. Scanning and enumeration
  2. Gaining access
  3. Maintain access
  4. Cover tracks Reconnaissance - Answer Known as foot-printing. The phase where the hacker begins to gather information on their target. Information can include gathering publicly available information, using social engineering techniques, and dumpster diving Scanning/Enumeration - Answer Being actively engaged with the target. Using various tools to gather in-depth information about the network, computer systems, live systems, open ports, and more. Enumeration - Answer Extracting information such as usernames, computer names, network resources, shares, and services.

Gain access - Answer Taking information gathered through reconnaissance and scanning to exploit the vulnerabilities found. Maintain access - Answer Create ways to stay in their system. Install backdoors, rootkits, or trojan horses. Penetration testing types - Answer Black box White box Gray box Black box - Answer When the hacker has no information about the target or network. Simulates outside attacks and ignores insider threats. Major drawback: Takes more time and money because more goes into the reconnaissance and scanning phases. White box test - Answer The hacker is given full knowledge of the network, computer systems, and infrastructure. Unrealistic as a real hacker most likely does not have all the information. Comprehensive and thorough. Gray box test - Answer Simulates an insider threat. Hacker has partial information about the network and computer systems. Information could include: IP configurations, email lists, computer names, and other information that can be obtained. Requires less reconnaissance and scanning but not all information is given. Open Web Application Security Project (OWASP) - Answer Describes techniques for testing the most common web applications and web service security issues.

External test - Answer Focuses on any public facing system, such as a web server that resides in the DMZ. (Gray/black box) Risk Assessment - Answer Identify vulnerable areas within an organization's network. Should look at all areas including: high-value data, network systems, web applications, online information, and physical security, including operating systems and web servers. Risk Management - Answer Avoidance Transference Mitigation Acceptance Avoidance - Answer When a risk is identified and it can be avoided. Mitigation (Reduction) - Answer Steps to reduce damage that might occur. Social Engineering - Answer The art of deceiving and manipulating others into doing what you want. An attack involving human interaction. Payment Card Industry Data Security Standards (PCI-DSS) - Answer Security standards for any organization that handles cardholder information for debit cards, credit cards, prepaid cards, and other types of payment cards. Defines the security standards for any organization that handles cardholder information. Health Insurance Portability and Accountability Act (HIPAA) - Answer A set of standards that ensures a person's health information is kept safe and shared only with the patient and medical professionals who need it. ISO/IEC 27001 - Answer A set of processes and requirements for an organization's information security management systems.

Defines the processes and requirements for an organization's information security management systems. Compliance-based penetration test - Answer This test ensures that the organizations are in compliance with federal laws and regulations. These laws and regulations would include PCI DSS, HIPPA, ISO/IEC 27001, the Sarbanes Oxley Act (SOX), DMCA, and FISMA. Bring Your Own Device (BYOD) - Answer Policies that govern an organization's rules and regulations regarding support of employee-owned smart phones, tablets, and similar devices. Master Service Agreement (MSA) - Answer A contract where parties agree to the terms that will govern future actions. This makes future services and contracts easier to handle and define. Non-disclosure Agreement (NDA) - Answer A common legal contract that outlines confidential material or information that will be shared during a security assessment and what restrictions are placed on information. Permission to test - Answer A document that explains what the penetration tester is doing and that their work is authorized. This document is sometimes referred to as the "Get Out Of Jail Free Card" Footprinting - Answer Similar to stalking, but in a social engineering context. Pretexting - Answer A fictitious scenario to persuade someone to perform an action or give information. Preloading - Answer Influencing a target's thoughts, opinions, and emotions before something happens. SMiShing - Answer phishing through text messages (SMS) Impersonation - Answer Pretending to be somebody else and approaching a target to extract information 3 steps of a social engineering attack - Answer 1. Research

On-Path Attacks - Answer Attackers position themselves in the communication stream between a client and server. A browser on-path attack is when the malware is operating on the victim's system. ARP Poisoning - Answer an attack that convinces the network that the attacker's MAC address is the one associated with an allowed address so that traffic is wrongly sent to the attacker's machine ARP spoofing - Answer An attack in which the attacker's MAC address is associated with the IP address of a target's device. DNS Poisoning - Answer An attack that substitutes DNS addresses so that the computer is automatically redirected to an attacker's device. Host File - Answer A flat file that contains on each line a network address followed by the host name it can be referred to as. Bettercap - Answer is a powerful and modular network attack framework that enables security professionals to perform various network-based attacks, including ARP poisoning, network sniffing, and session hijacking, for testing and assessment purposes. Port Stealing - Answer Is a man-in-the-middle attack that exploits the binding between the port and the MAC address. The principle behind port stealing is that an attacker sends numerous packets with the source IP address of the victim and the destination MAC address of the attacker. This attack applies to broadcast networks built from switches. SSL Stripping - Answer An attack where a website's encryption is tricked into presenting the user with a HTTP connection instead of a HTTPS connection. iptables - Answer A user-space utility program that allows a system administrator to configure the tables provided by the Linux kernel firewall and the chains and rules it stores Brute Force Attack Methodologies - Answer Password Guessing

Default Passwords Cracking Phishing Hash Types - Answer - Message Digest 5 (Oldest, 128bit hash) -NTML (Re-encoded text hashed with MD4, Windows OS) -Net NTML (Improved version of NTML, uses salting and time stamps against PTH)

  • Secure Hash Algorithm 1 (Outdated, 160 bit hash)
  • Secure Hash Algorithm 2 (SHA-2, 256-512 bit hash) Password attack methods - Answer -Brute-force -Dictionary -Mutated Dictionary -Rainbow Tables -RAR/ZIP cracking Defense Methods - Answer -Strong Passwords, Login Attempt limitation, Fail2Ban Offline Password Cracking - Answer JTR(John the Ripper/CPU - John Jumbo/GPU, Jumbo/many hash types), Hashcat(Fastest password cracking), Crunch(Pass. list generator), CUPP(Creates wordlist based on prior knowledge of victim) Online Password Cracking - Answer Hydra(Remote and web formats), Medusa(thread-based remote auth.), Ncrack (fastest & most reliable for remote auth.) Social Engineering Process - Answer The social engineering process -Preparation: Choose a target and perform a background check to determine an attack method -Deceive to connect: Contact a target and take control over a session -Winning info: Expand the foothold to start the attack, use business activity as a cover, and phish for data -Cover the Tracks: Leave no trace of the activities by cover the trails

Remote Shell - Answer Bind Shell- attacker connects to the target to gain a remote shell Reverse Shell- A maliciously spawned remote command shell where the victim host opens the connection to the attacking host. Msfvenom - Answer is a combination of msfpayload and msfencode, putting both of these tools into a single framework. It can be used to generate malware as a standalone .exe file Lateral Movement - Answer The process by which an attacker is able to move from one part of a computing environment to another. Eternal Blue Exploit - Answer Attacker recognizes the target's OS and Version Attacker loads the module and payload Attacker executes the attack and get a remote shell Windows Priv. Escalation - Answer Local(Guest User, Regular User, Admin, NT Authority) Domain(Regular User, Delegated Admin, Domain Admin, Enterprise Admin) NET.EXE (Command Line Tools) - Answer Manages user, groups, services, network connections Privilege Escalation via Winlogon - Answer Launching CMD with NT Authority clearance created by mounting malicious code or changing file Offline Windows PE Mitigations - Answer BIOS PASS: Protects computer against boot order changing Encrypt the Drive: Prevents an external live OS from accessing the drive Physical Access: Limit of physical access to hardware Online Windows PE Mitigations - Answer -Principle of Least Priv. -Remote Local Admin Rights -Account Audits -Applocker -Software

-Code -Tokens Linux Boot Order - Answer MBR(Master Boot Record), GRUB(Grand Unified Bootloader), Kernel(Sys. Core), Init(First Process), Run Level(After Boot) GRUB - Answer allows user to choose which OS to load in Linux systems Traffic interception tools - Answer Burp Suite: web proxy written in JAVA, used for web app security testing Fiddler: Web debugging proxy that enables HTTP traffic examination for development OWASP Zap: Combined ZAP's Pentesting project with OWASP projects for a complete solution Burp Suite Tools - Answer Repeater: Repeatedly sends packets and tracks changes in responses used to observe server reactions Intruder: Brute-force module,sends parameters and manipulates them Sequencer: Sends a payload and examines the randomness of the request Decoder: Performs conversion of various data types Comparer: Comparison of data within Burp, with other data XSS types - Answer Reflected XSS: Most Common Stored XSS: Most Devistating DOM(Document Object Model) XSS: Most Complex XSS Consequences - Answer Defacing Cookie Theft Clickjacking Trojan Delivery session hijacking attack - Answer An attack where the attacker exploits a legitimate session to obtain unauthorized access to an organization's network or services.