Courseiva

Certified Ethical Hacker CEH (CEH) — Questions 226–300

913 questions total · 13pages · All types, answers revealed

Page 3

Page 4 of 13

Page 5
226
Multi-Selectmedium

Which TWO of the following are valid enumeration techniques? (Select 2)

Select 2 answers
A.LDAP enumeration
B.NetBIOS enumeration using nbtstat
C.ARP poisoning
D.DNS cache poisoning
E.ICMP flooding
AnswersA, B

LDAP enumeration queries directory services.

Why this answer

LDAP enumeration is a valid enumeration technique because it involves querying a Lightweight Directory Access Protocol (LDAP) service to extract information about users, groups, computers, and other objects from a directory service like Microsoft Active Directory. Attackers use tools such as ldapsearch or ADExplorer to anonymously or authenticatedly browse the directory tree, revealing usernames, group memberships, and organizational units, which are critical for planning further attacks.

Exam trap

EC-Council often tests the distinction between active reconnaissance techniques (like enumeration) and attack techniques (like ARP poisoning or DoS), so candidates mistakenly select options that are network attacks rather than information-gathering methods.

227
MCQmedium

An attacker uses Reaver against a Wi-Fi network. What vulnerability is the attacker primarily exploiting?

A.Weak WPA2 passphrase
B.WPS PIN vulnerability
C.Deauthentication attack
D.IV weakness in WEP
AnswerB

Reaver exploits a critical design flaw within the Wi-Fi Protected Setup (WPS) protocol, specifically its PIN authentication mechanism. The 8-digit WPS PIN is validated in two halves, allowing an attacker to brute-force the first four digits and then the last three (the eighth digit is a checksum) independently. This significantly reduces the total number of attempts required from 10^8 to approximately 10^4 + 10^3, making the PIN susceptible to a practical brute-force attack that reveals the WPA2 PSK.

Why this answer

Reaver is designed to exploit the WPS PIN brute-force vulnerability, where an attacker can recover the WPS PIN and then derive the WPA/WPA2 PSK.

228
MCQeasy

Which type of malware is designed to encrypt files on a victim's system and demand payment for the decryption key?

A.Spyware
B.Adware
C.Keylogger
D.Ransomware
AnswerD

Ransomware encrypts victim files using symmetric or asymmetric cryptography and holds the decryption key hostage, demanding payment for its release. This matches the stem's encryption-plus-payment mechanism precisely, distinguishing it from worms, trojans or spyware, which do not extort via encryption.

Why this answer

Ransomware is the correct answer because it specifically encrypts files on the victim's system using a symmetric encryption algorithm (e.g., AES) and then demands a ransom payment, typically in cryptocurrency, to provide the decryption key. This distinguishes it from other malware types that do not perform file encryption for extortion.

Exam trap

The trap here is that candidates may confuse ransomware with other malware types that also cause damage or demand payment, but only ransomware specifically encrypts files for extortion, not for data theft or advertising.

How to eliminate wrong answers

Option A is wrong because spyware is designed to covertly gather information about the user, such as keystrokes or browsing habits, without encrypting files or demanding payment. Option B is wrong because adware displays unwanted advertisements and may track user behavior, but it does not encrypt files or demand a ransom. Option C is wrong because a keylogger records keystrokes to capture sensitive data like passwords, but it does not encrypt files or demand payment for decryption.

229
Multi-Selectmedium

Which TWO of the following are techniques used in session hijacking attacks? (Choose two.)

Select 2 answers
A.TCP sequence prediction
B.MAC flooding
C.Cookie theft
D.DNS spoofing
E.ARP poisoning
AnswersA, C

TCP sequence prediction is a network-layer session hijacking technique where an attacker attempts to guess the next valid sequence number and acknowledgment number in an ongoing TCP connection. By successfully predicting these numbers, the attacker can inject spoofed packets into the session, impersonating one of the legitimate communicating parties. This allows them to take control of the established connection, send malicious commands, or terminate the session without authorization.

Why this answer

TCP sequence prediction (A) is a classic session hijacking technique: the attacker sniffs or guesses the next expected TCP sequence and acknowledgment numbers of an established connection, then injects forged packets that the server accepts as belonging to the legitimate session. Cookie theft (C) is also a session hijacking technique because session cookies carry the session ID; if an attacker obtains them via XSS, sniffing, or malware, they can replay the cookie to impersonate the authenticated user without knowing credentials. MAC flooding (B) is a Layer 2 switch CAM-table overflow attack that can enable sniffing, but it is not itself a session hijacking technique.

DNS spoofing (D) redirects name resolution to a rogue IP address, which supports phishing or man-in-the-middle but does not hijack an existing session. ARP poisoning (E) is a Layer 2 man-in-the-middle enabler that can facilitate session hijacking, but it is not itself classified as a session hijacking technique.

Exam trap

The trap here is confusing network-level attacks like ARP poisoning or DNS spoofing with session hijacking, which specifically requires taking over an authenticated session by manipulating TCP sequence numbers or stealing session tokens.

230
Multi-Selecthard

Which THREE of the following are characteristics of a DNS amplification DDoS attack? (Select three.)

Select 3 answers
A.Spoofs the source IP address of the victim
B.Amplifies traffic by sending small queries that generate large responses
C.Uses open DNS resolvers
D.Exploits the TCP handshake process
E.Floods the target with small ICMP packets
AnswersA, B, C

In a DNS amplification attack, the attacker crafts DNS queries but sets the source IP address of these queries to that of the intended victim. This IP spoofing is fundamental because it ensures that when the legitimate, but often misconfigured, DNS resolvers respond to these queries, the large response packets are directed back to the victim's IP address, effectively flooding their network interface. Without source IP spoofing, the amplified traffic would return to the attacker, defeating the purpose of the denial-of-service attack.

Why this answer

In a DNS amplification DDoS attack, the attacker spoofs the source IP address of the victim in DNS queries sent to open resolvers. This causes the resolvers to send their large responses to the victim, not the attacker, thereby directing the amplified traffic at the target. Without IP spoofing, the attack would not be able to flood the victim with responses.

Exam trap

EC-CEH often tests the distinction between UDP-based amplification attacks and TCP-based attacks; the trap here is that candidates may confuse DNS amplification with a SYN flood or other TCP-based attacks, mistakenly selecting Option D.

231
Multi-Selectmedium

During a web application test, the tester finds that the application includes user-supplied file names in include() statements. Which TWO of the following are indicators of a Remote File Inclusion (RFI) vulnerability? (Choose TWO.)

Select 2 answers
A.The application includes files from http://attacker.com/shell.txt
B.The application includes files with '..' and '/' sequences
C.The application includes /etc/passwd in the response
D.The application includes files with .inc extension
E.The application allows inclusion of files from external FTP servers
AnswersA, E

This scenario directly indicates Remote File Inclusion (RFI) because the application is fetching and executing or displaying content from an external, attacker-controlled HTTP server (http://attacker.com). RFI vulnerabilities allow an attacker to inject a remote URL into an include statement, causing the web server to download and process the specified file. This can lead to arbitrary code execution, data exfiltration, or defacement if the included file contains malicious scripts.

Why this answer

RFI allows inclusion of remote files via HTTP/HTTPS URLs. Directory traversal with ../ is more typical of LFI. Inclusion of local files like /etc/passwd indicates LFI, not RFI.

232
MCQmedium

An incident responder notices unusual outbound traffic from a host that is communicating with an external IP on port 4444. The traffic appears to be encrypted. Which tool could be used to initiate a connection to that external IP to gather a banner for service identification?

A.traceroute
B.nslookup
C.Telnet
D.ping
AnswerC

Telnet is an application-layer protocol and command-line utility that establishes a raw Transmission Control Protocol (TCP) connection to a specified port on a remote host. Upon successful connection, many network services are configured to immediately send an initial banner containing information such as the service type and version. This direct, interactive connection capability makes Telnet an effective tool for manually identifying unknown services by observing these initial banners.

Why this answer

Telnet can be used to connect to any TCP port, including port 4444, to manually interact with a service and retrieve its banner. Banners often reveal the service name, version, and other identifying information, which is critical for footprinting and reconnaissance. Even though the traffic is encrypted, the initial banner may be sent in cleartext before encryption begins, or the connection attempt itself can reveal the service type.

Exam trap

EC-Council often tests the misconception that Telnet is only for remote terminal access on port 23, but the exam expects you to know Telnet can connect to any TCP port for banner grabbing.

How to eliminate wrong answers

Option A is wrong because traceroute is used to map the network path to a destination by manipulating TTL values, not to connect to a specific port or retrieve a banner. Option B is wrong because nslookup is a DNS query tool used to resolve domain names to IP addresses or query DNS records; it cannot establish a TCP connection to a port. Option D is wrong because ping uses ICMP Echo Request/Reply messages and operates at the network layer; it cannot connect to a TCP port or retrieve application-layer banners.

233
MCQeasy

Which type of malware is characterized by being able to change its code signature each time it replicates to evade signature-based detection?

A.Boot sector virus
B.Polymorphic virus
C.Macro virus
D.Worm
AnswerB

A polymorphic virus is specifically designed to evade detection by antivirus software through its ability to change its internal structure and signature with each new infection. It achieves this by encrypting its own code and using a different decryption routine or "mutation engine" for each instance. This constant mutation of its executable code and decryption stub makes it extremely difficult for traditional signature-based antivirus scanners to identify it consistently, as its binary pattern is never the same.

Why this answer

Polymorphic virus is correct because it mutates its code signature each time it replicates, using a mutation engine to generate new decryption routines while keeping the payload intact. This allows it to evade signature-based detection, as each copy appears different to antivirus software that relies on static signatures.

Exam trap

The trap here is that candidates often confuse 'polymorphic' with 'metamorphic'—polymorphic changes the decryption routine while keeping the payload constant, whereas metamorphic rewrites the entire code—or they mistakenly think all self-replicating malware (like worms) are polymorphic by default.

How to eliminate wrong answers

Option A is wrong because a boot sector virus infects the master boot record (MBR) and does not inherently change its code signature upon replication; it relies on infecting boot sectors rather than polymorphism. Option C is wrong because a macro virus infects documents via macros (e.g., in Microsoft Office) and typically does not change its signature per replication; it spreads by executing macro code, not by mutating. Option D is wrong because a worm is a self-replicating malware that spreads across networks without requiring a host file, but it does not necessarily change its code signature each time it replicates; worms may use other evasion techniques but are not defined by polymorphism.

234
Multi-Selecthard

Which THREE of the following are cryptanalysis attacks that target hash functions? (Choose three.)

Select 3 answers
A.Man-in-the-middle attack
B.Preimage attack
C.Collision attack
D.Birthday attack
E.Dictionary attack
AnswersB, C, D

A preimage attack is a cryptanalytic technique where an attacker, given a specific hash output (H), attempts to find an input message (M) such that H(M) = H. This directly violates the one-way property of a secure hash function, which dictates that it should be computationally infeasible to reverse the hashing process. Successfully performing a preimage attack compromises the integrity and authenticity guarantees provided by the hash, as an attacker could forge a message with a desired hash.

Why this answer

Birthday attack exploits hash collisions, preimage attack finds an input that hashes to a given output, and collision attack finds two inputs with same hash. Man-in-the-middle is not specific to hash functions, and dictionary attack is a password cracking technique, not pure cryptanalysis.

235
MCQmedium

During a penetration test, you execute `theHarvester -d example.com -b google,linkedin`. What type of data is this tool primarily designed to collect?

A.Password hashes and user credentials from compromised databases
B.Email addresses, subdomains, and employee names from public sources
C.DNS zone transfer information and TXT records
D.Vulnerability scan results from Nessus and OpenVAS
AnswerB

theHarvester excels at collecting crucial Open Source Intelligence (OSINT) such as email addresses, subdomains, and employee names by leveraging various public data sources. It systematically queries search engines like Google and Bing, social networks like LinkedIn, and specialized platforms like Shodan or Hunter.io, providing valuable initial reconnaissance data for penetration testers. This data is instrumental for crafting targeted phishing campaigns or identifying potential attack surfaces.

Why this answer

TheHarvester is an open-source intelligence (OSINT) tool designed to gather publicly available information from search engines, PGP key servers, and social platforms. The command `-d example.com -b google,linkedin` instructs it to scrape Google and LinkedIn for email addresses, subdomains, and employee names associated with the target domain, which are classic footprinting data used in reconnaissance.

Exam trap

The trap here is that candidates confuse theHarvester's passive OSINT collection with active reconnaissance tools like `dnsrecon` (for zone transfers) or `nmap` (for vulnerability scanning), leading them to select options C or D.

How to eliminate wrong answers

Option A is wrong because theHarvester does not query compromised databases or extract password hashes; that is the domain of tools like Have I Been Pwned or hashcat. Option C is wrong because DNS zone transfer information and TXT records are obtained via `dig` or `nslookup` with specific query types (AXFR, TXT), not through search engine scraping. Option D is wrong because vulnerability scan results from Nessus and OpenVAS are generated by active scanning tools, not by passive OSINT collection performed by theHarvester.

236
MCQeasy

In the shared responsibility model for cloud computing, which of the following is typically the customer's responsibility?

A.Physical security of data centers
B.Hypervisor security
C.Network infrastructure security
D.Configuration of IAM roles and permissions
AnswerD

Customers are directly responsible for the configuration of Identity and Access Management (IAM) roles and permissions within their cloud environment. This involves defining users, groups, and roles, assigning appropriate permissions based on the principle of least privilege, and regularly auditing access policies. Proper IAM configuration is critical for controlling who can access what resources and is a primary customer security control.

Why this answer

The customer is responsible for security IN the cloud, including configuring IAM policies, encryption, and access controls.

237
MCQmedium

A web application allows users to upload profile pictures. An attacker uploads a file named "profile.php" containing malicious PHP code. When the attacker visits the uploaded file's URL, the code executes. Which vulnerability is being exploited?

A.Directory traversal
B.Command injection
C.File upload vulnerability
D.Stored XSS
AnswerC

A file upload vulnerability arises when a web application permits users to upload files without sufficient validation of their type, content, or proper handling of their storage and execution. The ability for an attacker to upload a malicious PHP file, which is then executed by the web server, perfectly exemplifies this vulnerability. This allows for remote code execution (RCE) on the server, directly matching the described attack where a 'profile picture' turns out to be an executable script.

Why this answer

The application fails to validate the file type or restrict execution, allowing a malicious PHP file to be uploaded and executed on the server, which is a classic file upload vulnerability leading to remote code execution.

238
MCQmedium

A security analyst is performing reconnaissance on a target domain and wants to discover all subdomains using DNS enumeration. Which of the following commands would be MOST effective for performing a DNS zone transfer attempt?

A.dig example.com ANY
B.nslookup -type=ns example.com
C.theHarvester -d example.com -l 500 -b google
D.dnsrecon -d example.com -t axfr
AnswerD

The `dnsrecon` utility, when invoked with the `-t axfr` flag, explicitly instructs the tool to attempt an AXFR (Asynchronous Full Zone Transfer) against the target domain. This command is specifically designed to enumerate all DNS records within a zone by requesting the entire zone file from the authoritative name servers. If successful due to misconfiguration, this provides a comprehensive map of the domain's infrastructure, including hostnames and IP addresses, which is highly valuable for reconnaissance.

Why this answer

The `-t axfr` flag in `dnsrecon` specifically attempts a DNS zone transfer (AXFR query) against the target domain's authoritative nameservers. A successful zone transfer returns all DNS records, including all subdomains, making it the most direct and effective method for subdomain enumeration via DNS zone transfer.

Exam trap

The trap here is that candidates often confuse general DNS queries (like `dig ANY` or `nslookup -type=ns`) with the specific zone transfer request (AXFR), assuming any DNS enumeration command can retrieve the full zone file.

How to eliminate wrong answers

Option A is wrong because `dig example.com ANY` queries for all record types but does not attempt a zone transfer; it only returns cached or non-authoritative data, not the full zone. Option B is wrong because `nslookup -type=ns example.com` only retrieves the nameserver records for the domain, not the entire zone file; it does not perform a zone transfer. Option C is wrong because `theHarvester -d example.com -l 500 -b google` uses search engines (Google) to gather subdomains via public sources, not DNS zone transfer; it relies on passive reconnaissance rather than direct DNS enumeration.

239
MCQmedium

A penetration tester runs the following Nmap command: nmap -sS -sV -O -p 22,80,443,3389 192.168.1.0/24. Which of the following BEST describes what this scan will accomplish?

A.Perform a UDP scan on the four specified ports and identify running services
B.Perform an aggressive scan of all open ports and enumerate SMB shares
C.Perform a TCP SYN scan on four ports, detect service versions, and attempt OS fingerprinting
D.Perform a full TCP connect scan with UDP service detection on all ports
AnswerC

This statement accurately describes the Nmap command's functionality. The -sS flag initiates a TCP SYN scan, a common and relatively stealthy method for port scanning that avoids completing the full TCP handshake. The -sV flag enables service version detection, attempting to determine the exact software and version running on open TCP ports. Additionally, the -O flag instructs Nmap to attempt OS fingerprinting, identifying the target's operating system. Finally, the -p 22,80,443,3389 option restricts the scan to precisely these four specified TCP ports.

Why this answer

The command uses the -sS flag for a TCP SYN scan (stealth scan), -sV for service version detection, and -O for OS fingerprinting, targeting only the four specified ports (22, 80, 443, 3389) across the 192.168.1.0/24 subnet. This combination performs a half-open TCP scan on those ports, probes open ports to identify service versions, and attempts to determine the operating system based on TCP/IP stack responses.

Exam trap

The trap here is that candidates often confuse the -sS (SYN scan) with -sT (TCP connect scan) or -sU (UDP scan), and they may incorrectly assume that -sV and -O automatically scan all ports or perform additional enumeration like SMB sharing, when in fact the port range is explicitly limited by the -p option.

How to eliminate wrong answers

Option A is wrong because -sS specifies a TCP SYN scan, not a UDP scan; a UDP scan would use -sU, and the command does not include that flag. Option B is wrong because while -sV and -O make the scan somewhat aggressive, the command does not enumerate SMB shares (which would require scripts like smb-enum-shares via -sC or --script), and it only scans four specific ports, not all open ports. Option D is wrong because -sS is a SYN scan, not a full TCP connect scan (which would use -sT), and there is no UDP service detection (which would require -sU); also, the scan is limited to four ports, not all ports.

240
MCQmedium

An attacker attempts to enumerate valid email users by connecting to an SMTP server and issuing the following commands: EHLO example.com, VRFY root, VRFY admin, VRFY user1. Which SMTP enumeration technique is being used?

A.RCPT TO
B.MAIL FROM
C.EXPN
D.VRFY
AnswerD

The VRFY (Verify) command is an SMTP instruction specifically designed to query the mail server about the existence and validity of a particular mailbox name. A compliant server will respond by either confirming the user's full name and mailbox, or by indicating that the user does not exist. This direct feedback mechanism makes VRFY an ideal and explicit command for enumerating valid user accounts on a mail server.

Why this answer

The VRFY command is specifically designed to verify whether a mailbox exists on an SMTP server. By issuing VRFY followed by usernames (root, admin, user1), the attacker can enumerate valid email users based on the server's responses (e.g., 250 or 251 for valid, 550 for invalid). This is a classic SMTP user enumeration technique.

Exam trap

The trap here is that candidates confuse VRFY with EXPN, thinking both verify users, but EXPN expands aliases/groups while VRFY checks individual mailboxes.

How to eliminate wrong answers

Option A is wrong because RCPT TO is used to specify a recipient for a mail message during the SMTP DATA phase, not to verify user existence in isolation; it can be used for enumeration but requires a MAIL FROM first and is not the command shown. Option B is wrong because MAIL FROM identifies the sender of an email, not the recipient, and does not directly enumerate users. Option C is wrong because EXPN expands a mailing list or alias, returning membership details, not verifying individual user accounts like VRFY does.

241
Multi-Selectmedium

Which TWO of the following are common attack vectors for IoT devices? (Select two)

Select 2 answers
A.SQL injection
B.Default credentials
C.Insecure protocols (e.g., plain MQTT)
D.Side-channel attacks
E.ARP spoofing
AnswersB, C

Many IoT devices are manufactured with default usernames and passwords that are either hardcoded, easily guessable, or publicly known. Users often neglect to change these factory settings, creating a significant vulnerability that persists throughout the device's lifecycle. Attackers can leverage these weak or default credentials to gain unauthorized access, take control of the device, or integrate it into botnets without needing complex exploits.

Why this answer

Option B (Default credentials) is correct because IoT devices are frequently shipped with factory-set usernames and passwords (e.g., admin/admin, root/root) that users never change, making them trivially exploitable by botnets like Mirai. Option C (Insecure protocols such as plain MQTT) is correct because IoT devices often communicate over unencrypted protocols like MQTT on port 1883, CoAP, or HTTP, exposing credentials and telemetry to eavesdropping and man-in-the-middle attacks. Option A (SQL injection) is not a typical IoT attack vector since most IoT devices do not expose SQL databases or web forms backed by relational databases.

Option D (Side-channel attacks) requires physical proximity and specialized equipment, making it far less common than credential and protocol weaknesses in IoT threat landscapes. Option E (ARP spoofing) is a general LAN-layer attack applicable to any networked host, not a vector specific to or characteristic of IoT devices.

Exam trap

CEH often tests whether candidates pick generic network attacks (ARP spoofing, SQLi) as 'IoT vectors' when the exam expects IoT-specific weaknesses like default credentials and insecure protocols.

242
MCQhard

An analyst captures the following output from a wireless adapter: `[00:1A:2B:3C:4D:5E] 54 Mbps WPA2 CCMP PSK`. The analyst suspects a malicious rogue AP is impersonating a legitimate network. Which of the following indicators would MOST strongly confirm a rogue AP?

A.The channel number is different from the legitimate AP
B.The SSID is broadcasted with the same name as the corporate network
C.The BSSID matches a known manufacturer, but the signal strength is unusually high
D.The encryption type is WPA2 with CCMP
AnswerC

This combination is a strong indicator of a rogue AP. The Basic Service Set Identifier (BSSID), which is the MAC address of the AP, contains an Organizationally Unique Identifier (OUI) that identifies the manufacturer. While a rogue AP might spoof an OUI to appear legitimate, an unusually high signal strength for an AP not registered within the network's inventory strongly suggests a physically close, unauthorized device. This discrepancy between a potentially legitimate-looking identifier and an anomalous physical presence is highly suspicious.

Why this answer

A rogue AP often has a higher signal strength than expected, especially if it's placed closer to users. Additionally, a mismatch between the BSSID and the known legitimate AP can indicate spoofing.

243
MCQeasy

Which of the following is a well-known attack against the MD5 hash function that allows two different inputs to produce the same hash value?

A.Birthday attack
B.Replay attack
C.Downgrade attack
D.Dictionary attack
AnswerA

The Birthday attack leverages the mathematical 'birthday paradox' to significantly reduce the computational effort required to find two distinct inputs that produce the same hash output (a collision). For hash functions like MD5, which has a 128-bit output, finding a collision through brute force would theoretically require 2^64 attempts, making it practically feasible. This vulnerability undermines the integrity and collision resistance properties critical for cryptographic security, as demonstrated against MD5.

Why this answer

The birthday attack exploits the birthday paradox in probability theory to find two different inputs that produce the same MD5 hash value (a collision) with significantly less effort than a brute-force preimage attack. For an n-bit hash, the birthday attack requires only about 2^(n/2) operations, making MD5's 128-bit output vulnerable to collisions in roughly 2^64 attempts, which is computationally feasible today.

Exam trap

The trap here is that candidates often confuse the birthday attack with a dictionary attack because both involve generating many inputs, but the birthday attack specifically targets collision resistance (two different inputs, same hash) while a dictionary attack targets preimage resistance (finding an input that matches a given hash).

How to eliminate wrong answers

Option B is wrong because a replay attack involves intercepting and retransmitting valid data transmissions (e.g., captured authentication tokens) to impersonate a user, not finding hash collisions. Option C is wrong because a downgrade attack forces a system to fall back to a weaker, less secure protocol or cipher (e.g., SSL stripping to HTTP), not exploiting hash function weaknesses. Option D is wrong because a dictionary attack uses a precomputed list of likely passwords or phrases to guess a password or find a preimage, but it does not find collisions between two arbitrary inputs.

244
MCQmedium

A security analyst is investigating a potential SMB-based attack. They notice unusual traffic on port 445 from a host running `enum4linux`. Which of the following enumeration actions could `enum4linux` perform that would generate such traffic?

A.Scanning for open ports on the target system
B.Enumerating SMB shares and user accounts
C.Performing a DNS zone transfer
D.Querying SNMP MIB values using community strings
AnswerB

`enum4linux` is a dedicated Linux command-line utility specifically engineered to enumerate SMB (Server Message Block) information from Windows and Samba systems. It leverages the SMB protocol, primarily over TCP port 445, to gather critical intelligence such as user accounts, group memberships, available network shares, and password policies. This direct interaction with SMB services makes it the correct tool for detailed reconnaissance of SMB-based targets.

Why this answer

enum4linux is a tool specifically designed for enumerating information from Windows and Samba systems via the SMB protocol (port 445). It can list SMB shares, retrieve user account lists, and gather other system details by querying the SMB service, which directly generates traffic on port 445.

Exam trap

The trap here is that candidates may confuse enum4linux with a general-purpose scanning tool, but it is strictly an SMB enumeration utility that relies on SMB-specific RPC calls over port 445.

How to eliminate wrong answers

Option A is wrong because scanning for open ports is typically performed by tools like Nmap, not enum4linux, which operates on already discovered SMB services. Option C is wrong because DNS zone transfers use TCP/UDP port 53 and are performed by tools like dig or nslookup, not enum4linux. Option D is wrong because querying SNMP MIB values uses UDP port 161 and community strings, which is the function of SNMP enumeration tools like snmpwalk, not enum4linux.

245
Multi-Selectmedium

Which TWO of the following are examples of amplification attacks used in DDoS?

Select 2 answers
A.DNS amplification
B.NTP amplification
C.Slowloris
D.SYN flood
E.Ping of Death
AnswersA, B

DNS amplification is a type of Distributed Denial-of-Service (DDoS) attack that leverages open DNS resolvers. An attacker spoofs the victim's IP address and sends small DNS queries to numerous vulnerable DNS servers. These servers then respond with significantly larger DNS records, often hundreds of times the size of the initial query, directing this amplified traffic to the spoofed victim, overwhelming their network bandwidth. This attack exploits the stateless nature of UDP.

Why this answer

DNS amplification is a classic DDoS amplification attack where an attacker sends a small DNS query (e.g., an ANY or TXT record request) with a spoofed source IP (the victim's address) to an open DNS resolver. The resolver responds with a much larger response (up to 50x the query size), flooding the victim with traffic. This exploits the UDP protocol's lack of handshake and the resolver's willingness to respond to any source.

Exam trap

The CEH exam often tests the distinction between 'amplification attacks' (which multiply traffic via a small request to a third-party server) and 'flood attacks' (which directly overwhelm with many packets of similar size), so candidates mistakenly classify SYN flood or Ping of Death as amplification when they are not.

246
MCQeasy

Which of the following malware types is characterized by self-replication without requiring a host file or program, and spreading across networks automatically?

A.Worm
B.Trojan horse
C.Virus
D.Ransomware
AnswerA

Worms are a class of standalone malware that self-replicate and propagate across computer networks without requiring a host program or user intervention. They exploit network vulnerabilities or misconfigurations to spread automatically from one system to another, consuming bandwidth and system resources. This autonomous propagation is their defining characteristic, enabling rapid infection across interconnected devices.

Why this answer

A worm is a standalone malware type that self-replicates and spreads across networks automatically without needing a host file or program. It exploits network vulnerabilities or uses social engineering to propagate, often consuming bandwidth and system resources.

Exam trap

The trap here is that candidates confuse a worm with a virus, assuming both require a host file, but worms are standalone and self-propagating via network vulnerabilities.

How to eliminate wrong answers

Option B is wrong because a Trojan horse disguises itself as legitimate software but does not self-replicate or spread automatically; it relies on user execution. Option C is wrong because a virus requires a host file or program to attach to and replicate, unlike a worm which is self-contained. Option D is wrong because ransomware focuses on encrypting files for ransom and does not inherently self-replicate or spread without user interaction or additional mechanisms.

247
MCQhard

A web server is configured with WebDAV and allows PUT requests. An attacker uploads a .asp file and accesses it to execute code. Which tool or method is most directly associated with exploiting this misconfiguration?

A.SQL injection
B.File upload vulnerability
C.Directory brute forcing
D.Cross-site scripting (XSS)
AnswerB

The ability to upload and execute arbitrary files via WebDAV PUT requests constitutes a critical file upload vulnerability. WebDAV's PUT method allows clients to create or replace resources on the server. If this functionality is enabled without strict access controls, file type validation, or execution restrictions, an attacker can upload malicious scripts (e.g., web shells) and subsequently execute them, leading to remote code execution on the server.

Why this answer

WebDAV with PUT enabled allows attackers to upload arbitrary files, including web shells, leading to remote code execution.

248
MCQmedium

During a penetration test, you need to enumerate all users and groups from a Windows domain controller. Which tool is BEST suited for this task?

A.ldapsearch
B.nbtstat
C.smbclient
D.snmpwalk
AnswerA

ldapsearch is the correct command-line utility for querying LDAP (Lightweight Directory Access Protocol) directories, which Active Directory heavily utilizes for storing user, group, and computer information. During a penetration test, it allows an attacker to enumerate users, groups, and their attributes by directly querying a domain controller. This tool is indispensable for mapping out an organization's user base and understanding its structure within an Active Directory environment.

Why this answer

ldapsearch is the best tool for enumerating users and groups from a Windows domain controller because it directly queries the Active Directory LDAP directory service (port 389 or 636 for LDAPS) using standard LDAP search filters. This allows retrieval of all user and group objects, including their attributes, without relying on NetBIOS or SMB file sharing. It is the most efficient and comprehensive method for structured directory enumeration in a domain environment.

Exam trap

The trap here is that candidates often confuse nbtstat or smbclient as tools for user enumeration because they associate them with Windows networking, but neither can query Active Directory's LDAP directory for user and group objects.

How to eliminate wrong answers

Option B (nbtstat) is wrong because it only resolves NetBIOS names to IP addresses and displays local NetBIOS name tables; it cannot enumerate users or groups from a domain controller. Option C (smbclient) is wrong because it is a file-sharing client for SMB/CIFS protocol, used to access shared files and printers, not to query directory services for user and group objects. Option D (snmpwalk) is wrong because it retrieves SNMP MIB data from network devices, which does not include Active Directory user or group information unless specifically configured with custom MIBs, which is not standard for domain controllers.

249
MCQmedium

A web application allows users to upload profile pictures. The application uses the filename provided by the user to save the file on the server. An attacker uploads a file named 'malicious.php%00.png' and the server saves it as 'malicious.php'. Which vulnerability is being exploited?

A.Directory traversal
B.Command injection
C.Null byte injection
D.Cross-Site Scripting (XSS)
AnswerC

Null byte injection exploits the \x00 (or %00 in URL-encoded form) character, which is interpreted as a string terminator by many C-based functions and some older APIs. When used in a filename like "filename.php%00.jpg", the server's file type validation might see ".jpg" due to string processing, but the underlying file system or save function truncates the name at the null byte, resulting in "filename.php". This allows an attacker to upload a malicious file with a forbidden extension by effectively tricking the filter.

Why this answer

Null byte injection exploits the fact that in some programming languages (like C or older PHP versions), a null byte (%00) terminates a string. The application saves the file using the user-supplied filename, but when it processes 'malicious.php%00.png', the null byte causes the string to be truncated to 'malicious.php', allowing the attacker to upload a PHP file that can be executed.

Exam trap

CEH often tests the confusion between null byte injection and directory traversal, but the key is that null byte injection truncates strings, while directory traversal manipulates paths.

How to eliminate wrong answers

Option A is wrong because directory traversal involves manipulating file paths to access directories outside the intended scope (e.g., ../../etc/passwd), not truncating filenames. Option B is wrong because command injection involves executing arbitrary system commands, not file upload manipulation. Option D is wrong because XSS involves injecting client-side scripts, not server-side file handling.

250
MCQeasy

A security analyst is reviewing a web server log and notices a large number of requests with the User-Agent string 'sqlmap/1.5.2#stable'. The requests contain various payloads in the 'id' parameter, such as '1' AND 1=1--' and '1' UNION SELECT null, version()--'. The analyst concludes that an automated SQL injection tool is being used against the application. Which type of attack is being performed?

A.Command injection
B.Cross-site scripting (XSS)
C.SQL injection
D.LDAP injection
AnswerC

The payloads contain SQL keywords like 'UNION SELECT' and 'AND 1=1', which are classic SQL injection attempts to manipulate database queries. The User-Agent 'sqlmap' indicates an automated tool for SQL injection. This directly matches the scenario, where the attacker is trying to extract or modify database information.

Why this answer

The presence of SQL keywords in the payloads and the sqlmap User-Agent clearly indicate an SQL injection attack. The other options represent different injection types that do not match the observed payloads or the tool used.

Exam trap

The trap here is assuming any injection with special characters is XSS, but the SQL syntax and tool signature point to SQL injection.

251
MCQhard

A web application has an endpoint that takes a URL parameter and fetches content from that URL, returning it to the user. An attacker supplies 'file:///etc/passwd' and reads the server's passwd file. Which vulnerability is this?

A.Command injection
B.Remote File Inclusion (RFI)
C.Server-Side Request Forgery (SSRF)
D.Directory traversal
AnswerC

Server-Side Request Forgery (SSRF) occurs when a web application is coerced into making an HTTP request to an arbitrary URL specified by an attacker. This vulnerability allows an attacker to force the server to connect to internal or external systems, often bypassing firewalls or accessing sensitive internal services. The use of the file:// protocol in the URL parameter is a classic indicator, enabling the server to fetch local files from its own filesystem, effectively turning the server into a proxy for accessing internal resources.

Why this answer

This is SSRF because the server is making requests to internal resources based on user input; file:// is a protocol that can be used for local file access.

252
MCQeasy

You are a security consultant for a mid-sized company that recently migrated its customer relationship management (CRM) system to a public cloud provider (AWS). The CRM is a web application behind an Application Load Balancer (ALB) with WAF enabled. The application stores sensitive customer data in an RDS MySQL database. The security team has configured security groups to allow only HTTPS (443) from the internet to the ALB, and from the ALB to the application servers on port 8080. The application servers can connect to the database on port 3306. During a routine vulnerability scan, you discover that the database is publicly accessible from the internet on port 3306, which contradicts the intended design. You verify that the security group for the database allows inbound traffic from 0.0.0.0/0 on port 3306. The database contains unencrypted personal identifiable information (PII). What is the most effective immediate action to remediate this vulnerability?

A.Modify the database security group to remove the 0.0.0.0/0 inbound rule and add a rule allowing only the application servers' security group on port 3306.
B.Enable RDS Enhanced Monitoring and log all connections to the database for forensic analysis.
C.Enable deletion protection on the RDS instance to prevent accidental removal.
D.Enable encryption at rest for the RDS instance using AWS KMS.
AnswerA

The 0.0.0.0/0 rule allows any IP address on the internet to attempt a connection to the database on the specified port (3306 for MySQL/MariaDB), representing a critical security vulnerability. By replacing it with a rule that permits inbound traffic only from the security group associated with the application servers, access is tightly controlled and limited to legitimate, internal components. This effectively eliminates the public exposure and directly addresses the network access vulnerability, adhering to the principle of least privilege.

Why this answer

The most effective immediate action is to restrict the database security group to allow inbound traffic only from the application servers' security group on port 3306. This directly removes the public exposure (0.0.0.0/0) and enforces the principle of least privilege, ensuring only the intended application tier can communicate with the database. Since the database contains unencrypted PII, closing the public access is the highest priority remediation to prevent data exfiltration.

Exam trap

The trap here is that candidates may focus on encryption or logging as a quick fix, but the most critical and immediate action is to close the direct public network access to the database, as encryption and logging do not prevent an active attacker from connecting and stealing data.

How to eliminate wrong answers

Option B is wrong because enabling Enhanced Monitoring and logging does not remediate the public exposure; it only provides visibility into connections, which is a detective control, not a preventive one. Option C is wrong because enabling deletion protection prevents accidental deletion of the RDS instance but does not address the inbound security group rule allowing public access on port 3306. Option D is wrong because enabling encryption at rest protects data stored on disk but does not prevent an attacker from connecting to the database over the network and exfiltrating unencrypted data in transit.

253
MCQeasy

Which of the following tools is specifically designed for auditing cloud environments (AWS, Azure, GCP) for security misconfigurations?

A.John the Ripper
B.ScoutSuite
C.Aircrack-ng
D.Reaver
AnswerB

ScoutSuite is an open-source multi-cloud security auditing tool specifically engineered to assess the security posture of cloud environments. It automatically collects configuration data from various cloud providers, including AWS, Azure, GCP, Alibaba Cloud, and OCI, and then identifies potential security 'gaps' or misconfigurations. The tool generates a comprehensive report highlighting risks against best practices and compliance frameworks, making it ideal for auditing cloud infrastructure.

Why this answer

ScoutSuite is an open-source multi-cloud security auditing tool that checks for common misconfigurations.

254
MCQhard

A penetration tester finds that a web application accepts XML input and returns the parsed data in the response. The tester submits the following payload: <?xml version="1.0"?><!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><root>&xxe;</root>. The server returns the contents of /etc/passwd. Which vulnerability is being exploited?

A.SSRF
B.Command injection
C.XXE injection
D.XPath injection
AnswerC

XXE injection exploits vulnerabilities in XML parsers that are configured to process external entities within a Document Type Definition (DTD). By defining a `SYSTEM` entity that references a local file path, such as `/etc/passwd`, the attacker can compel the XML parser to read the content of that file. This content is then often returned within the application's response or an error message, enabling sensitive data exfiltration directly through XML processing.

Why this answer

The payload defines an external entity (XXE) that reads a local file, indicating an XML External Entity (XXE) injection vulnerability.

255
MCQmedium

A security analyst runs the following Nmap command: nmap -sS -sV -O -p 22,80,443,3389 192.168.1.0/24. Which of the following BEST describes what this scan will accomplish?

A.Perform a full TCP connect scan with UDP service detection on all ports
B.Perform a TCP SYN scan on four ports, detect service versions, and attempt OS fingerprinting
C.Perform an aggressive scan of all open ports and enumerate SMB shares
D.Perform a UDP scan on the four specified ports and identify running services
AnswerB

-sS performs a TCP SYN half-open scan, -sV probes detected services for version banners, -O attempts OS fingerprinting, and -p restricts scanning to ports 22, 80, 443 and 3389 across the /24 subnet. All three flags combine exactly as described.

Why this answer

The `-sS` flag initiates a TCP SYN stealth scan, `-sV` enables service version detection, and `-O` attempts OS fingerprinting. The `-p 22,80,443,3389` limits the scan to those four ports, and the target `192.168.1.0/24` scans the entire Class C subnet. This combination performs a half-open scan on the specified ports, probes for application versions, and tries to identify the operating system of each live host.

Exam trap

The trap here is that candidates confuse `-sS` (SYN scan) with a full connect scan (`-sT`) or mistakenly think `-sV` and `-O` imply an aggressive scan (`-A`), which also includes default scripts and traceroute.

How to eliminate wrong answers

Option A is wrong because `-sS` performs a TCP SYN scan (half-open), not a full TCP connect scan (`-sT`), and the command does not include UDP scanning (`-sU`) or scan all ports (only four are specified). Option C is wrong because the command does not use the `-A` flag (aggressive scan) and does not include any SMB enumeration flags like `--script smb-enum-shares`. Option D is wrong because `-sS` is a TCP SYN scan, not a UDP scan (`-sU`), and while `-sV` identifies services, it does so over TCP, not UDP.

256
MCQeasy

Which of the following tools is specifically designed to perform fast internet-wide scanning, often used in the reconnaissance phase to discover open ports across large IP ranges?

A.hping3
B.OpenVAS
C.Masscan
D.Nmap
AnswerC

Masscan uses its own asynchronous TCP/IP stack, enabling it to scan the entire internet's address space in minutes by transmitting packets at rates far beyond conventional scanners. This satisfies the reconnaissance requirement for fast, internet-wide open-port discovery across large IP ranges.

Why this answer

Masscan is specifically designed for high-speed, asynchronous scanning of large IP ranges, capable of transmitting packets at rates exceeding 10 million packets per second. This makes it the optimal tool for internet-wide reconnaissance to discover open ports across vast address spaces, a task for which Nmap is too slow and hping3 is too manual.

Exam trap

The trap here is that candidates often choose Nmap because it is the most famous scanning tool, but the question specifically asks for a tool designed for 'fast internet-wide scanning,' which is Masscan's unique selling point over Nmap's slower, more thorough approach.

How to eliminate wrong answers

Option A is wrong because hping3 is a packet crafting and manipulation tool used for custom TCP/IP testing and firewall auditing, not for high-speed internet-wide scanning. Option B is wrong because OpenVAS is a vulnerability scanner that performs deep analysis on a targeted set of hosts, not a tool designed for rapid, large-scale port discovery. Option D is wrong because while Nmap is a powerful and versatile scanner, its synchronous scanning engine is too slow for scanning the entire internet; Masscan was explicitly created to fill this performance gap.

257
MCQmedium

A security analyst runs the following command: 'wget http://example.com/bucket?list-type=2' and receives a listing of objects. Which cloud misconfiguration is this MOST likely exploiting?

A.SSRF vulnerability in the cloud application
B.Container escape vulnerability
C.Misconfigured IAM roles allowing privilege escalation
D.Publicly accessible S3 bucket with list permissions enabled
AnswerD

The `wget http` command is a standard utility for retrieving content from web servers, and when directed at an S3 bucket URL, it attempts to access the bucket without any AWS authentication. If this command successfully lists the bucket's contents, it unequivocally indicates that the Amazon S3 bucket has been misconfigured with a bucket policy or Access Control List (ACL) that grants public "s3:ListBucket" permissions to "AllUsers" or "Everyone," allowing unauthenticated enumeration of its objects.

Why this answer

An S3 bucket with public listing enabled allows anyone to list objects via HTTP GET requests.

258
MCQhard

An analyst observes that a web server is receiving many HTTP GET requests with random parameter values, each request taking a long time to complete. The server's connection pool is exhausted, and legitimate users cannot access the site. Which attack is MOST likely occurring?

A.UDP flood
B.SYN flood
C.Slowloris
D.HTTP flood
AnswerC

Slowloris is an application-layer denial-of-service attack designed to exhaust a web server's connection pool by holding open as many connections as possible for as long as possible. It achieves this by sending legitimate, but incomplete, HTTP requests, such as a partial GET request followed by sending additional HTTP headers at very slow intervals. This forces the server to keep these connections open, waiting for the full request, eventually preventing new legitimate connections from being established and rendering the server inaccessible.

Why this answer

Slowloris is a low-and-slow application-layer DoS attack that opens multiple HTTP connections to the target server and keeps them alive by sending partial HTTP GET requests with random parameters, never completing the request. This exhausts the server's connection pool, preventing legitimate users from connecting, while each request takes a long time due to the server waiting for the final headers.

Exam trap

The trap here is that candidates confuse Slowloris with an HTTP flood because both use HTTP GET requests, but Slowloris specifically exploits incomplete requests to hold connections open, whereas an HTTP flood relies on high request volume.

How to eliminate wrong answers

Option A is wrong because a UDP flood is a volumetric attack that overwhelms the network bandwidth with UDP packets, not HTTP GET requests that exhaust connection pools. Option B is wrong because a SYN flood exploits the TCP three-way handshake by sending many SYN packets without completing the handshake, exhausting the server's SYN backlog, not by sending HTTP GET requests with random parameters. Option D is wrong because an HTTP flood sends many complete HTTP GET requests rapidly, overwhelming the server's processing capacity, but does not rely on keeping connections open with partial requests to exhaust the connection pool.

259
MCQmedium

In the context of privilege escalation on Windows, what is token impersonation, and which tool is commonly used to exploit it?

A.A technique to dump hashes; Hashcat
B.A technique to assume another user's security context; Incognito
C.A technique to steal session cookies; Mimikatz
D.A technique to bypass UAC; Metasploit
AnswerB

Token impersonation lets an attacker steal a logged-on user's access token and assume that security context, inheriting its privileges. Incognito, a Metasploit module, enumerates available tokens and enables impersonation, making it the standard tool for exploiting this on Windows.

Why this answer

Token impersonation is a privilege escalation technique where an attacker assumes the security context (including privileges and identity) of another user by duplicating or manipulating an existing access token. The Incognito tool is specifically designed to enumerate available tokens on a Windows system and impersonate them, allowing an attacker to escalate privileges to that of a higher-privileged user (e.g., SYSTEM). This is a core technique in post-exploitation after gaining initial access.

Exam trap

EC-Council often tests the distinction between credential dumping tools (Mimikatz) and token manipulation tools (Incognito), leading candidates to confuse Mimikatz's ability to extract Kerberos tickets with token impersonation.

How to eliminate wrong answers

Option A is wrong because token impersonation does not involve dumping password hashes; Hashcat is a password cracking tool, not a token manipulation tool. Option C is wrong because token impersonation is not about stealing session cookies; Mimikatz is primarily used for credential dumping (e.g., extracting plaintext passwords, hashes, and Kerberos tickets), not token impersonation. Option D is wrong because token impersonation is not a UAC bypass technique; Metasploit is a framework that can deliver exploits, but the specific tool commonly associated with token impersonation is Incognito, not Metasploit itself.

260
Multi-Selecteasy

Which TWO of the following are considered passive reconnaissance techniques? (Choose TWO.)

Select 2 answers
A.Ping sweep
B.WHOIS lookup
C.Banner grabbing with Telnet
D.Port scanning
E.Google dorking
AnswersB, E

A WHOIS lookup is a classic example of passive reconnaissance because it involves querying publicly available databases maintained by domain registrars and registries. This process retrieves information such as domain ownership, registration dates, and contact details without sending any packets directly to the target organization's network. Since the interaction is solely with a third-party database, the target system remains unaware of the information gathering attempt.

Why this answer

WHOIS lookup is a passive reconnaissance technique because it queries public domain registration databases (via WHOIS protocol, RFC 3912) to obtain information such as registrar, registrant contact details, name servers, and expiration dates. This process does not send any packets directly to the target's infrastructure; instead, it relies on third-party data sources, making it undetectable by the target.

Exam trap

The trap here is that candidates often confuse 'passive' with 'low-noise' techniques, mistakenly thinking a ping sweep or banner grabbing is passive because it doesn't exploit vulnerabilities, but any technique that sends packets to the target's systems is active by definition.

261
MCQhard

Based on the exhibit, what type of attack is being attempted?

A.Directory Traversal
B.Command Injection
C.SQL Injection
D.Cross-Site Scripting
AnswerA

The exhibit clearly shows an attempt to manipulate a file path using `..%2f` sequences, which are URL-encoded representations of `../`. This technique aims to navigate outside of an intended directory and access restricted files, such as `/etc/passwd`, which stores user account information on Unix-like systems. Such an attack exploits inadequate input validation on user-supplied file paths, allowing an attacker to read or potentially write to arbitrary files on the server's file system.

Why this answer

The exhibit shows a URL parameter (e.g., `?file=../../etc/passwd`) that uses `../` sequences to traverse outside the web root directory. This is the classic signature of a directory traversal attack, which attempts to access restricted files like `/etc/passwd` by manipulating file path references. The attack exploits insufficient input validation in the application's file retrieval logic.

Exam trap

The trap here is that candidates often confuse directory traversal with command injection because both involve manipulating input to access system resources, but directory traversal uses path sequences (`../`) while command injection uses shell metacharacters (`;`, `|`, `&`).

How to eliminate wrong answers

Option B is wrong because command injection requires the injection of OS commands (e.g., `; ls` or `| cat /etc/passwd`) into a parameter that is passed to a system shell, not path traversal sequences. Option C is wrong because SQL injection involves injecting SQL syntax (e.g., `' OR 1=1 --`) into database queries, not file path manipulation. Option D is wrong because cross-site scripting (XSS) injects client-side scripts (e.g., `<script>alert(1)</script>`) into web pages, not directory path patterns.

262
MCQmedium

An organization wants to mitigate the impact of a DDoS attack by distributing incoming traffic across multiple servers in different geographic locations. Which technique is BEST suited?

A.Anycast
B.Scrubbing center
C.Rate limiting
D.Load balancing
AnswerA

Anycast routing effectively mitigates DDoS attacks by advertising the same IP address from multiple geographically dispersed servers. When a client initiates a connection, BGP (Border Gateway Gateway Protocol) directs traffic to the topologically nearest available Anycast node. This distribution dilutes the attack volume across numerous points of presence, making it significantly harder for attackers to overwhelm a single target and ensuring service continuity by absorbing the attack across a wide area.

Why this answer

Anycast routing allows the same IP address to be advertised from multiple geographically dispersed servers. When a DDoS attack occurs, traffic is naturally distributed to the nearest or least congested anycast node, effectively absorbing and dispersing the attack load across the global infrastructure. This technique is specifically designed to mitigate volumetric DDoS attacks by leveraging BGP to route traffic to the closest available server, preventing any single server from being overwhelmed.

Exam trap

The trap here is that candidates confuse 'load balancing' with 'geographic distribution,' but traditional load balancers (e.g., round-robin DNS or hardware LB) do not inherently provide DDoS mitigation because they concentrate traffic in a single region or rely on a central LB that can be attacked.

How to eliminate wrong answers

Option B (Scrubbing center) is wrong because a scrubbing center is a centralized facility that filters malicious traffic after it arrives, but it does not distribute incoming traffic across multiple servers; it is a single point of failure and can itself be overwhelmed. Option C (Rate limiting) is wrong because rate limiting restricts the number of requests a single server can accept, but it does not distribute traffic across multiple geographic locations and can block legitimate users during an attack. Option D (Load balancing) is wrong because traditional load balancing distributes traffic within a local or regional cluster, not across geographically diverse locations, and it typically relies on a single load balancer that can become a bottleneck or target itself.

263
MCQhard

You are investigating a suspected data exfiltration. Network logs show an internal host performing numerous DNS queries to a domain that does not exist in any organization records. The queries use various subdomains. Which technique is the attacker MOST likely using?

A.DNS amplification attack
B.DNS cache poisoning
C.DNS zone transfer
D.DNS tunneling
AnswerD

DNS tunneling is a sophisticated data exfiltration technique that encapsulates arbitrary data within DNS queries and responses, creating a covert communication channel. Attackers use this method to bypass firewalls and intrusion detection systems that typically allow DNS traffic, enabling them to extract sensitive information from a compromised internal network to an external command-and-control server. This technique effectively hides data transfer in plain sight, making it a potent tool for stealthy data theft.

Why this answer

The attacker is most likely using DNS tunneling, which encodes data from exfiltrated information into DNS queries and responses. By making numerous DNS queries to a domain they control, with data encoded in the subdomain labels, the attacker can bypass network security controls that do not inspect DNS traffic deeply. The fact that the domain does not exist in organization records and uses various subdomains is a classic indicator of DNS tunneling.

Exam trap

The trap here is that candidates confuse DNS tunneling with DNS amplification attacks because both involve many DNS queries, but amplification is a DDoS technique focused on volume, not covert data exfiltration via subdomain encoding.

How to eliminate wrong answers

Option A is wrong because a DNS amplification attack is a volumetric DDoS technique that uses open resolvers to flood a victim with large DNS responses, not to exfiltrate data via subdomain queries. Option B is wrong because DNS cache poisoning corrupts a resolver's cache with forged records to redirect traffic, not to exfiltrate data through numerous subdomain queries. Option C is wrong because a DNS zone transfer is a legitimate mechanism to replicate DNS records between authoritative servers, typically using TCP port 53 and the AXFR query type, not a method for data exfiltration via subdomain queries.

264
MCQeasy

What is the PRIMARY purpose of performing a DNS zone transfer?

A.To cache DNS queries locally
B.To obtain all DNS records for a domain from an authoritative server
C.To resolve IP addresses to hostnames
D.To verify the DNS server's response time
AnswerB

The primary purpose of performing a DNS zone transfer (AXFR or IXFR) is to replicate the entire set of DNS resource records (RRs) for a specific domain from a primary authoritative DNS server to a secondary authoritative DNS server. This process ensures that all secondary servers have an up-to-date, complete copy of the zone file, enabling them to authoritatively answer queries for the domain even if the primary server is unavailable. For ethical hackers, a successful zone transfer can reveal extensive network topology information.

Why this answer

DNS zone transfer (AXFR) is a mechanism defined in RFC 1034 and 1035 that allows a secondary DNS server to replicate the entire zone file from a primary authoritative server. The primary purpose is to obtain all DNS records for a domain, which is critical for reconnaissance during the footprinting phase, as it reveals subdomains, mail servers, and other infrastructure without brute-forcing.

Exam trap

EC-Council often tests the distinction between a zone transfer (full record replication) and a standard DNS query (single record lookup), so candidates mistakenly choose option C because they confuse reverse lookup with the bulk data retrieval of AXFR.

How to eliminate wrong answers

Option A is wrong because caching DNS queries locally is the function of a DNS resolver or caching server, not the purpose of a zone transfer; zone transfers replicate authoritative records, not cached queries. Option C is wrong because resolving IP addresses to hostnames is a reverse DNS lookup (PTR record query), which is a separate operation from a zone transfer that copies the entire forward zone. Option D is wrong because verifying the DNS server's response time is a performance check (e.g., using dig +stats), not a function of zone transfers, which are about data replication.

265
MCQmedium

An organization wants to protect against DNS spoofing attacks. Which security measure is MOST effective in preventing an attacker from poisoning DNS cache entries?

A.Use IPsec
B.Implement DNSSEC
C.Use a firewall
D.Disable DNS recursion
AnswerB

DNSSEC (Domain Name System Security Extensions) directly addresses DNS spoofing by adding cryptographic digital signatures to DNS records. These signatures allow DNS resolvers to cryptographically verify the authenticity and integrity of DNS responses, ensuring that the data originated from the correct authoritative server and has not been tampered with in transit. This validation process establishes a chain of trust, making it possible to detect and reject forged or manipulated DNS information, thereby preventing spoofing attacks.

Why this answer

DNSSEC (Domain Name System Security Extensions) is the most effective measure against DNS spoofing because it cryptographically signs DNS data using public-key cryptography, allowing resolvers to verify the authenticity and integrity of responses. This prevents an attacker from injecting forged DNS records into the cache, as any tampered response would fail signature validation per RFC 4033–4035.

Exam trap

A common misconception is that disabling DNS recursion or using a firewall is sufficient to prevent cache poisoning, but the only cryptographic solution that ensures data origin authentication and integrity is DNSSEC.

How to eliminate wrong answers

Option A is wrong because IPsec secures IP-layer communications between hosts or networks, but it does not protect DNS cache entries or validate the authenticity of DNS responses at the application layer. Option C is wrong because a firewall can filter traffic based on IP addresses and ports, but it cannot detect or prevent forged DNS responses that appear to come from a legitimate source. Option D is wrong because disabling DNS recursion only prevents the server from querying on behalf of clients, but it does not protect against spoofing of responses to iterative queries or cache poisoning from upstream sources.

266
MCQeasy

A company uses a cloud-based identity provider (IdP) for single sign-on (SSO). Which security control is most effective in preventing account takeover due to credential stuffing?

A.Enforce complex password policies.
B.Enable multi-factor authentication (MFA) for all users.
C.Implement CAPTCHA on the login page.
D.Enable account lockout after 3 failed attempts.
AnswerB

Enabling multi-factor authentication (MFA) for all users is the most effective defense against credential stuffing attacks. Even if an attacker successfully uses a stolen username and password combination, they will be unable to authenticate without possession of the second factor, such as a one-time code from an authenticator app, a hardware token, or a biometric verification. This additional layer of security renders the compromised credentials useless for unauthorized access, making it the strongest preventative measure.

Why this answer

Multi-factor authentication (MFA) is the most effective control against credential stuffing because it requires an additional verification factor beyond the password. Even if an attacker obtains valid credentials through a previous breach, they cannot complete authentication without the second factor (e.g., a one-time passcode from an authenticator app or a hardware token). This directly neutralizes the core attack vector of credential stuffing, which relies solely on reused passwords.

Exam trap

The trap here is that candidates often choose account lockout (Option D) thinking it stops brute-force attacks, but credential stuffing uses valid passwords from breaches, so lockout is ineffective and can be easily evaded with distributed IPs.

How to eliminate wrong answers

Option A is wrong because complex password policies do not prevent credential stuffing; they only make it harder to guess or crack a single password, but attackers use already compromised credentials from other breaches, not brute force. Option C is wrong because CAPTCHA only slows down automated login attempts but does not stop an attacker who has valid credentials from manually logging in or using sophisticated bots that can solve CAPTCHAs. Option D is wrong because account lockout after 3 failed attempts can be bypassed by attackers using distributed credential stuffing attacks from many different IP addresses, and it also creates a denial-of-service risk for legitimate users.

267
Multi-Selecthard

Which THREE of the following are common countermeasures to prevent DNS zone transfers from being abused? (Choose THREE.)

Select 3 answers
A.Enable DNS recursion on the name server
B.Restrict zone transfers to only specific authorized secondary name servers
C.Implement split DNS (internal vs external views)
D.Use Transaction Signatures (TSIG) to authenticate zone transfer requests
E.Configure the name server to allow zone transfers from any host
AnswersB, C, D

Restricting zone transfers involves configuring the primary DNS server to only permit AXFR (or IXFR) requests from a predefined list of IP addresses belonging to authorized secondary name servers. This directly prevents unauthorized external entities from performing a full enumeration of the domain's DNS records, significantly reducing the attack surface for reconnaissance. It is a fundamental security control for DNS.

Why this answer

Option B is correct because restricting zone transfers to specific authorized secondary name servers (for example, via BIND's allow-transfer ACL) ensures that only trusted servers can request a copy of the zone, blocking unauthorized AXFR/IXFR attempts. Option C is correct because split DNS separates internal and external views, so external clients querying the public name server never see internal-only records, limiting what a leaked zone transfer could expose. Option D is correct because TSIG uses a shared secret and HMAC to cryptographically authenticate zone transfer requests, so a server will only honor an AXFR/IXFR from a peer that presents a valid signature.

Option A is not a countermeasure—enabling recursion actually increases exposure to cache poisoning and amplification abuse and is unrelated to zone transfer protection. Option E is the opposite of a countermeasure, since allowing zone transfers from any host permits anyone to pull the entire zone with a single AXFR query.

Exam trap

The trap here is that candidates often confuse enabling recursion (Option A) with a security measure, when in fact recursion is unrelated to zone transfer control and can introduce other vulnerabilities.

268
MCQeasy

Which Nmap flag is used to perform a TCP SYN scan without completing the three-way handshake?

A.-sS
B.-sT
C.-sU
D.-sA
AnswerA

The -sS flag initiates a TCP SYN scan, often referred to as a "stealth scan" because it does not complete the full TCP three-way handshake. Nmap sends a SYN packet and, if a SYN/ACK is received, it immediately sends an RST packet instead of the final ACK. This technique helps avoid logging on the target system as a full connection is never established, making it less intrusive and harder to detect by some firewalls and intrusion detection systems.

Why this answer

The -sS flag instructs Nmap to perform a TCP SYN scan, which sends a SYN packet to the target port and, upon receiving a SYN/ACK response, sends an RST packet instead of completing the three-way handshake with an ACK. This allows the scanner to determine port states without establishing a full TCP connection, making it faster and less detectable than a full connect scan.

Exam trap

The trap here is that candidates often confuse -sS (SYN scan) with -sT (TCP connect scan), mistakenly thinking that -sT also avoids completing the handshake, when in fact -sT completes the full three-way handshake and is logged by the target system.

How to eliminate wrong answers

Option B (-sT) is wrong because it performs a full TCP connect scan, which completes the three-way handshake by sending the final ACK, making it more detectable and slower. Option C (-sU) is wrong because it performs a UDP scan, which sends UDP packets and does not involve the TCP three-way handshake at all. Option D (-sA) is wrong because it performs a TCP ACK scan, which sends packets with the ACK flag set to map firewall rules, not to determine open ports via SYN responses.

269
MCQmedium

A network administrator needs to identify all devices on a large corporate network that are running a specific vulnerable version of OpenSSH. The administrator has network access and can use scanning tools. However, scanning the entire network might disrupt operations. Which approach minimizes disruption while accurately identifying the vulnerable hosts?

A.Conduct a full TCP port scan of the entire network using SYN scan.
B.Run a TCP SYN scan on port 22 only, with version detection enabled, across the target IP range.
C.Use a ping sweep to identify live hosts, then perform a version scan on each.
D.Perform an ARP scan of the entire subnet and then check each host manually.
AnswerB

This approach is highly efficient and targeted for identifying devices running a specific service. A TCP SYN scan on port 22 (SSH) across the target IP range quickly identifies hosts listening on this port without establishing a full connection, thus minimizing network overhead and remaining relatively stealthy. Enabling version detection simultaneously gathers crucial information about the SSH service's software version, which is essential for identifying potential vulnerabilities without further extensive scanning.

Why this answer

It targets only TCP port 22 (the default SSH port) with a SYN scan, which is stealthier and faster than a full connect scan, and enables version detection to identify the specific vulnerable OpenSSH version. This minimizes disruption by avoiding scanning unnecessary ports and reduces network load, while accurately pinpointing vulnerable hosts.

Exam trap

The trap here is that candidates often choose a ping sweep (Option C) thinking it reduces disruption, but they overlook that ICMP may be blocked, and the subsequent version scan on each host still requires port-level scanning, making Option B more efficient and accurate.

How to eliminate wrong answers

Option A is wrong because a full TCP port scan of the entire network would generate excessive traffic, potentially disrupting operations, and is unnecessary when only port 22 is relevant. Option C is wrong because a ping sweep may miss hosts that block ICMP (e.g., firewalls), leading to incomplete identification, and then performing a version scan on each live host still requires scanning all ports on those hosts, which is less efficient than targeting port 22 directly. Option D is wrong because an ARP scan only works within the local subnet (Layer 2) and does not scale to a large corporate network across multiple subnets; manual checking is impractical and error-prone.

270
MCQeasy

A security analyst runs the command `nbtstat -A 192.168.1.50` in a Windows environment. What information is the analyst attempting to retrieve?

A.The current routing table on the host
B.Active network connections and listening ports
C.DNS records for the host
D.NetBIOS names and services of the remote system
AnswerD

The `nbtstat -a 192.168.1.50` command correctly utilizes the `-a` (adapter status) flag to query the NetBIOS name table of the remote host at the specified IP address. This command enumerates the NetBIOS names registered by that system, including unique names, group names, and the services running on it, often revealing the computer name, workgroup/domain, and even the MAC address. This information is crucial for understanding the NetBIOS identity of a remote machine on the network.

Why this answer

The `nbtstat -A` command queries the NetBIOS name table of a remote system by its IP address. NetBIOS over TCP/IP (NBT) maintains a table of names and services (e.g., workstation, server, messenger) that the remote host has registered. This is a classic enumeration technique to discover shares, logged-in users, and other NetBIOS resources.

Exam trap

The trap here is confusing `nbtstat -A` (remote NetBIOS table) with `nbtstat -a` (local NetBIOS table) or with `netstat`, leading candidates to mistakenly choose active connections or routing information.

How to eliminate wrong answers

Option A is wrong because `nbtstat` does not display routing tables; the `route print` command is used for that purpose. Option B is wrong because active network connections and listening ports are retrieved with `netstat`, not `nbtstat`. Option C is wrong because DNS records are queried using `nslookup` or `dig`; `nbtstat` operates at the NetBIOS layer, not DNS.

271
MCQeasy

Which of the following is a method of hiding files on a system using steganography?

A.Encrypting a file with AES
B.Renaming a file to a system filename
C.Embedding a secret message in an image file
D.Using a rootkit to hide processes
AnswerC

This method directly describes steganography, which is the art and science of hiding information within other non-secret messages or data. By embedding a secret message or an entire file within the seemingly innocuous data of a cover medium, such as an image, the existence of the hidden information is concealed. Techniques like Least Significant Bit (LSB) manipulation subtly alter the least significant bits of pixel data, making the embedded data visually imperceptible without specialized analysis tools.

Why this answer

Steganography is the practice of concealing a secret message within a non-secret file, such as an image, audio, or video file. By embedding data into the least significant bits (LSB) of pixel values in an image, the file appears unchanged to the casual observer, effectively hiding the secret message in plain sight.

Exam trap

The trap here is that candidates confuse encryption (which scrambles data) with steganography (which hides data's existence), leading them to select AES encryption as a hiding method rather than recognizing it as a confidentiality mechanism.

How to eliminate wrong answers

Option A is wrong because AES encryption transforms data into an unreadable ciphertext but does not hide the file's existence; it only protects its confidentiality. Option B is wrong because renaming a file to a system filename (e.g., 'svchost.exe') is a form of masquerading or file hiding via naming, not steganography, which requires embedding data within another medium. Option D is wrong because a rootkit hides processes, files, or registry keys from the operating system, but it is a tool for maintaining covert access, not a method of steganography.

272
MCQmedium

Which of the following is the PRIMARY reason that MD5 is no longer recommended for use in digital signatures?

A.MD5 is a symmetric algorithm, not a hash function
B.MD5 is computationally too slow for large data
C.MD5 produces a 128-bit hash, which is too short for modern security
D.MD5 is vulnerable to collision attacks
AnswerD

MD5 is critically vulnerable to collision attacks, where two distinct input messages can be found that produce the exact same 128-bit hash output. Practical methods for generating such collisions have been demonstrated, allowing attackers to forge digital signatures or create malicious files that appear legitimate. This fundamental weakness in its collision resistance makes MD5 unsuitable for security-critical applications requiring integrity verification.

Why this answer

MD5 is vulnerable to collision attacks, where two different inputs produce the same hash. This undermines the integrity and non-repudiation properties required for digital signatures.

273
MCQmedium

A penetration tester is performing reconnaissance and wants to identify email addresses associated with a target domain. Which tool is specifically designed for this purpose?

A.Nmap
B.theHarvester
C.Shodan
D.Maltego
AnswerB

theHarvester is an open-source intelligence (OSINT) tool specifically engineered for gathering publicly available information, including email addresses, subdomains, hostnames, and employee names. It achieves this by querying various public data sources such as search engines (e.g., Google, Bing), PGP key servers, and social media platforms like LinkedIn. This targeted approach makes theHarvester highly effective during the reconnaissance phase for compiling lists of potential email targets from publicly accessible information.

Why this answer

TheHarvester is specifically designed for passive reconnaissance to gather email addresses, subdomains, and other open-source intelligence (OSINT) from public sources like search engines, PGP key servers, and the SHODAN database. It directly queries these sources to extract email addresses associated with a target domain, making it the correct tool for this task.

Exam trap

The trap here is that candidates often confuse Shodan (a device search engine) with a tool for email harvesting, or they assume Maltego's broad OSINT capabilities make it the best choice, but theHarvester is the only option specifically designed for automated email address extraction from public sources.

How to eliminate wrong answers

Option A is wrong because Nmap is a network scanning tool used for port scanning, service detection, and OS fingerprinting, not for harvesting email addresses from public sources. Option C is wrong because Shodan is a search engine for internet-connected devices and services, not a tool for extracting email addresses from a target domain. Option D is wrong because Maltego is a graphical link analysis tool for relationship mapping and OSINT, but it is not specifically designed for automated email harvesting; it requires manual configuration and transforms, whereas theHarvester is purpose-built for this task.

274
Multi-Selectmedium

Which THREE of the following are common types of SQL injection attacks? (Select three)

Select 3 answers
A.Reflected SQL injection
B.Stored SQL injection
C.Out-of-band SQL injection
D.Blind SQL injection
E.In-band SQL injection
AnswersC, D, E

Out-of-band SQL injection occurs when an attacker cannot retrieve data directly through the same communication channel used for the injection. Instead, the attacker leverages the database server's ability to make external network requests, such as DNS lookups or HTTP requests, to exfiltrate data to a server controlled by the attacker. This technique is particularly useful in blind scenarios where traditional in-band methods are not feasible, creating a separate channel for data retrieval.

Why this answer

The three correct answers are C, D, and E. Out-of-band SQL injection (C) is a recognized type where the attacker uses a different channel (e.g., DNS or HTTP requests via functions like UTL_HTTP or xp_dirtree) to exfiltrate data when the web response does not return query results. Blind SQL injection (D) is a standard category where the attacker infers data by observing boolean true/false responses or time delays (e.g., WAITFOR DELAY, SLEEP), rather than seeing query output directly.

In-band SQL injection (E) is the classic category where data is retrieved through the same channel used to inject the payload, typically via UNION-based or error-based techniques. The unmarked options A and B are not standard SQL injection classifications: 'reflected' and 'stored' describe XSS variants, not SQLi types, so they do not belong here.

Exam trap

CEH often mixes XSS terminology (reflected, stored) into SQLi questions — candidates who don't distinguish the two vulnerability taxonomies pick the XSS-sounding options.

275
MCQmedium

An attacker performs a downgrade attack on a TLS connection, forcing the client and server to negotiate a weaker cipher suite. This attack exploits which of the following?

A.A vulnerability in the TLS 1.3 handshake
B.A known weakness in the Diffie-Hellman key exchange
C.The fallback mechanism in SSL/TLS implementations
D.The ability to modify the ClientHello message
AnswerC

The fallback mechanism in SSL/TLS implementations is the correct answer because many older SSL/TLS client implementations included a compatibility fallback mechanism. If the initial handshake with a preferred, stronger protocol version failed, the client would attempt to re-establish the connection using an older, less secure protocol version. An attacker exploits this by intercepting the initial ClientHello, blocking the server's preferred protocol response, and then tricking the client into initiating a connection with a vulnerable, older protocol like SSLv3, thereby enabling further exploitation.

Why this answer

Downgrade attacks (e.g., POODLE, FREAK, Logjam) exploit the SSL/TLS fallback mechanism, where a client and server negotiate down to an older, weaker protocol or cipher suite if the initial handshake fails. An attacker forces that fallback to a vulnerable option, then exploits the weakness.

Exam trap

The trap is picking the specific weak primitive (Diffie-Hellman) or the MITM technique (modifying ClientHello) instead of the general mechanism being exploited — the fallback path that permits downgrade.

How to eliminate wrong answers

Option A is wrong because TLS 1.3 removed renegotiation and legacy cipher suites and does not support fallback to older versions in the same way — the attack targets the fallback path, not a TLS 1.3 handshake flaw. Option B is wrong because while Diffie-Hellman weaknesses (e.g., Logjam's export-grade DH) can be the exploited weakness, the downgrade attack itself exploits the fallback mechanism that allows the weak DH parameters to be selected. Option D is wrong because modifying the ClientHello is a man-in-the-middle technique used to trigger fallback, but the underlying vulnerability being exploited is the fallback mechanism, not the ability to alter the message.

276
MCQhard

A security analyst examines a compromised Linux server and finds a hidden directory `/usr/share/.syslog` containing a modified version of `sshd` and a log cleaner script. This is indicative of which technique used to erase tracks?

A.Token impersonation
B.DLL injection
C.Rootkit installation
D.Steganography
AnswerC

Rootkit installation is a highly effective post-exploitation technique for maintaining persistent access and evading detection on a compromised Linux server. Rootkits often replace legitimate system binaries (like ls, ps, netstat) with malicious versions that filter out evidence of the attacker's activities, such as hidden processes or network connections. Concurrently, log cleaners are used to erase entries from system logs (e.g., /var/log/auth.log, /var/log/syslog) that would reveal the initial compromise or subsequent actions, ensuring the attacker's presence remains concealed.

Why this answer

The presence of a hidden directory containing a modified `sshd` binary and a log cleaner script is a classic sign of a rootkit installation. Rootkits replace core system binaries (like `sshd`) to maintain backdoor access and use log cleaners to erase evidence of their activity, directly aligning with the technique of erasing tracks.

Exam trap

EC-Council often tests the distinction between platform-specific techniques, and the trap here is that candidates may confuse rootkit installation with steganography because both involve 'hiding,' but steganography hides data, not system binaries or logs.

How to eliminate wrong answers

Option A is wrong because token impersonation is a Windows-specific privilege escalation technique that involves duplicating access tokens, not hiding files or modifying binaries on a Linux server. Option B is wrong because DLL injection is a Windows technique for injecting code into running processes via dynamic-link libraries, which does not apply to Linux systems that use shared objects (.so) and have no concept of DLLs. Option D is wrong because steganography hides data within other data (e.g., images or audio) and is not used to replace system binaries or clean logs to erase tracks.

277
MCQhard

During a security assessment, you execute: dnsenum --enum example.com. The tool returns results including the nameservers (NS), mail servers (MX), and performs a zone transfer attempt. The zone transfer fails. What is the MOST likely reason for the failure?

A.The DNS server is not running
B.The zone transfer requires TCP port 443
C.The DNS server is configured to deny zone transfers from unauthorized hosts
D.The domain does not exist
AnswerC

When `dnsenum` successfully enumerates NS and MX records but subsequently fails to perform a zone transfer, it is a clear indication that the DNS server is active and the domain exists, but it is specifically configured to deny zone transfer requests from unauthorized hosts. This is a standard and recommended security practice, often implemented via `allow-transfer` directives, to prevent attackers from obtaining a full list of domain records.

Why this answer

DNS zone transfers (AXFR) are typically restricted by default on authoritative DNS servers to prevent unauthorized disclosure of the entire zone file. The `dnsenum` tool attempts an AXFR query over TCP port 53, and the failure indicates the server explicitly denied the request, which is a standard security configuration per RFC 5936.

Exam trap

The trap here is that candidates may confuse the port used for zone transfers (TCP 53) with the standard DNS query port (UDP 53) or mistakenly think a failed zone transfer implies the server is down or the domain is invalid, rather than recognizing it as a deliberate security control.

How to eliminate wrong answers

Option A is wrong because if the DNS server were not running, the tool would not have returned NS and MX records; a non-responsive server would cause a timeout or connection error, not a specific zone transfer failure. Option B is wrong because zone transfers use TCP port 53, not TCP port 443 (which is used for HTTPS). Option D is wrong because the tool successfully resolved the domain (returning NS and MX records), proving the domain exists and is properly configured.

278
Multi-Selectmedium

A penetration tester wants to perform DNS zone transfer enumeration. Which TWO of the following tools can be used for this purpose? (Select exactly 2.)

Select 2 answers
A.Shodan
B.Maltego
C.theHarvester
D.dnsrecon
E.dnsenum
AnswersD, E

dnsrecon is a dedicated DNS enumeration script specifically designed to gather extensive information about DNS infrastructure. It actively attempts various DNS queries, including brute-forcing subdomains, checking for wildcards, and crucially, attempting zone transfers (AXFR requests) against identified name servers. This tool is specifically built to uncover misconfigured DNS servers that might inadvertently disclose internal network details through successful zone transfers, making it highly effective for this task.

Why this answer

Dnsrecon is a dedicated DNS enumeration tool that supports zone transfer requests (AXFR queries) to retrieve all DNS records from a nameserver if it is misconfigured to allow transfers from any host. It can also perform other DNS reconnaissance tasks such as SRV record enumeration and subdomain brute-forcing, making it a direct choice for zone transfer enumeration.

Exam trap

EC-Council often tests the distinction between passive reconnaissance tools (theHarvester, Maltego) and active DNS enumeration tools (dnsrecon, dnsenum) that directly query DNS servers for zone transfers, leading candidates to select tools that gather DNS data indirectly rather than performing the actual AXFR request.

279
MCQeasy

A company deploys IoT sensors in a remote facility with limited bandwidth. The sensors send small data packets every few seconds. Which wireless technology is most appropriate for this application?

A.4G LTE
B.Wi-Fi 6
C.Bluetooth 5
D.LoRaWAN
AnswerD

LoRaWAN (Long Range Wide Area Network) is the optimal choice for IoT sensors in a remote facility with limited power because it is specifically engineered for low-power, wide-area (LPWAN) applications. It provides exceptional long-range communication capabilities, often spanning several kilometers in rural settings, combined with extremely low power consumption. This allows sensors to operate efficiently for many years on small batteries, perfectly aligning with the requirements for remote, power-constrained IoT deployments.

Why this answer

LoRaWAN is designed for low-power, long-range communication with small data payloads, making it ideal for IoT sensors in remote facilities with limited bandwidth. It operates in sub-GHz ISM bands (e.g., 868 MHz or 915 MHz) and supports data rates from 0.3 kbps to 50 kbps, perfectly matching the requirement of sending small packets every few seconds over kilometers.

Exam trap

The trap here is that candidates often confuse 'low power' and 'short range' technologies like Bluetooth 5 with the specific requirements of remote, long-range IoT, failing to recognize that LoRaWAN is the only option explicitly designed for low-power wide-area networks (LPWAN) with kilometer-scale range.

How to eliminate wrong answers

Option A is wrong because 4G LTE is a cellular technology optimized for high-bandwidth, low-latency applications (e.g., video streaming) and consumes significantly more power, making it unsuitable for battery-powered IoT sensors in remote areas with limited bandwidth. Option B is wrong because Wi-Fi 6 (802.11ax) is designed for high-density, high-throughput local area networks with a typical range of tens of meters, not for long-range, low-power IoT deployments in remote facilities. Option C is wrong because Bluetooth 5, while offering low power and mesh capabilities, has a maximum range of approximately 200-400 meters in ideal conditions, which is insufficient for remote facilities spanning kilometers, and its data rate (up to 2 Mbps) is overkill for small packets sent every few seconds.

280
Multi-Selecthard

Which THREE of the following are valid DNS record types that an attacker might query during reconnaissance to gather information about a target domain? (Select 3)

Select 3 answers
A.FTP (file transfer)
B.A (IPv4 address)
C.NS (name server)
D.HTTP (hypertext transfer)
E.MX (mail exchange)
AnswersB, C, E

An 'A' record, short for Address record, is a fundamental DNS record type that maps a domain name or hostname to its corresponding IPv4 address. When a user attempts to access a website, the DNS resolver queries for the 'A' record to translate the human-readable domain into the numerical IP address required for network communication. This record is essential for directing traffic to the correct server hosting the website or service.

Why this answer

Option B (A record) is correct because an A record maps a hostname to its IPv4 address, so querying it during reconnaissance reveals the IP addresses of the target's web, mail, or other hosts for further scanning. Option C (NS record) is correct because NS records identify the authoritative name servers for the domain, letting an attacker map the DNS infrastructure and potentially attempt zone transfers or subdomain enumeration. Option E (MX record) is correct because MX records list the mail exchange servers handling email for the domain, exposing mail infrastructure, third-party providers, and additional hostnames to investigate.

Options A (FTP) and D (HTTP) are not DNS record types at all; they are application-layer protocols, and no DNS query returns an 'FTP' or 'HTTP' record, so they do not belong among valid DNS reconnaissance record types.

Exam trap

EC-Council often tests the distinction between DNS record types and application-layer protocols, so candidates mistakenly select FTP or HTTP because they are common network services, but they are not valid DNS resource records.

281
Multi-Selectmedium

Which THREE of the following are examples of OSINT techniques? (Choose 3)

Select 3 answers
A.Nmap version detection
B.Shodan search
C.Maltego graph analysis
D.Nessus vulnerability scan
E.Google dorking
AnswersB, C, E

Shodan is a powerful OSINT search engine that passively collects information about internet-connected devices, services, and their configurations by continuously scanning the entire internet. Users can then query this vast database to discover exposed ports, vulnerable services, and device metadata without directly interacting with the target, making it a prime example of open-source intelligence.

Why this answer

Shodan is a search engine for internet-connected devices, allowing users to discover open ports, services, and banners without directly interacting with the target. This is a classic OSINT technique because it gathers publicly available information from external sources, not from active scanning of the target's own infrastructure.

Exam trap

EC-Council often tests the distinction between active and passive reconnaissance, and the trap here is that candidates confuse tools that can be used for both (like Nmap) with OSINT, forgetting that OSINT specifically excludes any direct interaction with the target system.

282
MCQmedium

A penetration tester uses the tool 'Pacu' during an assessment. Which of the following actions is Pacu designed to perform?

A.Exploit vulnerabilities in Azure cloud infrastructure
B.Automate penetration testing tasks in AWS environments
C.Perform network scanning and service enumeration
D.Crack WPA2 handshakes using dictionary attacks
AnswerB

Pacu is an advanced open-source exploitation framework specifically engineered to automate various penetration testing tasks within Amazon Web Services (AWS) environments. It provides a modular approach, allowing testers to enumerate resources, identify misconfigurations, and execute post-exploitation activities against AWS services like EC2, S3, IAM, and Lambda. This automation significantly streamlines the process of discovering and exploiting security weaknesses in complex AWS deployments.

Why this answer

Pacu is an open-source AWS exploitation framework designed to automate penetration testing tasks in AWS environments. It provides a modular structure with modules for enumeration, privilege escalation, persistence, and data exfiltration, specifically targeting AWS services like IAM, S3, EC2, and Lambda. It is not used for Azure, network scanning, or wireless attacks.

Exam trap

CEH often tests the specific cloud platform a tool targets: candidates may confuse Pacu with Azure tools or general-purpose scanners, but Pacu is exclusively for AWS exploitation.

How to eliminate wrong answers

Option A is wrong because Pacu is specifically built for AWS, not Azure; Azure exploitation would use tools like MicroBurst or Stormspotter. Option C is wrong because Pacu is not a network scanner; it focuses on AWS API-based attacks and post-exploitation, not port scanning or service enumeration like Nmap. Option D is wrong because cracking WPA2 handshakes is a wireless attack performed by tools like Aircrack-ng or Hashcat, not Pacu.

283
MCQmedium

A network administrator wants to prevent an attacker from using a network sniffer to capture traffic between a client and a web server. Which protocol should be enforced to encrypt all communication?

A.SNMP
B.FTP
C.HTTPS
D.HTTP
AnswerC

Hypertext Transfer Protocol Secure (HTTPS) is the secure version of HTTP, utilizing Transport Layer Security (TLS), or its deprecated predecessor SSL, to encrypt communication between a web browser and a server. This encryption protects the confidentiality and integrity of data exchanged, including sensitive information like login credentials, financial transactions, and personal data, by preventing unauthorized eavesdropping and tampering. HTTPS ensures that an attacker cannot easily intercept and read the web traffic, thereby securing user interactions and preventing data compromise.

Why this answer

HTTPS (HTTP over TLS, RFC 2818) encrypts all communication between a client and a web server using TLS/SSL, preventing a network sniffer from capturing plaintext data such as cookies, URLs, or form submissions. This ensures confidentiality and integrity of the web traffic, directly countering passive eavesdropping attacks.

Exam trap

The trap here is that candidates often confuse encryption with authentication or assume that any protocol with 'secure' in its name (like SNMPv3) is suitable for web traffic, when the question specifically requires a protocol that encrypts client-to-web-server communication — only HTTPS directly fulfills that role.

How to eliminate wrong answers

Option A is wrong because SNMP (Simple Network Management Protocol) is used for managing and monitoring network devices, not for encrypting web traffic; its default versions (v1/v2c) send community strings in plaintext, and even SNMPv3 with encryption is irrelevant to client-server web communication. Option B is wrong because FTP (File Transfer Protocol) transmits data and credentials in cleartext, making it vulnerable to sniffing; it does not encrypt web traffic and is designed for file transfers, not web browsing. Option D is wrong because HTTP transmits data in plaintext, allowing any network sniffer to capture the entire request/response payload, including sensitive information like passwords and session tokens.

284
MCQhard

A web application uses an XML parser to process user-supplied XML documents. An attacker submits the following payload: <?xml version='1.0'?><!DOCTYPE foo [<!ENTITY xxe SYSTEM 'file:///etc/passwd'>]><root>&xxe;</root>. Which vulnerability is being exploited?

A.Server-Side Request Forgery (SSRF)
B.XPath injection
C.XML External Entity (XXE) injection
D.SQL injection
AnswerC

XML External Entity (XXE) injection is the correct answer because the scenario describes an attacker leveraging an XML parser to process user-supplied XML containing references to external entities. By defining an external entity that points to a local file path, such as file:///etc/passwd, the vulnerable parser is tricked into reading the content of that file. This content is then embedded within the XML document's response, leading to the unauthorized disclosure of sensitive server-side information.

Why this answer

The payload defines an external entity that reads a local file, which is classic XXE (XML External Entity) injection.

285
MCQmedium

A company's security team wants to deploy a DDoS mitigation technique that distributes incoming traffic across multiple servers in different geographic locations, making it harder for an attacker to overwhelm a single target. Which technique BEST fits this description?

A.Anycast network
B.Rate limiting
C.Load balancer
D.Scrubbing center
AnswerA

Anycast advertises one IP address from many points of presence, so routing protocols steer each user to the topologically nearest server. Traffic is thereby dispersed across geographically distributed servers, preventing an attacker from concentrating volume on a single target.

Why this answer

Anycast network routing allows the same IP address to be advertised from multiple geographically distributed servers. When traffic arrives, BGP (Border Gateway Protocol) automatically directs each packet to the nearest or best-path server, effectively spreading the load and absorbing volumetric DDoS attacks by preventing any single server from becoming a bottleneck.

Exam trap

EC-CEH candidates often mistake a load balancer for anycast networking. While a load balancer distributes traffic among servers, it does not inherently provide geographic distribution via BGP path selection, which is the key differentiator for absorbing volumetric DDoS attacks at scale.

How to eliminate wrong answers

Option B (Rate limiting) is wrong because it restricts the amount of traffic allowed to a single server, but does not distribute traffic across multiple locations; it can still be overwhelmed by a distributed attack. Option C (Load balancer) is wrong because a load balancer typically distributes traffic within a single data center or region, not across geographically diverse locations, and it can become a single point of failure if targeted. Option D (Scrubbing center) is wrong because a scrubbing center is a centralized facility that filters malicious traffic before forwarding clean traffic to the target; it does not inherently distribute incoming traffic across multiple servers in different geographic locations.

286
MCQhard

During a forensic investigation, an analyst finds that a malware sample uses a technique to detect if it is running in a sandbox by checking the number of CPU cores. The malware terminates execution if the core count is less than 2. Which anti-analysis technique is this?

A.Code obfuscation
B.Anti-debugging
C.Anti-VM / sandbox evasion
D.Packing
AnswerC

Anti-VM and sandbox evasion techniques are employed by malware to determine if it is executing within a virtualized environment or an automated analysis sandbox, which often have deliberately limited resources. Checking for low CPU core counts, minimal RAM, small disk sizes, or generic hardware identifiers are common heuristics used by malware to detect these environments. If such conditions are met, the malware may alter its behavior, remain dormant, or self-terminate to avoid detection and analysis, thus preserving its efficacy.

Why this answer

Checking the number of CPU cores is a classic anti-VM/sandbox evasion technique. Virtual machines and sandboxes often allocate minimal resources (e.g., a single core) to remain lightweight, so malware uses this check to detect an analysis environment and terminate execution to avoid detection.

Exam trap

EC-Council often tests the distinction between anti-debugging and anti-VM techniques; the trap here is that candidates confuse resource-based checks (like CPU cores) with debugger detection, but anti-debugging specifically targets debugger artifacts, not hardware resource enumeration.

How to eliminate wrong answers

Option A is wrong because code obfuscation involves transforming code to make it harder to read or reverse-engineer (e.g., using junk code or control flow flattening), not checking hardware resources like CPU cores. Option B is wrong because anti-debugging techniques target debuggers (e.g., checking for IsDebuggerPresent or NtGlobalFlag), not the number of CPU cores. Option D is wrong because packing compresses or encrypts the executable to hide its original code, but does not involve runtime checks of system resources.

287
MCQmedium

During a web application penetration test, a tester uses Burp Suite's Repeater tool to manually manipulate a request and observe the response. After sending the same request multiple times, the application returns a 302 redirect pointing to a login page. What is the MOST likely cause?

A.The server is rate-limiting the requests
B.A cross-site request forgery (CSRF) token mismatch occurred
C.The session token has expired and the user must re-authenticate
D.The server detected the use of a proxy and blocked the request
AnswerC

When a session token expires, the server invalidates the associated user session, meaning it no longer recognizes the client as authenticated. This is a common security measure to limit the window of opportunity for session hijacking. Upon receiving a request with an expired or invalid session token, the application's security logic often redirects the user to the login page (HTTP 302 Found) to prompt re-authentication and establish a new, valid session. This behavior directly aligns with the observed 302 redirect.

Why this answer

A 302 redirect to the login page is the classic server-side signal that the session cookie presented in the request is no longer valid — either it expired, was invalidated server-side, or the session store lost the record. Burp Repeater replays the exact same request with the same session token, so once that token ages out or is rotated, every subsequent replay gets bounced to authentication. This is expected behavior, not a security control firing.

Exam trap

CEH often tests whether candidates can distinguish authentication/session-expiry responses (302 to login) from authorization failures (403), rate limiting (429), and CSRF rejections — the trap is picking a security control that sounds plausible but returns a different status code.

How to eliminate wrong answers

Option A is wrong because rate limiting typically returns HTTP 429 (Too Many Requests) or 503, not a 302 redirect to a login page. Option B is wrong because a CSRF token mismatch usually returns 403 Forbidden or a custom error page, and CSRF tokens are per-form/per-session values, not the cause of a redirect to login. Option D is wrong because servers do not reliably detect Burp Suite as a proxy — Burp is a local intercepting proxy and the traffic looks like normal HTTPS from the client; there is no standard 'proxy detected' 302 response.

288
MCQhard

An attacker gains physical access to a building by following an authorized employee through a secure door without using a badge. Which social engineering technique is being used?

A.Pretexting
B.Tailgating
C.Baiting
D.Quid pro quo
AnswerB

Tailgating is following an authorised person through a secured door without presenting credentials, exploiting the person's legitimate badge access. The scenario describes exactly this physical intrusion, where the attacker bypasses the access control by proximity rather than force.

Why this answer

Tailgating (also known as piggybacking) is a physical social engineering attack where an unauthorized person follows an authorized individual into a restricted area without presenting their own credentials. The attacker exploits the authorized person's trust or politeness to bypass access control systems such as badge readers or biometric locks. This technique relies on the human factor rather than technical vulnerabilities.

Exam trap

The trap here is confusing tailgating with pretexting, as both involve deception, but tailgating is specifically about physical proximity and following someone through a secured entry point without authentication.

How to eliminate wrong answers

Option A is wrong because pretexting involves fabricating a false scenario or identity to obtain information or access, not physically following someone through a door. Option C is wrong because baiting uses a physical or digital lure (e.g., an infected USB drive) to trick a victim into performing an action, not trailing behind an authorized person. Option D is wrong because quid pro quo involves offering a service or benefit in exchange for information or access, such as a fake IT support call asking for credentials, not unauthorized physical entry.

289
MCQmedium

A security analyst runs `nmap -sU -p 161,162 10.0.0.1` and receives output showing port 161/udp is open. Which service is MOST likely running on this port?

A.DHCP
B.SNMP
C.TFTP
D.DNS
AnswerB

UDP port 161 is the standard SNMP agent port, with 162 reserved for SNMP traps. An open 161/udp therefore indicates an SNMP service listening, which the analyst can enumerate further for community strings and device information.

Why this answer

Port 161/udp is the default port for SNMP (Simple Network Management Protocol) used by SNMP agents to receive management queries (GET, SET) from SNMP managers. The `-sU` flag performs a UDP scan, and the open result on 161/udp strongly indicates an SNMP service is listening, as defined in RFC 1157.

Exam trap

The trap here is that candidates often confuse SNMP's port 161 with SNMP trap port 162 or misattribute it to other UDP-based services like DHCP or TFTP, but the scan specifically targets 161, which is exclusively SNMP.

How to eliminate wrong answers

Option A is wrong because DHCP uses ports 67/udp (server) and 68/udp (client), not 161 or 162. Option C is wrong because TFTP uses port 69/udp, not 161 or 162. Option D is wrong because DNS uses port 53/udp (and tcp), not 161 or 162.

290
MCQeasy

Which type of malware is characterized by encrypting a victim's files and demanding a ransom payment for the decryption key?

A.Spyware
B.Adware
C.Keylogger
D.Ransomware
AnswerD

Ransomware is a malicious software that encrypts a victim's files, rendering them inaccessible, and then demands a ransom payment, typically in cryptocurrency, for the decryption key. This type of malware explicitly holds data hostage, threatening permanent data loss if the payment is not made within a specified timeframe. Its defining characteristic is the encryption of user data and the subsequent extortion attempt.

Why this answer

Ransomware is the correct answer because it specifically encrypts files on the victim's system using strong encryption algorithms (e.g., AES-256 or RSA) and then demands a ransom payment, typically in cryptocurrency, to provide the decryption key. This matches the description exactly, distinguishing it from other malware types that do not perform file encryption for extortion.

Exam trap

The trap here is that candidates may confuse ransomware with other malware that causes data loss or system disruption, but the key differentiator is the specific combination of file encryption and ransom demand for the decryption key.

How to eliminate wrong answers

Option A is wrong because spyware is designed to covertly gather information about a user's activities (e.g., keystrokes, browsing habits) and transmit it to a third party, not to encrypt files or demand ransom. Option B is wrong because adware automatically displays or downloads advertisements, often generating revenue for its creator, but it does not encrypt files or extort payment. Option C is wrong because a keylogger records keystrokes to capture sensitive data like passwords, but it lacks the encryption and ransom-demanding functionality characteristic of ransomware.

291
Multi-Selecthard

Which THREE of the following are common attack vectors against IoT devices?

Select 3 answers
A.Container escape
B.Insecure protocols (e.g., MQTT, CoAP without encryption)
C.Firmware reversing and extraction of hardcoded secrets
D.TLS stripping attack
E.Default credentials
AnswersB, C, E

Many IoT devices rely on lightweight communication protocols such as MQTT or CoAP, which frequently lack built-in encryption or robust authentication by default. This inherent insecurity allows attackers to easily eavesdrop on sensitive data transmissions, inject malicious commands, or spoof device identities through simple network sniffing. Such vulnerabilities directly compromise data confidentiality, device integrity, and command authenticity, making them prime targets for unauthorized access and control.

Why this answer

Default credentials, insecure protocols (e.g., MQTT without TLS), and firmware reversing (to find hardcoded secrets) are common IoT attack vectors. TLS stripping is a network attack, and container escape is a cloud/container attack.

292
MCQmedium

Which of the following commands would a penetration tester use to enumerate SMB shares on a target Windows machine from a Linux system?

A.ldapsearch -x -h <IP>
B.smbclient -L //<IP> -N
C.snmpwalk -v2c -c public <IP>
D.nbtstat -A <IP>
AnswerB

smbclient -L //<IP> -N lists SMB shares on the target using a null session, requiring no credentials. It runs natively on Linux and enumerates share names, making it the appropriate tool for SMB share enumeration from a Linux system.

Why this answer

The `smbclient -L //<IP> -N` command lists SMB shares on a target Windows machine without requiring a password (null session). This is a standard enumeration technique because SMB uses TCP port 445 and the `-L` flag queries the share list, while `-N` suppresses the password prompt, allowing anonymous access if the target permits null sessions.

Exam trap

The trap here is that candidates may confuse `nbtstat` (a Windows-only command) with a Linux tool, or assume `ldapsearch` or `snmpwalk` can enumerate SMB shares because they are common enumeration commands, but they operate on entirely different protocols and services.

How to eliminate wrong answers

Option A is wrong because `ldapsearch -x -h <IP>` is used for LDAP directory queries (port 389/636), not for enumerating SMB shares. Option C is wrong because `snmpwalk -v2c -c public <IP>` queries SNMP MIB data (port 161) using the public community string, which enumerates system information but not SMB shares. Option D is wrong because `nbtstat -A <IP>` is a Windows command for NetBIOS name table lookups (port 137), not a Linux command, and it does not enumerate SMB shares; the Linux equivalent would be `nmblookup` or `nbtscan`.

293
MCQeasy

You are conducting a security assessment and need to map the network topology and identify routers, firewalls, and other network devices. Which technique is specifically designed to discover the path packets take to reach a destination and can reveal intermediate devices?

A.Traceroute
B.Banner grabbing
C.DNS enumeration
D.SNMP walk
AnswerA

Traceroute is a fundamental network diagnostic tool that maps the path a packet takes to reach a destination by strategically manipulating the IP packet's Time To Live (TTL) field. It sends a series of packets, starting with a TTL of 1 and incrementing it, causing intermediate routers to decrement the TTL to zero and respond with an ICMP Time Exceeded message. Each ICMP response reveals an intermediate router (hop), effectively tracing the full network path hop-by-hop and identifying the sequence of devices. This method is precisely designed for network topology discovery.

Why this answer

Traceroute is the correct technique because it is specifically designed to map the path packets take from a source to a destination by manipulating the Time-to-Live (TTL) field in IP headers. As each hop decrements the TTL, routers along the path send ICMP Time Exceeded messages (or UDP responses in some implementations), revealing their IP addresses and thus identifying intermediate devices like routers and firewalls.

Exam trap

The trap here is that candidates often confuse traceroute with ping (which only tests reachability and RTT, not hop-by-hop path discovery) or assume banner grabbing can reveal network topology, but only traceroute systematically identifies each intermediate device along the route.

How to eliminate wrong answers

Option B is wrong because banner grabbing is used to retrieve service banners (e.g., HTTP Server header, SSH version) from open ports to identify running services and versions, not to discover network path or intermediate devices. Option C is wrong because DNS enumeration is a technique to gather DNS records (e.g., A, MX, NS) and subdomains from a DNS server to map domain infrastructure, not to trace packet routes. Option D is wrong because an SNMP walk retrieves the entire Management Information Base (MIB) tree from an SNMP-enabled device to read configuration and performance data, not to discover the path packets take through the network.

294
MCQmedium

A security team wants to test their web application for vulnerabilities. Which Burp Suite tool is BEST suited for automating attacks like brute-force or fuzzing?

A.Proxy
B.Repeater
C.Intruder
D.Scanner
AnswerC

Intruder is specifically designed for automating customized attacks against web applications by systematically injecting multiple payloads into designated insertion points within HTTP requests. It excels at tasks like brute-forcing credentials, fuzzing parameters for injection vulnerabilities (SQLi, XSS), and enumerating valid inputs by delivering a large number of varied payloads and analyzing the responses. Its highly configurable payload generation and attack types make it the ideal tool for automated vulnerability discovery.

Why this answer

Intruder is designed for automated customized attacks including brute-force, fuzzing, and credential stuffing.

295
MCQeasy

Which command-line tool is specifically designed to extract email addresses, subdomains, and other information from public sources (e.g., search engines, social media) for a given domain?

A.Metasploit
B.Nmap
C.theHarvester
D.Wireshark
AnswerC

theHarvester is a specialized command-line tool explicitly engineered for passive information gathering, or Open Source Intelligence (OSINT), by querying public data sources. It systematically extracts valuable intelligence such as email addresses, subdomains, hostnames, employee names, and banner information from search engines like Google and Bing, as well as public databases like Shodan and Hunter.io, without directly interacting with the target network.

Why this answer

theHarvester is a dedicated open-source intelligence (OSINT) tool designed to gather emails, subdomains, IPs, and employee names from public sources such as Google, Bing, LinkedIn, and PGP key servers. It specifically targets a given domain and queries search engines and social media APIs to extract this reconnaissance data, making it the correct choice for this task.

Exam trap

The trap here is that candidates may confuse theHarvester with Nmap or Metasploit because all three are used in reconnaissance, but only theHarvester specializes in passive OSINT gathering from public sources rather than active scanning or exploitation.

How to eliminate wrong answers

Option A is wrong because Metasploit is a penetration testing framework focused on exploit development and payload delivery, not passive information gathering from public sources. Option B is wrong because Nmap is a network scanning tool that discovers live hosts and open ports via raw packet probes, not designed to extract email addresses or subdomains from search engines. Option D is wrong because Wireshark is a packet analyzer that captures and inspects network traffic at the data-link layer, not a tool for querying public sources for domain-related information.

296
Multi-Selectmedium

Which TWO of the following are valid techniques used in password spraying attacks? (Choose 2.)

Select 2 answers
A.Using previously compromised username/password pairs from a breach
B.Capturing keystrokes to obtain a user's password
C.Trying every possible password from a dictionary against a single username
D.Using a list of common passwords (e.g., 'Password123', 'Welcome1') against a large set of usernames
E.Attempting a single common password across multiple users, then trying the next common password
AnswersD, E

Password spraying is a low-and-slow attack strategy where an attacker uses a small, curated list of extremely common or default passwords against a very large number of usernames within a target system. The primary goal is to avoid triggering account lockout thresholds, which typically activate after multiple failed login attempts on a *single user account*, by distributing the password attempts horizontally across many accounts.

Why this answer

Password spraying is defined by trying a small number of common passwords against many accounts to avoid lockout thresholds, and both D and E describe exactly this. Option D is correct because it uses a list of common passwords such as 'Password123' and 'Welcome1' against a large set of usernames, which is the classic horizontal brute-force pattern. Option E is correct because it attempts one common password across multiple users before moving to the next common password, which is the defining low-and-slow technique that evades account lockout policies.

Option A is credential stuffing, not spraying, since it replays previously compromised username/password pairs. Option B is keylogging, a host-based credential theft technique, not a password spraying method. Option C is a traditional brute-force attack against a single username, which is vertical rather than horizontal and would trigger lockouts.

Exam trap

CEH often tests the confusion between password spraying (few passwords, many users) and brute-force/dictionary attacks (many passwords, one user) or credential stuffing (known breached credentials).

297
MCQhard

A security analyst is investigating a compromised Linux system. The /var/log/auth.log file appears to be truncated, and the timestamps on several binaries in /bin/ have been modified. Which of the following tools or techniques is the attacker MOST likely using to cover tracks?

A.Timestamp manipulation tool
B.Rootkit
C.Steganography
D.Log cleaner script
AnswerB

A rootkit is a collection of tools designed to obtain and maintain privileged access on a computer while actively hiding its presence from administrators and security software. It achieves this by replacing legitimate system binaries with malicious versions, hooking system calls to manipulate output (e.g., hiding processes or files), and modifying log files to erase traces of its activity. This comprehensive subversion of the operating system allows an attacker to maintain persistent, stealthy control over the compromised Linux system.

Why this answer

The attacker is most likely using a rootkit to cover tracks because rootkits are designed to hide malicious activity by intercepting system calls (e.g., via LD_PRELOAD or kernel modules) to hide processes, files, and network connections. The truncated auth.log and modified timestamps on binaries in /bin/ indicate the rootkit is actively tampering with system logs and file metadata to evade detection, which aligns with rootkit behavior rather than simpler tools.

Exam trap

The trap here is that candidates often confuse a simple log cleaner script (Option D) with the full capability of a rootkit, failing to recognize that only a rootkit can simultaneously hide processes, modify binary timestamps, and intercept log writes at the system call level.

How to eliminate wrong answers

Option A is wrong because timestamp manipulation tools (e.g., touch -t) can modify file timestamps but do not truncate logs or hide ongoing malicious activity; they are a one-off action, not a persistent concealment technique. Option C is wrong because steganography hides data within other files (e.g., images) and is unrelated to log truncation or binary timestamp modification; it is a data exfiltration or covert communication method, not a track-covering mechanism. Option D is wrong because a log cleaner script (e.g., logrotate abuse or sed on auth.log) can delete or truncate logs but cannot modify timestamps on system binaries or hide processes; it is a simpler tool that lacks the system-level interception capabilities of a rootkit.

298
MCQmedium

A penetration tester runs the following command: masscan 10.0.0.0/24 -p80,443,8080 --rate=10000. Compared to Nmap, what is the PRIMARY advantage of using Masscan for this scan?

A.Masscan can scan a large number of hosts and ports at very high speed
B.Masscan provides more detailed service version detection than Nmap
C.Masscan is stealthier than Nmap and less likely to be detected
D.Masscan can scan all 65535 ports faster than Nmap
AnswerA

Masscan is specifically engineered for high-performance, asynchronous SYN scanning across vast IP ranges. Its custom TCP/IP stack allows it to send SYN packets and process SYN-ACK responses at rates exceeding millions of packets per second, far surpassing traditional scanners. This design enables rapid discovery of open ports across entire internet segments or all 65,535 ports on numerous targets, making it ideal for large-scale reconnaissance.

Why this answer

Masscan is designed for asynchronous, high-speed scanning, capable of transmitting packets at rates exceeding 10 million packets per second. In this command, the `--rate=10000` parameter sets a transmission rate of 10,000 packets per second, allowing it to scan the entire 10.0.0.0/24 subnet (256 hosts) for three ports in a fraction of the time Nmap would require. Nmap, while feature-rich, operates synchronously by default and cannot match Masscan's raw packet throughput for large-scale port scanning.

Exam trap

EC-Council often tests the misconception that Masscan is stealthier than Nmap, but in reality, its high packet rate makes it more detectable, and the trap here is that candidates confuse speed with stealth.

How to eliminate wrong answers

Option B is wrong because Masscan does not perform service version detection; it is a raw port scanner that only identifies open ports, whereas Nmap's `-sV` flag provides detailed service and version fingerprinting. Option C is wrong because Masscan is not inherently stealthier; its high-speed, asynchronous scanning often generates more conspicuous traffic patterns and can trigger IDS/IPS alerts more easily than Nmap's slower, more deliberate scans. Option D is wrong because while Masscan can scan all 65535 ports faster than Nmap, the question specifically asks about the PRIMARY advantage for the given command (which targets only three ports), and the core advantage is its high-speed scanning capability across many hosts, not just port range coverage.

299
MCQhard

During a penetration test, the tester finds that the Apache server is configured with directory listing enabled on the /uploads directory. The tester navigates to http://example.com/uploads/ and sees a list of files. Which of the following is the MOST immediate security concern?

A.Sensitive files may be exposed to unauthorized users
B.The server is running an outdated version of Apache
C.The server is vulnerable to cross-site scripting (XSS) attacks
D.An attacker can upload malicious files to the directory
AnswerA

Directory listing, when enabled on an Apache server, allows an attacker to browse the contents of a directory like a file system. This directly exposes the names and potentially the content of all files within that directory, including configuration files (e.g., .env, web.config), backup files (.bak, .zip), log files, or even source code, which could contain credentials or other sensitive data. Unauthorized access to such files represents a significant information disclosure vulnerability.

Why this answer

Directory listing exposes file names that may reveal sensitive information (e.g., backup files, config files). Attackers can then attempt to access these files directly, potentially leading to data disclosure.

300
MCQmedium

An attacker has gained access to a system and wants to erase evidence of their activities. Which of the following actions is MOST effective for covering tracks on a Windows system?

A.Disabling the Windows Firewall
B.Installing a rootkit
C.Clearing the Security event log
D.Changing the administrator password
AnswerC

Clearing the Security event log directly addresses the goal of erasing evidence because this log specifically records critical system events, including successful and failed login attempts, privilege escalations, object access, and other security-relevant actions. By deleting these entries, an attacker effectively removes the digital breadcrumbs that forensic investigators would use to reconstruct the timeline and nature of the intrusion. This action significantly hinders incident response and attribution efforts.

Why this answer

Clearing the Security event log (C) is the most effective action for covering tracks on a Windows system because it removes all logged security events, such as logon attempts, privilege use, and audit failures, which are the primary records that would reveal an attacker's activities. The Security log is maintained by the Windows Event Log service and is the default location for audit records under the Local Security Policy; deleting it eliminates forensic evidence of unauthorized access or changes.

Exam trap

EC-Council often tests the distinction between covering tracks (erasing evidence) and maintaining access or evading detection; the trap here is that candidates confuse installing a rootkit (which hides ongoing activity) with clearing logs (which removes past evidence), leading them to choose B instead of C.

How to eliminate wrong answers

Option A is wrong because disabling the Windows Firewall does not erase existing evidence of an attack; it only removes a network defense layer, which may actually draw attention by breaking connectivity or triggering alerts. Option B is wrong because installing a rootkit is a method for maintaining persistent access and hiding files/processes, not for erasing existing logs or evidence; it does not clear the Security event log and may itself be detected by advanced anti-rootkit tools. Option D is wrong because changing the administrator password does not delete any logged events; it only prevents the original administrator from logging in, but the Security log still contains records of the attacker's previous actions.

Page 3

Page 4 of 13

Page 5