ECCouncil certification · Exam 312-50v13

312-50v13 Mock Exam Page 3

Certified Ethical Hacker Exam CEHv13

Free 312-50v13 questions on Topic 3 : Exam Pool C, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Topic 3 : Exam Pool C questions

21–30 of 73 free
Question 21 Choose 1
Which type of malware spreads from one system to another or from one network to another and causes similar types of damage as viruses do to the infected system?
Show answerHide answer

Correct answer: B Trojan

Explanation

Explanation

The core characteristic described in the question—malware that spreads from one system or network to another and causes damage similar to viruses—is exactly the defining feature of a worm. According to the IEEE Technology Navigator, worms are standalone programs that self-replicate and spread autonomously across networks without requiring a host program or user interaction. The key distinction from viruses is that viruses must attach to existing executable files or require user action to spread, whereas worms can propagate on their own by exploiting network services and system vulnerabilities. A classic example is the WannaCry worm, which spread to over 150 countries within 24 hours by exploiting the EternalBlue vulnerability in Windows SMBv1. The payload carried by a worm can execute the same type of destructive functions as a virus, such as data encryption, deletion, or backdoor installation.

Why the Other Options Are Incorrect

A (Rootkit): A rootkit is designed to hide the presence of malware by concealing processes, files, and registry entries. It does not possess self-replication or autonomous network-spreading capabilities, and its primary purpose is stealth rather than propagation.

B (Trojan): A Trojan is malware disguised as legitimate software to trick users into executing it. It does not self-replicate and typically requires user action to spread; it cannot autonomously move from system to system like a worm.

D (Adware): Adware displays unwanted advertisements and may bundle with other software, but it is not defined by self-replication or autonomous network propagation, and its primary objective is advertising revenue, not causing virus-like damage.

References

IEEE Technology Navigator: Worms are standalone programs that self-replicate and spread across networks without a host program or user interaction.
Question 22 Choose 1
Bob, your senior colleague, has sent you a mail regarding a deal with one of the clients. You are requested to accept the offer and you oblige. After 2 days, Bab denies that he had ever sent a mail. What do you want to ““know”” to prove yourself that it was Bob who had send a mail?
Show answerHide answer

Correct answer: A Non-Repudiation

Explanation

Explanation

To prove that an email was indeed sent by Bob and to prevent Bob from later denying it, what is needed is Non-Repudiation. The core meaning of non-repudiation is: the sender cannot later deny having sent the message, and the recipient cannot deny having received it. This is typically achieved through digital signatures—the sender signs with their private key, and anyone can verify the signature using the sender's public key. Since only Bob possesses his private key, a valid signature proves that the message originated from Bob, and Bob cannot deny it. Microsoft's official documentation explicitly states that digital signatures provide non-repudiation, "preventing the signature owner from denying their signature" .

Why the Other Options Are Incorrect

B (Integrity): Integrity ensures that the message has not been tampered with during transmission, but it cannot prove who sent the message, nor can it prevent the sender from denying it. An attacker could tamper with the message and recompute the hash, so integrity alone does not establish the sender's identity.

C (Authentication): Authentication verifies identity at the time of access (such as logging in with a password), but it cannot prevent the sender from later denying "I never sent that email." Authentication proves who you are at a given moment; non-repudiation proves who sent a specific message and binds that proof to the sender so they cannot deny it later.

D (Confidentiality): Confidentiality ensures that the message content is not read by unauthorized parties, which is unrelated to "proving who sent the email."

References

Microsoft Learn: Digital signatures provide non-repudiation, preventing the signer from denying their signature .
Question 23 Choose 1
An attacker utilizes a Wi-Fi Pineapple to run an access point with a legitimate-looking SSID for a nearby business in order to capture the wireless password. What kind of attack is this?
Show answerHide answer

Correct answer: B Evil-twin attack

Explanation

Explanation

The scenario describes an attacker using a Wi-Fi Pineapple to set up an access point with a legitimate-looking SSID of a nearby business to capture the wireless password. This is the classic definition of an evil twin attack: an adversary sets up a fraudulent access point that mimics a legitimate network's name (SSID) and often its MAC address (BSSID), tricking users into connecting to the fake AP . Once a victim connects, the attacker can capture credentials through fake authentication pages, intercept traffic, or perform man-in-the-middle attacks .

The Wi-Fi Pineapple is specifically designed for this purpose. Its PineAP functionality includes an EvilWPA access point that can be configured to impersonate an existing encrypted access point when the encryption key is known, and it can also capture partial WPA handshakes for offline password cracking . This directly matches the scenario of using a Pineapple to capture the wireless password.

Why the Other Options Are Incorrect

A (MAC spoofing attack): MAC spoofing is a technique where an adversary forges a MAC address to impersonate a legitimate client or AP . While evil twin attacks may use MAC spoofing as part of the attack (to clone the BSSID), MAC spoofing itself is not the attack type described—it is merely a component. The question describes the overall goal of mimicking an SSID to capture a password, which is evil twin.

C (War driving attack): War driving is the act of locating wireless networks from a moving vehicle using a wireless NIC . It is a reconnaissance activity, not an attack that sets up a fake AP to capture credentials.

D (Phishing attack): Phishing is a social engineering attack typically conducted via email, SMS, or fake websites to trick users into revealing sensitive information . While evil twin attacks can lead to phishing (e.g., a fake captive portal), the wireless-specific attack of setting up a rogue AP with a spoofed SSID is categorized as an evil twin, not phishing itself.

References

IEEE Computer Society: Evil Twin attack involves an adversary setting up a fraudulent AP that mimics a legitimate network's SSID and BSSID, tricking users into connecting .
Question 24 Choose 1
Calvin, a software developer, uses a feature that helps him auto-generate the content of a web page without manual involvement and is integrated with SSI directives. This leads to a vulnerability in the developed web application as this feature accepts remote user inputs and uses them on the page. Hackers can exploit this feature and pass malicious SSI directives as input values to perform malicious activities such as modifying and erasing server files. What is the type of injection attack Calvin's web application is susceptible to?
Show answerHide answer

Correct answer: D Server-side includes injection

Explanation

Explanation

The scenario explicitly describes a feature that "auto-generates web page content" and is "integrated with SSI directives," where the application accepts remote user input and uses it on the page, allowing attackers to pass malicious SSI directives to modify or erase server files. This is the exact definition of Server-Side Includes (SSI) Injection.

OWASP defines SSI injection as an attack where user input is not properly validated, allowing an attacker to inject SSI directives that the web server parses and executes before serving the page . The vulnerability condition is precisely what the scenario describes: the server processes the page for SSI directives, and user-controllable input reaches that page without neutralization . Successful exploitation can lead to file manipulation, command execution, and access to sensitive information .

Why the Other Options Are Incorrect

A (Server-side template injection): SSTI targets template engines (such as Jinja2 or Twig) where user input is evaluated as template expressions (e.g., {{7*7}}) . The scenario specifically mentions SSI directives, not template expressions, and the payloads and underlying mechanisms are different.

B (Server-side JS injection): This involves injecting JavaScript that executes on the server side (e.g., Node.js). The scenario describes SSI directives, which are a web server feature, not JavaScript execution.

C (CRLF injection): CRLF injection involves injecting carriage return and line feed characters to manipulate HTTP headers or logs. The scenario describes injecting SSI directives to modify server files, which is unrelated to header manipulation.

References

OWASP WSTG: SSI injection occurs when user input is not validated and the server executes injected SSI directives .
Question 25 Choose 1
The security team of Debry Inc. decided to upgrade Wi-Fi security to thwart attacks such as dictionary attacks and key recovery attacks. For this purpose, the security team started implementing cutting-edge technology that uses a modern key establishment protocol called the simultaneous authentication of equals (SAE), also known as dragonfly key exchange, which replaces the PSK concept. What is the Wi-Fi encryption technology implemented by Debry Inc.?
Show answerHide answer

Correct answer: D WPA3

Explanation

Explanation

The Wi-Fi encryption technology described in the question is WPA3. WPA3-Personal replaces the Pre-Shared Key (PSK) handshake used in WPA2 with Simultaneous Authentication of Equals (SAE), also known as the Dragonfly key exchange . The core security improvement of SAE is that it thwarts offline dictionary attacks and key recovery attacks—the very threats the question states Debry Inc. wants to stop. In WPA2-PSK, an attacker can capture the four-way handshake and take it offline to guess the password; SAE forces every password guess to require an active, online interaction with the access point, which can be rate-limited and detected .

Why the Other Options Are Incorrect

A (WEP): Wired Equivalent Privacy is the oldest and weakest protocol, fundamentally broken due to flawed RC4 implementation and static keys. It offers no protection against modern dictionary or key recovery attacks.

B (WPA): WPA was an interim fix over WEP, still relying on TKIP and the PSK concept. It does not use SAE or Dragonfly and remains vulnerable to offline dictionary attacks against captured handshakes.

C (WPA2): WPA2 introduced AES-CCMP but retained the PSK four-way handshake. Its handshake is precisely what enables offline dictionary attacks, which is the weakness SAE was designed to eliminate .

References

eduroam/Wi-Fi Alliance guidance: WPA3-SAE replaces the WPA2-PSK algorithm with the "Dragonfly" algorithm .

Question 26 Choose 1
A large e-commerce organization is planning to implement a vulnerability assessment solution to enhance its security posture. They require a solution that imitates the outside view of attackers, performs well-organized inference-based testing, scans automatically against continuously updated databases, and supports multiple networks. Given these requirements, which type of vulnerability assessment solution would be most appropriate?
Show answerHide answer

Correct answer: B Service-based solution offered by an auditing firm

Explanation

Explanation

The question asks for a solution that can "imitate the outside view of attackers" while also performing inference-based testing and automatically scanning against continuously updated databases. Among the options, only service-based solutions meet the first and most decisive requirement.

In CEH's classification, product-based solutions are installed inside the organization's internal network and cannot provide a true "outside-in" perspective—they are limited by firewalls and cannot see what an external attacker would see . In contrast, service-based solutions are provided by third-party auditing or security consulting firms that can perform scans from outside the network, effectively simulating an attacker's viewpoint . The HiTRUST whitepaper explicitly describes QualysGuard (a service-based offering) as mimicking the "'outside, looking in' perspective of a hacker" while using an inference-based scanning engine and a continuously updated vulnerability database . ExamTopics discussion of this exact question also confirms that the combination of external attacker perspective + inference-based testing + continuously updated databases points to a service-based solution .

Why the Other Options Are Incorrect

A (Inference-based assessment solution): This is a testing technique/strategy, not a deployment model. The question asks for a "type of vulnerability assessment solution," and inference-based assessment describes how scanning is performed, not where the solution is hosted or who operates it .

C (Tree-based assessment approach): Tree-based is another scanning strategy where different scan policies are applied to different system types. It does not inherently provide the outside-in attacker perspective .

D (Product-based solution installed on a private network): Product-based solutions are installed internally and, as CEH notes, "won't be able to give you an 'outside-in' assessment" . This directly contradicts the requirement to imitate the attacker's outside view.

References

CEH v12 Notes (GitHub): Product-based solutions cannot provide outside-in assessment; service-based solutions can perform both inside and outside assessments .

Question 27 Choose 1
Dayn, an attacker, wanted to detect if any honeypots are installed in a target network. For this purpose, he used a time-based TCP fingerprinting method to validate the response to a normal computer and the response of a honeypot to a manual SYN request. Which of the following techniques is employed by Dayn to detect honeypots?
Show answerHide answer

Correct answer: B Detecting the presence of Honeyd honeypots

Explanation

Explanation

The technique Dayn used—validating the response of a normal computer against the response of a honeypot to a manual SYN request using time-based TCP fingerprinting—is specifically designed to detect Honeyd honeypots. Honeyd is a low-interaction honeypot that emulates TCP/IP stack behavior for various OS profiles, but it often fails to fully replicate real timing behavior, resulting in timing inconsistencies or unrealistic latency when compared to real devices . By comparing the response timing of a suspected host against a known normal computer, an attacker can identify anomalies that indicate the presence of Honeyd .

Why the Other Options Are Incorrect

A (Detecting honeypots running on VMware): VMware detection relies on hardware/emulation artifacts, CPU/BIOS identifiers, or MAC/OUI patterns—not on time-based TCP response analysis .

C (Detecting the presence of Snort_inline honeypots): Snort_inline detection involves identifying packet manipulation or modification behaviors, not analyzing SYN response timing .

D (Detecting the presence of Sebek-based honeypots): Sebek is a data collection tool used inside honeypots; its detection involves memory or traffic analysis, not SYN timing tests .

References

ExamTopics discussion (312-50v13 Topic 1 Question 297): Confirms that time-based TCP fingerprinting is used to detect Honeyd honeypots, while the other options rely on different detection mechanisms .
Question 28 Choose 1
CyberTech Inc. recently experienced SQL injection attacks on its official website. The company appointed Bob, a security professional, to build and incorporate defensive strategies against such attacks. Bob adopted a practice whereby only a list of entities such as the data type, range, size, and value, which have been approved for secured access, is accepted. What is the defensive technique employed by Bob in the above scenario?
Show answerHide answer

Correct answer: C Whitelist validation

Explanation

Explanation

The defensive technique Bob adopted—accepting only a list of entities such as data type, range, size, and value that have been approved for secured access—is whitelist validation (also called allow-list validation). The core principle of whitelist validation is: define exactly what is authorized, and by definition, everything else is not authorized . OWASP explicitly recommends this approach for all user input fields: if the data is well-structured (such as dates, zip codes, email addresses), a strong validation pattern can be defined, usually based on regular expressions; if the input comes from a fixed set of options, the input must exactly match one of the values offered to the user . The scenario in the question—"only accepting data type, range, size, and value that have been approved"—is precisely the implementation of whitelist validation.

Why the Other Options Are Incorrect

A (Output encoding): Output encoding is a technique for escaping data at the output layer (such as HTML entity encoding) to prevent data from being interpreted as code. The scenario describes input acceptance rules, not output handling. Although output encoding is valuable for XSS defense, it is not the input filtering strategy described in the question.

B (Enforce least privileges): Least privilege means restricting the permissions of database accounts to the minimum necessary, to reduce the scope of damage after a successful SQL injection. This is an additional defense recommended by OWASP, but it does not involve "accepting only approved input values" . The scenario clearly describes an input validation policy, not permission configuration.

D (Blacklist validation): Blacklist validation attempts to reject known bad characters or patterns (such as single quotes or `1=1`). OWASP explicitly states that blacklist validation is a "massively flawed approach" because attackers can easily bypass it using encoding, case variations, or alternative syntax, and it frequently blocks legitimate input (such as the name O'Brian) . The scenario states Bob adopted the practice of "only accepting approved lists," which is the opposite of blacklist logic.

References

OWASP SQL Injection Prevention Cheat Sheet: Whitelist validation defines exactly what is authorized and rejects everything else; blacklist validation is described as a flawed approach .
Question 29 Choose 1
An ethical hacker has been tasked with assessing the security of a major corporation's network. She suspects the network uses default SNMP community strings. To exploit this, she plans to extract valuable network information using SNMP enumeration. Which tool could best help her to get the information without directly modifying any parameters within the SNMP agent’s management information base (MIB)?
Show answerHide answer

Correct answer: A snmp-check (snmp_enum Module) to gather a wide array of information about the target

Explanation

Explanation

The question emphasizes extracting information without directly modifying any parameters in the SNMP agent's MIB. This is precisely the core capability of SNMP enumeration tools: they use read-only operations (such as GET/GETNEXT) to query information from the agent, and never use SET requests to change any values.

snmp-check (and Metasploit's snmp_enum module) is designed for this purpose. It extracts a wide range of information from the target through read-only queries, including hostname, domain, hardware/storage information, network interfaces, running processes, user accounts, routing tables, listening ports, software components, etc. . This matches the goal of "extracting valuable network information using SNMP enumeration" described in the question.

Why the Other Options Are Incorrect

B (Nmap script to retrieve running processes and ports): Although Nmap's snmp-processes and related scripts can query specific information, their coverage is far less comprehensive than snmp-check, and the question asks for a tool that can "best help her obtain information," which refers to a comprehensive enumeration tool rather than a single-item query.

C (Oputits): The option itself states it is "mainly used for device management rather than SNMP enumeration," directly contradicting the task requirements.

D (SnmpWalk, with a command to change OID values): The snmpwalk tool itself only performs read-only tree traversal (using GETNEXT) . However, the option describes "changing OID values," which requires a SET operation, directly violating the question's constraint of "without directly modifying any parameters in the MIB."

References

Ubuntu snmpcheck man page and RPM description: snmp-check supports enumeration of hostname, domain, network interfaces, processes, user accounts, and other information .
Question 30 Choose 1
Jude, a pen tester working in Keiltech Ltd., performs sophisticated security testing on his company's network infrastructure to identify security loopholes. In this process, he started to circumvent the network protection tools and firewalls used in the company. He employed a technique that can create forged TCP sessions by carrying out multiple SYN, ACK, and RST or FIN packets. Further, this process allowed Jude to execute DDoS attacks that can exhaust the network resources. What is the attack technique used by Jude for finding loopholes in the above scenario?
Show answerHide answer

Correct answer: C Spoofed session flood attack

Explanation

Explanation

The core characteristic described in the question is: creating forged TCP sessions by sending multiple SYN, ACK, and RST/FIN packets, and using this to launch a DDoS attack that exhausts network resources. This is precisely the Spoofed Session Flood Attack (also known as Fake Session Attack).

According to Indusface's authoritative explanation, attackers in this attack send fake SYN packets, followed by multiple ACK packets, and finally one or more RST or FIN packets. These packets, when combined, make the traffic appear to network protection tools as a complete legitimate TCP session, thereby evading detection and consuming system resources, ultimately leading to denial of service . Corero's description further confirms that this attack simulates one direction of a complete TCP session and exploits the characteristic of asymmetric routing (where inbound and outbound traffic takes different paths), making it difficult for defenses that only monitor inbound traffic to detect it. There are two common variants: one sends multiple SYN packets, then multiple ACK packets, and finally one or more FIN/RST packets; the other skips SYN and starts directly with ACK, then sends FIN/RST .

Why the Other Options Are Incorrect

A (UDP Flood Attack): This attack floods the target with massive amounts of UDP packets to exhaust bandwidth or processing resources, and does not involve TCP handshake procedures (SYN/ACK/RST/FIN), which does not match the question's description of "forging TCP sessions."

B (Ping-of-Death Attack): This sends oversized ICMP packets (exceeding the maximum IP packet length limit), causing target system crashes or restarts, and is unrelated to TCP session forgery.

D (Peer-to-Peer Attack): This typically refers to attacks that exploit P2P network characteristics (such as using P2P clients to launch distributed attacks) or attacks against P2P networks, which are unrelated to the TCP packet combination technique described in the question.

References

Indusface: Definition and mechanism of Spoofed Session Flood Attack—attackers craft fake SYN, ACK, and RST/FIN packets to simulate legitimate TCP sessions and exhaust resources .
Full mock exam

Sit the 312-50v13 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real 312-50v13 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full 312-50v13 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 551questions in the bank
  • Newmock on every attempt