










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































Question 1: Which of the following best describes ethical hacking? A) Unauthorized intrusion B) Legal and authorized security testing C) Hacking for personal gain D) Cyber vandalism Answer: B Explanation: Ethical hacking is the practice of legally and explicitly testing systems to identify vulnerabilities before malicious hackers can exploit them. Question 2: What is the primary role of a white hat hacker? A) To exploit system vulnerabilities for profit B) To expose weaknesses and help secure systems C) To create destructive malware D) To bypass security without permission Answer: B Explanation: White hat hackers use their skills to find and report vulnerabilities so that they can be fixed, thereby improving overall security. Question 3: Which phase in ethical hacking involves gathering as much information as possible about a target system? A) Exploitation B) Post-exploitation C) Reconnaissance D) Reporting Answer: C Explanation: The reconnaissance phase involves gathering intelligence about the target system, which is essential for planning subsequent testing steps. Question 4: What distinguishes a white hat hacker from a black hat hacker? A) White hats work illegally, while black hats follow legal guidelines B) White hats use outdated methods, while black hats use modern techniques C) White hats work with permission to secure systems, while black hats exploit systems without authorization D) There is no difference Answer: C Explanation: White hat hackers perform security testing with proper authorization, whereas black hat hackers breach systems without permission for malicious purposes. Question 5: Which of the following is NOT a typical phase of the ethical hacking process? A) Reconnaissance B) Exploitation C) Post-exploitation D) Data destruction Answer: D
Explanation: The ethical hacking process typically involves reconnaissance, scanning, exploitation, and post-exploitation, not data destruction. Question 6: Which model is commonly used to conceptualize computer network communications? A) Waterfall model B) OSI model C) Spiral model D) V-Model Answer: B Explanation: The OSI model is a conceptual framework used to understand network communications, breaking them into seven layers. Question 7: In the TCP/IP model, what is the primary function of the Internet layer? A) Establishing physical connections B) Managing routing and addressing C) Handling data encryption D) Presenting application data Answer: B Explanation: The Internet layer in the TCP/IP model is responsible for routing and addressing, ensuring that data packets reach the correct destination. Question 8: Which of the following devices is primarily used to connect different networks together? A) Switch B) Hub C) Router D) Repeater Answer: C Explanation: Routers are network devices that connect different networks and direct data packets along the best path to their destination. Question 9: What does DNS stand for in networking? A) Domain Name System B) Direct Network Service C) Data Node Server D) Distributed Name System Answer: A Explanation: DNS stands for Domain Name System, which translates domain names into IP addresses. Question 10: Which protocol is primarily used for secure remote login sessions? A) FTP B) HTTP C) SSH D) Telnet Answer: C Explanation: SSH (Secure Shell) is widely used for secure remote access to systems, providing encryption for data transmitted over a network.
Question 16: What is a primary characteristic of a Distributed Denial of Service (DDoS) attack? A) It originates from a single source B) It uses multiple compromised systems to flood the target C) It targets only application layers D) It bypasses network firewalls Answer: B Explanation: A DDoS attack leverages multiple systems, often distributed globally, to flood a target with traffic, making defense more challenging. Question 17: Which type of malware disguises itself as legitimate software to trick users into installing it? A) Worm B) Trojan horse C) Virus D) Ransomware Answer: B Explanation: A Trojan horse pretends to be useful or harmless software but contains malicious code, leading to unauthorized access or damage. Question 18: What does the term “zero-day exploit” refer to? A) An exploit that takes zero time to execute B) A vulnerability that is known and patched immediately C) A previously unknown vulnerability that has not yet been patched D) A vulnerability affecting zero systems Answer: C Explanation: A zero-day exploit takes advantage of a previously unknown vulnerability, meaning there is no available patch at the time of discovery. Question 19: Which attack technique involves injecting malicious SQL code into a query? A) Cross-site scripting (XSS) B) SQL injection C) Buffer overflow D) Man-in-the-middle Answer: B Explanation: SQL injection attacks insert malicious code into SQL queries, potentially allowing unauthorized access or manipulation of a database. Question 20: What type of attack manipulates a website to run unauthorized scripts in a user's browser? A) SQL injection B) Cross-site scripting (XSS) C) CSRF D) DNS spoofing Answer: B Explanation: Cross-site scripting (XSS) attacks occur when an attacker injects malicious scripts into content that is then executed by a victim's browser.
Question 21: Which vulnerability is exploited by sending excessively long input to a system to cause a buffer overflow? A) SQL injection B) Cross-site request forgery C) Buffer overflow D) Directory traversal Answer: C Explanation: A buffer overflow attack occurs when an attacker sends more data than a buffer can handle, potentially overwriting adjacent memory and leading to arbitrary code execution. Question 22: What is the primary objective of social engineering in cybersecurity? A) To improve network performance B) To manipulate individuals into divulging confidential information C) To physically damage hardware D) To encrypt data Answer: B Explanation: Social engineering involves psychological manipulation to trick individuals into revealing sensitive information or taking unsafe actions. Question 23: In the context of ethical hacking, what is footprinting? A) Installing malware on a system B) The process of gathering preliminary information about a target C) Encrypting communication channels D) Conducting denial of service attacks Answer: B Explanation: Footprinting is the initial phase of ethical hacking, where the hacker gathers as much information as possible about a target to plan further steps. Question 24: Which tool is widely used for network scanning and mapping? A) Metasploit B) Nmap C) Wireshark D) John the Ripper Answer: B Explanation: Nmap is a popular network scanning tool used to discover hosts, services, and open ports on a network. Question 25: What is the primary purpose of banner grabbing in network security? A) To disrupt network traffic B) To collect information about services and their versions C) To encrypt sensitive data D) To update software patches Answer: B Explanation: Banner grabbing is used to gather information from a service banner, which often reveals the software name and version, assisting in vulnerability identification.
B) A shell that connects back to the attacker’s system C) A technique for scanning open ports D) A firewall bypass method Answer: B Explanation: A reverse shell is a connection initiated from the target machine back to the attacker's system, allowing remote command execution. Question 32: What does privilege escalation refer to in post-exploitation? A) Lowering system privileges for safety B) Gaining higher access rights than initially provided C) Reducing network traffic D) Updating system software Answer: B Explanation: Privilege escalation is the process of obtaining elevated access rights, which can enable an attacker to execute restricted commands or access sensitive data. Question 33: Which tool is widely used for capturing and analyzing network traffic? A) John the Ripper B) Wireshark C) Nessus D) Metasploit Answer: B Explanation: Wireshark is a popular network protocol analyzer used to capture and inspect data packets in real time. Question 34: What is the primary goal of a deauthentication attack in Wi-Fi networks? A) To enhance encryption strength B) To disconnect clients from a Wi-Fi network C) To improve signal strength D) To scan for open ports Answer: B Explanation: A deauthentication attack forces connected devices off a Wi-Fi network, often as part of an attempt to capture their authentication credentials. Question 35: Which of the following is a key characteristic of WPA3 compared to WPA2? A) Weaker encryption methods B) Enhanced protection against brute force attacks C) No support for modern devices D) Slower network speeds Answer: B Explanation: WPA3 provides improved security features, including stronger protection against brute force attacks, compared to WPA2. Question 36: Which wireless hacking tool is commonly used for cracking WEP/WPA passwords? A) Metasploit B) Aircrack-ng C) Burp Suite
D) Nmap Answer: B Explanation: Aircrack-ng is a suite of tools designed for auditing wireless networks, particularly effective for cracking WEP and WPA/WPA2 keys. Question 37: What does SQL injection target in a web application? A) The front-end design B) The database backend C) The web server’s operating system D) The user interface Answer: B Explanation: SQL injection manipulates database queries by inserting malicious SQL code into input fields, targeting the backend database. Question 38: Which tool is known for intercepting and modifying web traffic for testing vulnerabilities? A) Burp Suite B) Nessus C) Metasploit D) OpenVAS Answer: A Explanation: Burp Suite is a comprehensive platform for web application security testing, allowing testers to intercept, modify, and replay HTTP requests. Question 39: What is the primary purpose of cryptographic hash functions such as SHA? A) To compress data files B) To generate a fixed-size output from data for integrity checks C) To encrypt communications in real time D) To manage user sessions Answer: B Explanation: Cryptographic hash functions produce a unique fixed-size hash value from data, which is commonly used to verify data integrity. Question 40: Which type of encryption uses the same key for both encryption and decryption? A) Asymmetric encryption B) Symmetric encryption C) Public key encryption D) Hash encryption Answer: B Explanation: Symmetric encryption uses one key for both encrypting and decrypting data, making key management a critical factor. Question 41: What does PKI stand for in the context of cryptography? A) Public Key Infrastructure B) Private Key Interface C) Public Kernel Integration D) Personal Key Information
Answer: B Explanation: The star topology is a common network layout where each node is connected to a central hub or switch. Question 47: What is the main function of VPNs in network security? A) To slow down network traffic B) To create a secure and encrypted connection over an untrusted network C) To monitor system logs D) To replace firewalls Answer: B Explanation: Virtual Private Networks (VPNs) provide secure, encrypted tunnels for data transmission over potentially insecure networks like the Internet. Question 48: Which protocol is designed specifically for secure remote file transfers? A) FTP B) SFTP C) HTTP D) SMTP Answer: B Explanation: SFTP (Secure File Transfer Protocol) is used for transferring files securely over a network by leveraging SSH encryption. Question 49: Which network device is primarily used for connecting multiple devices in a LAN? A) Router B) Switch C) Firewall D) Modem Answer: B Explanation: Switches connect multiple devices within a Local Area Network (LAN), facilitating efficient data transfer among them. Question 50: In network security, what is the purpose of network segmentation? A) To merge separate networks into one B) To isolate different network segments for enhanced security C) To increase the number of IP addresses D) To speed up a single connection Answer: B Explanation: Network segmentation divides a network into smaller segments, limiting the spread of an attack and improving overall security. Question 51: Which ethical hacking certification is well-known for validating penetration testing skills? A) CISSP B) CEH C) CompTIA A+ D) CCNA Answer: B
Explanation: The Certified Ethical Hacker (CEH) certification is widely recognized for assessing the skills of professionals in penetration testing and ethical hacking. Question 52: Which ethical hacking methodology emphasizes a structured approach from reconnaissance to reporting? A) Waterfall B) OSSTMM C) Agile D) DevOps Answer: B Explanation: OSSTMM (Open Source Security Testing Methodology Manual) provides a structured framework for conducting thorough security testing. Question 53: What legal document typically grants permission to perform an ethical hack? A) Non-disclosure agreement B) Letter of authorization C) Employment contract D) Software license Answer: B Explanation: A letter of authorization provides explicit permission for ethical hackers to test and assess a system, protecting them legally. Question 54: Which protocol is used for secure email communication? A) POP B) IMAP C) S/MIME D) SMTP Answer: C Explanation: S/MIME (Secure/Multipurpose Internet Mail Extensions) provides encryption and digital signatures for securing email communications. Question 55: In a vulnerability assessment, what does the term “risk assessment” primarily involve? A) Counting the number of vulnerabilities B) Evaluating the potential impact and likelihood of exploitation C) Installing software updates D) Backing up data Answer: B Explanation: Risk assessment evaluates the potential impact of vulnerabilities and their likelihood of exploitation to prioritize remediation efforts. Question 56: What is the function of the tool “John the Ripper” in cybersecurity? A) Scanning networks for open ports B) Cracking passwords C) Intercepting network traffic D) Creating malware signatures Answer: B
Question 62: In the context of network security, what does the term “banner grabbing” refer to? A) Downloading a website’s homepage B) Retrieving information from a service to identify its version and type C) Encrypting web traffic D) Scanning for open ports Answer: B Explanation: Banner grabbing involves connecting to a service and reading its banner, which often contains details about the service and version information. Question 63: What is the purpose of using custom scripts in vulnerability identification? A) To automate routine tasks and identify obscure vulnerabilities B) To replace all commercial vulnerability tools C) To generate random data D) To slow down network traffic Answer: A Explanation: Custom scripts can be tailored to target specific systems or vulnerabilities, automating tasks and uncovering issues that standard tools might miss. Question 64: Which of the following best describes a man-in-the-middle attack? A) An attacker sends phishing emails B) An attacker intercepts and relays communication between two parties C) An attacker exploits buffer overflow vulnerabilities D) An attacker encrypts sensitive data Answer: B Explanation: In a man-in-the-middle attack, the attacker secretly intercepts and possibly alters communication between two parties without their knowledge. Question 65: What is the main goal of post-exploitation activities in penetration testing? A) To document vulnerabilities without further actions B) To maintain access and explore the extent of the breach C) To disconnect from the network immediately D) To install anti-virus software Answer: B Explanation: Post-exploitation involves activities like privilege escalation, maintaining access, and gathering further data to understand the full impact of the breach. Question 66: Which tool is commonly used for wireless packet analysis? A) Wireshark B) Nessus C) Metasploit D) John the Ripper Answer: A Explanation: Wireshark is a versatile tool used to capture and analyze packets over a network, including wireless networks. Question 67: Which of the following is a common technique used in a deauthentication attack on Wi- Fi networks?
A) Spoofing IP addresses B) Sending forged deauthentication frames C) Cracking passwords directly D) Exploiting SQL injection Answer: B Explanation: Deauthentication attacks involve sending forged deauthentication frames to disconnect clients from a Wi-Fi network. Question 68: What distinguishes WPA3 from previous Wi-Fi security protocols? A) It offers no encryption B) It provides individualized data encryption and improved handshake protocols C) It only works on legacy devices D) It is less secure than WEP Answer: B Explanation: WPA3 improves upon previous protocols by offering individualized data encryption and more robust handshake mechanisms. Question 69: Which type of vulnerability primarily affects web applications through unsanitized user input? A) Buffer overflow B) SQL injection C) Man-in-the-middle D) Phishing Answer: B Explanation: SQL injection vulnerabilities occur when unsanitized user input is passed directly into SQL queries, allowing attackers to manipulate database commands. Question 70: Which tool is specifically designed for web application vulnerability testing and manipulation of HTTP requests? A) Nmap B) Burp Suite C) Aircrack-ng D) Metasploit Answer: B Explanation: Burp Suite is a comprehensive tool for testing web application security by intercepting, modifying, and replaying HTTP requests. Question 71: What is the primary purpose of a digital certificate in SSL/TLS? A) To create a firewall B) To validate the identity of a website or server C) To store passwords D) To scan for viruses Answer: B Explanation: Digital certificates are used in SSL/TLS to authenticate the identity of a website or server, ensuring secure connections.
Question 77: Which of the following best describes a hypervisor in virtualization? A) A tool for encrypting network traffic B) Software that creates and manages virtual machines C) A hardware firewall D) A password management system Answer: B Explanation: A hypervisor is a software layer that enables virtualization by allowing multiple virtual machines to run on a single physical host. Question 78: What is a common cloud service model that provides virtualized computing resources over the internet? A) SaaS B) IaaS C) PaaS D) DaaS Answer: B Explanation: IaaS (Infrastructure as a Service) provides virtualized computing resources over the internet, including servers, storage, and networking. Question 79: Which of the following is a major security challenge in cloud environments? A) Physical hardware maintenance B) Misconfigured cloud resources C) Limited storage capacity D) Slow network speeds Answer: B Explanation: Misconfigured cloud resources can expose sensitive data and lead to security breaches, making proper configuration a critical challenge. Question 80: What does compliance in ethical hacking typically involve? A) Ignoring legal regulations B) Following legal, regulatory, and industry standards C) Exploiting vulnerabilities without disclosure D) Disabling security features Answer: B Explanation: Compliance involves adhering to legal and industry standards, ensuring that ethical hacking practices meet established security requirements. Question 81: Which ethical hacking certification focuses on hands-on penetration testing skills? A) CCNA B) OSCP C) CISSP D) CompTIA Security+ Answer: B Explanation: The OSCP (Offensive Security Certified Professional) certification emphasizes practical, hands-on penetration testing skills.
Question 82: Which network protocol is essential for the operation of the Domain Name System? A) SMTP B) HTTP C) UDP D) SNMP Answer: C Explanation: UDP (User Datagram Protocol) is often used by the DNS due to its low overhead and speed, although TCP can also be used when reliability is required. Question 83: What is the main function of DHCP in a network? A) Encrypting data B) Dynamically assigning IP addresses C) Routing network traffic D) Filtering unwanted emails Answer: B Explanation: DHCP automatically assigns IP addresses and other network configuration details to devices, simplifying network management. Question 84: Which of the following is an example of a social engineering attack? A) SQL injection B) Phishing email C) Buffer overflow D) DNS spoofing Answer: B Explanation: Phishing emails are a common form of social engineering where attackers trick users into revealing confidential information. Question 85: What does the term “gray hat hacker” refer to? A) A hacker who only works at night B) A hacker who sometimes violates laws but without malicious intent C) A hacker with no technical skills D) A hacker who works solely for financial gain Answer: B Explanation: Gray hat hackers operate in a legal and ethical gray area, sometimes engaging in unauthorized activities but typically without harmful intent. Question 86: Which of the following is an important legal responsibility of an ethical hacker? A) Ignoring client policies B) Operating without permission C) Obtaining proper authorization before testing D) Disclosing vulnerabilities publicly immediately Answer: C Explanation: Ethical hackers must always obtain proper authorization before conducting any tests to ensure their activities are legal and compliant. Question 87: Which tool is primarily used for monitoring and analyzing network traffic in real time? A) Burp Suite
D) To disconnect the network Answer: B Explanation: A reverse shell initiates a connection from the target back to the attacker, bypassing firewall restrictions that may block incoming connections. Question 93: Which of the following is a common method for detecting vulnerabilities in web applications? A) Running a DDoS attack B) Fuzzing inputs to discover unexpected behaviors C) Encrypting all web traffic D) Disabling authentication Answer: B Explanation: Fuzzing involves sending a wide range of unexpected inputs to a web application to identify vulnerabilities and areas where the system may crash or behave unpredictably. Question 94: What is the main purpose of the incident response lifecycle? A) To plan new network infrastructures B) To detect, contain, eradicate, and recover from security incidents C) To advertise cybersecurity products D) To develop new software applications Answer: B Explanation: The incident response lifecycle is a structured approach to handling security incidents, ensuring they are detected, contained, eradicated, and properly recovered from. Question 95: Which of the following is essential when creating an ethical hacking report? A) Withholding all technical details B) Providing clear findings and actionable recommendations C) Ignoring legal requirements D) Publishing the report publicly without redaction Answer: B Explanation: An effective ethical hacking report should detail the findings and offer clear, actionable recommendations to improve security while protecting sensitive information. Question 96: What does the term “exploit” refer to in the context of cybersecurity? A) A method of data encryption B) A piece of code that takes advantage of a vulnerability C) A system backup tool D) A user authentication process Answer: B Explanation: An exploit is a piece of software or code designed to take advantage of a vulnerability in order to cause unintended or unanticipated behavior in a system. Question 97: Which of the following is a characteristic of a robust encryption algorithm? A) Easily reversible without a key B) Resistant to brute force attacks C) Based solely on symmetric keys D) Uses outdated protocols
Answer: B Explanation: A robust encryption algorithm is designed to resist brute force attacks, ensuring that even with significant computational power, the encrypted data remains secure. Question 98: Which network device is used to manage data traffic within a local area network? A) Router B) Switch C) Modem D) Firewall Answer: B Explanation: Switches manage data traffic within a LAN by directing data to the correct device, improving network efficiency. Question 99: What is the significance of using encryption in web communications? A) It increases website load times B) It secures data from interception and eavesdropping C) It reduces the need for authentication D) It disables cookies Answer: B Explanation: Encryption secures data transmitted over the internet by converting it into an unreadable format, thereby preventing interception by unauthorized parties. Question 100: Which phase of ethical hacking involves the documentation and reporting of discovered vulnerabilities? A) Scanning B) Exploitation C) Reporting D) Reconnaissance Answer: C Explanation: The reporting phase involves compiling the findings of the test, including vulnerabilities and recommended mitigations, in a comprehensive report. Question 101: Which tool is commonly used for managing and analyzing log data in security operations? A) SIEM B) Aircrack-ng C) Burp Suite D) Nmap Answer: A Explanation: SIEM systems are designed to collect, aggregate, and analyze log data from various sources to monitor and respond to security events. Question 102: Which protocol provides a secure encrypted channel over an unsecured network? A) FTP B) HTTP C) SSL/TLS D) Telnet