ECCouncil certification · Exam 312-50v13

312-50v13 Mock Exam Page 10

Certified Ethical Hacker Exam CEHv13

Free 312-50v13 mock exam questions 91–100, each with the answer and an explanation.

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

Free 312-50v13 questions

91–100 of 164 free
Question 91 Choose 1
Bill is a network administrator. He wants to eliminate unencrypted traffic inside his company's network. He decides to setup a SPAN port and capture all traffic to the datacenter. He immediately discovers unencrypted traffic in port UDP 161. what protocol is this port using and how can he secure that traffic?
Show answerHide answer

Correct answer: B SNMP and he should change it to SNMP V3

Explanation

Explanation:

UDP port 161 is the well-known port for SNMP (Simple Network Management Protocol), used for queries (GET/GETNEXT/GETBULK) and management operations. In SNMPv1 and SNMPv2c, community strings and all data travel in plaintext, which is why Bill's SPAN capture reveals unencrypted traffic on port 161. The correct remediation is to migrate to SNMPv3, which introduces the User-based Security Model (USM) providing authentication (MD5/SHA) and encryption (DES/AES) so that credentials and management data are protected in transit.

Why the other options are incorrect:

A (It is not necessary to perform any actions, as SNMP is not carrying important information) — SNMP exposes sensitive device and system information (interfaces, routing tables, configuration, sometimes credentials in older implementations). Leaving it in plaintext is a genuine security risk, so no action is not acceptable.

C (RPC and the best practice is to disable RPC completely) — Port 161 is SNMP, not RPC; RPC/portmapper uses TCP/UDP 111. The protocol identification is wrong.

D (SNMP and he should change it to SNMP v2, which is encrypted) — SNMPv2c is still unencrypted; only SNMPv3 provides encryption. SNMPv2 adds features like GETBULK and 64-bit counters but no confidentiality.

References:

EC-Council CEHv13 Official Courseware, Module 04: Enumeration (SNMP enumeration) and Module 13: Sniffing (plaintext protocol risks).
Question 92 Choose 1
Which of the following Bluetooth hacking techniques does an attacker use to send messages to users without the recipient’s consent, similar to email spamming?
Show answerHide answer

Correct answer: C Bluejacking

Explanation

Explanation

Bluejacking is a Bluetooth attack technique that sends unsolicited messages to nearby Bluetooth-enabled devices without the recipient's consent, similar to email spam. Attackers typically exploit the Bluetooth device's "discoverable" mode to scan for surrounding devices, then use the vCard or contact-sending feature to push messages (such as text or images) to the target device. The recipient has no knowledge of the sender's identity and cannot refuse to receive the message. The question's description of "sending messages without the recipient's consent, similar to email spam" precisely matches the definition of Bluejacking.

Why the Other Options Are Incorrect

A (Bluesmacking): This is a Denial of Service (DoS) attack that exploits Bluetooth protocol vulnerabilities by sending oversized or malformed packets to overwhelm the target device, causing it to crash or become unresponsive. It does not involve sending messages to users, but rather disrupts device functionality.

B (BlueSniffing): This refers to eavesdropping/sniffing on Bluetooth communications. The research demonstrates how to bypass Bluetooth's confidentiality protections to intercept data transmitted over the air. It is a passive interception technique, not one that actively sends messages to users.

D (Bluesnarfing): This refers to stealing information from a target device through a Bluetooth connection, such as contacts, emails, and photos. It targets data theft, not message spam.

References

IEEE Xplore: Bluejacking involves sending messages to connected Bluetooth devices, manipulating users into adding attackers to their contact lists.
Question 93 Choose 1
You want to do an ICMP scan on a remote computer using hping2. What is the proper syntax?
Show answerHide answer

Correct answer: D hping2 -1 host.domain.com

Explanation

Explanation

In hping2, the -1 (or --icmp) option explicitly switches the tool into ICMP mode. By default, hping2 sends ICMP echo-request packets in this mode, which is functionally similar to a standard ping but allows for more granular packet crafting and analysis. A practical example from a GIAC certification paper confirms that running hping2 -1 against a target results in the output "icmp mode set," demonstrating that this is the correct syntax for an ICMP scan.

Why the Other Options Are Incorrect

A (hping2 host.domain.com): Running hping2 without any mode flag defaults to TCP mode, not ICMP. It will attempt to send TCP packets to the target, which does not fulfill the requirement of an ICMP scan.

B (hping2 --set-ICMP host.domain.com): There is no such option as --set-ICMP in hping2. The correct long-form option for ICMP mode is --icmp.

C (hping2 -i host.domain.com): The -i option is used to set the interval between sending packets (for example, -i u1000 means an interval of 1000 microseconds), not to enable ICMP mode.

References

hping2 man page: -1 --icmp explicitly sets ICMP mode, with the default sending of ICMP echo-request.
Question 94 Choose 1
An IT company has just implemented new security controls to their network and system setup. As a Certified Ethical Hacker, your responsibility is to assess the possible vulnerabilities in the new setup. You are given the information that the network and system are adequately patched with the latest updates, and all employees have gone through recent cybersecurity awareness training. Considering the potential vulnerability sources,
what is the best initial approach to vulnerability assessment?
Show answerHide answer

Correct answer: A Checking for hardware and software misconfigurations to identify any possible loopholes

Explanation

Explanation

The question states that the network and systems are adequately patched and that employees have recently received security awareness training. This means two major vulnerability sources have already been addressed: missing patches and human factors (employee awareness). What remains to be verified is the third major category of vulnerabilities—configuration weaknesses.

In vulnerability assessment methodology, configuration weaknesses (such as incorrect firewall rules, insecure default settings, unnecessary services enabled, and improper permission configurations) are one of the most common and most easily overlooked vulnerability sources. Even when systems are fully patched, a single misconfiguration (such as an overly permissive access control rule or an unhardened service) can directly expose the system to attack. Therefore, the most direct and efficient initial approach is to check the correctness of hardware and software configurations and identify any vulnerabilities that may be exploited due to configuration errors.

Why the Other Options Are Incorrect

B (Assessing inherent technical weaknesses in the network): Inherent technical weaknesses refer to vulnerabilities that exist in the technology itself (such as protocol design flaws or software vulnerabilities). These types of issues are typically addressed through patching and vendor updates—which the question states have already been completed. Spending time revisiting inherent weaknesses is far less effective than checking configuration status.

C (Investigating whether former employees still have access): This is an access control governance issue that belongs to the account lifecycle management category. Although it is important, it is a local check of identity and permission management, not a comprehensive assessment of "vulnerability sources" in the network and system setup. Moreover, there is no evidence in the question suggesting a problem with former employee access.

D (Conducting social engineering tests): The question explicitly states that all employees have recently received cybersecurity awareness training. Although social engineering testing is valuable, in the current situation where training has just been completed and system patching is adequate, the urgency of testing the human layer is lower than that of technical configuration checks. More importantly, social engineering testing targets the "people" layer, not the "hardware and software configuration" layer that the question asks about.
Question 95 Choose 1
Samuel, a professional hacker, monitored and Intercepted already established traffic between Bob and a host machine to predict Bob's ISN. Using this ISN, Samuel sent spoofed packets with Bob's IP address to the host machine. The host machine responded with <| packet having an Incremented ISN. Consequently. Bob's connection got hung, and Samuel was able to communicate with the host machine on behalf of Bob. What is the type of attack performed by Samuel in the above scenario?
Show answerHide answer

Correct answer: B Blind hijacking

Explanation

Explanation

Samuel's operation fits the definition of Blind Hijacking in the CEH context. The core characteristic of this attack is: the attacker cannot directly observe the response packets from the target server, but instead predicts the ISN (Initial Sequence Number) through monitoring or inference, then forges packets to inject into the session and take over the communication. In the scenario, Samuel "monitored and intercepted the established traffic between Bob and the host to predict Bob's ISN"—this is the key step of blind hijacking: obtaining the information needed to predict the sequence number through sniffing, but not directly receiving the server's response. After sending spoofed packets, the host responds with an incremented ISN, causing Bob's connection to hang, and Samuel successfully communicates with the host on behalf of Bob, completing the session takeover.

Why the Other Options Are Incorrect

A (UDP hijacking): UDP is a connectionless protocol and does not involve ISN prediction or TCP handshake state. The scenario clearly involves TCP sequence numbers and connection state, so it does not belong to UDP hijacking.

C (TCP/IP hacking): This is a broad term that encompasses multiple attack techniques, not a specific session hijacking type. In the CEH classification system, "TCP/IP hijacking" and "blind hijacking" are listed as parallel specific methods, and the scenario's characteristic of "predicting ISN without seeing responses" points precisely to blind hijacking.

D (Forbidden attack): This is a cryptographic attack against AES-GCM nonce reuse, unrelated to TCP session hijacking. It exploits the reuse of the same nonce during TLS encryption to forge authentication tags, and has nothing to do with the TCP sequence prediction in this scenario.

References

CEH Session Hijacking module classification: Blind Hijacking is defined as an attacker predicting ISN without directly observing responses, injecting forged packets to take over the session.
Question 96 Choose 1
John, a security analyst working for an organization, found a critical vulnerability on the organization's LAN that allows him to view financial and personal information about the rest of the employees. Before reporting the vulnerability, he examines the information shown by the vulnerability for two days without disclosing any information to third parties or other internal employees. He does so out of curiosity about the other employees and may take advantage of this information later. What would John be considered as?
Show answerHide answer

Correct answer: D Gray hat

Explanation

Explanation

John's behavior fits the classic definition of a gray hat hacker. The key point is that he discovered the vulnerability and did not immediately exploit it or leak it, but he also lacked proper authorization and oversight—out of personal curiosity, he browsed other employees' financial and personal information for two days, and may exploit this information in the future. This kind of behavior—"not maliciously damaging the system, but acting outside legal or ethical boundaries"—is precisely the core characteristic that distinguishes gray hats from white hats and black hats.

According to the CIS Center for Internet Security definition, gray hats are "security researchers, businesses, or enthusiasts walking the line between ethical and illegal hacking"; they may discover vulnerabilities without authorization, but typically do not exploit them or sell them on the black market. CERN's documentation further points out that gray hats possess white hat skills and intent, "but occasionally use their knowledge for purposes that are not entirely noble". John's behavior—accessing sensitive information out of personal curiosity and potentially exploiting it later—falls exactly into this gray zone.

Why the Other Options Are Incorrect

A (Cybercriminal): Cybercriminals clearly operate for illegal profit, such as stealing data for financial gain or extortion. John has not yet profited from this or caused damage; his behavior is in a gray area rather than outright criminal activity.

B (Black hat): Black hats are malicious hackers who exploit vulnerabilities for personal gain, causing damage, or stealing data. John did not actively attack or cause harm; he discovered the vulnerability while performing his duties and did not immediately exploit it, which does not match the malicious intent of a black hat.

C (White hat): The core of white hat behavior is responsible disclosure—discovering a vulnerability and immediately reporting it to the relevant party without unauthorized access or retention of sensitive information. John browsed sensitive information for two days and harbored potential exploitation motives; this violates the ethical standards of white hats.

References

CIS Center for Internet Security: Gray hats operate in the gray zone between ethical and illegal, may discover vulnerabilities without authorization, but typically do not exploit or sell them.
Question 97 Choose 1
Based on the below log, which of the following sentences are true?
Mar 1, 2016, 7:33:28 AM 10.240.250.23 - 54373 10.249.253.15 - 22 tcp_ip
Show answerHide answer

Correct answer: D Application is SSH and 10.240.250.23 is the client and 10.249.253.15 is the server.

Explanation

Explanation

The log entry follows the standard format: timestamp, source IP, source port, destination IP, destination port, protocol. Breaking it down:

Source: 10.240.250.23 with source port 54373 (a high, ephemeral port)

Destination: 10.249.253.15 with destination port 22 (the well-known port for SSH)

Protocol: tcp_ip

Port 22 is the registered port for SSH (Secure Shell), so the application is SSH. In a TCP connection, the client is the side that initiates the connection from a high ephemeral port, while the server listens on a well-known port. Therefore, 10.240.250.23:54373 is the client and 10.249.253.15:22 is the server.

Why the Other Options Are Incorrect

A (Application is FTP): FTP uses ports 20/21, not 22. The log clearly shows destination port 22, so it is not FTP.

B (10.240.250.23 is server, 10.249.253.15 is client): This reverses the roles. The server listens on port 22; the client connects from an ephemeral port. The log shows 10.249.253.15 as the destination on port 22, making it the server, not the client.

C (Impossible to know client/server because SSH is encrypted): Encryption affects the payload content, not the TCP header. The direction of connection initiation is determined by the port numbers in the TCP/IP header, which are visible regardless of payload encryption. The high-port-to-low-port pattern is sufficient to identify client and server.

References

IANA Service Name and Transport Protocol Port Number Registry: Port 22 is assigned to SSH.

TCP/IP fundamentals: The client uses an ephemeral port (typically 1024–65535) to connect to a server's well-known port (0–1023).
Question 98 Choose 1
What would you enter if you wanted to perform a stealth scan using Nmap?
Show answerHide answer

Correct answer: C nmap -sS

Explanation

Explanation

In Nmap, the -sS option stands for TCP SYN Scan, which is officially described by Nmap as the "TCP SYN (Stealth) Scan". Its stealthiness comes from the fact that it never completes the full TCP three-way handshake: it sends a SYN packet, and if it receives a SYN-ACK response (indicating the port is open), it immediately sends an RST packet to tear down the connection, thereby avoiding logging in the target application layer. This makes it less likely to be recorded by the target system than a full connection scan, and it is the most commonly used and relatively stealthy scanning method in Nmap.

Why the Other Options Are Incorrect

A (nmap -sM): This is the TCP Maimon scan, which sends FIN/ACK packets and relies on differences in target operating system responses to determine port status. It is not the standard command for "stealth scan" and is only effective against certain systems.

B (nmap -sU): This is a UDP scan, used to probe UDP ports (such as DNS 53, SNMP 161). UDP is connectionless and does not involve TCP handshakes, so it is unrelated to "stealth" and is typically slower and less reliable.

D (nmap -sT): This is the TCP Connect scan, which completes the full three-way handshake by invoking the system's connect() call. It is easily logged by the target application and is not stealthy—Nmap explicitly states that SYN scan is "stealthier than connect scan".

References

Nmap official documentation: -sS is labeled "TCP SYN (Stealth) Scan," and explicitly states that it is "stealthier than connect scan".

Nmap scan principle documentation: SYN scan does not complete the handshake, and when it finds an open port, it sends an RST to tear down the connection, thereby avoiding application-layer logging.
Question 99 Choose 1
Mason, a professional hacker, targets an organization and spreads Emotet malware through malicious script. After infecting the victim's device. Mason further used Emotet to spread the infection across local networks and beyond to compromise as many machines as possible. In this process, he used a tool, which is a selfextracting RAR file, to retrieve information related to network resources such as writable share drives. What is the tool employed by Mason in the above scenario?
Show answerHide answer

Correct answer: D Credential enumerator

Explanation

Explanation

The tool Mason used is the Credential enumerator. According to the Emotet analysis report published by the CIS Center for Internet Security (CIS) and the U.S. Cybersecurity and Infrastructure Security Agency (CISA), the credential enumerator is precisely a self-extracting RAR file containing two components: a bypass component and a service component. The bypass component is specifically responsible for enumerating network resources, finding writable shared drives via Server Message Block (SMB), or attempting to brute-force accounts including the administrator account; once an available system is discovered, the service component is written to that system, thereby writing Emotet to disk and achieving lateral spread. This matches perfectly with the description in the question of "retrieving information related to network resources such as writable share drives".

Why the Other Options Are Incorrect

A (NetPass.exe): Although this is also one of Emotet's spreader modules, its function is to recover network passwords stored on the system (including credentials from external drive credential files), not to enumerate network shared drives or perform lateral movement.

B (Outlook scraper): Its function is to scrape names and email addresses from victims' Outlook accounts and use this information to send additional phishing emails from compromised accounts; it is unrelated to network resource enumeration.

C (WebBrowserPassView): This is a password recovery tool that extracts credentials stored in browsers (such as Chrome, Firefox, IE) and passes them to the credential enumerator module; it does not itself possess the function of discovering writable shared drives.

References

CIS Center for Internet Security (MS-ISAC), Security Primer- Emotet: Explicitly defines Credential enumerator as a self-extracting RAR file whose bypass component enumerates network resources and finds writable SMB shares.
Question 100 Choose 1
In a large organization, a network security analyst discovered a series of packet captures that seem unusual. The network operates on a switched Ethernet environment. The security team suspects that an attacker might be using a sniffer tool. Which technique could the attacker be using to successfully carry out this attack, considering the switched nature of the network?
Show answerHide answer

Correct answer: B The attacker might be implementing MAC flooding to overwhelm the switch's memory

Explanation

Explanation

In a switched Ethernet environment, a switch forwards unicast frames only to the specific port associated with the destination MAC address, so passive sniffing normally cannot see traffic destined for other hosts.

MAC flooding is an active sniffing technique that exploits the switch's CAM (Content Addressable Memory) table capacity. When the table becomes overloaded with numerous MAC address entries, some switches may fail open and begin broadcasting frames to multiple ports, effectively behaving like a hub. This can expose network traffic to unintended recipients and compromise network confidentiality.

Why the Other Options Are Incorrect

A (Compromising physical security to plug in directly): Physically connecting to a switch port only lets an attacker see their own unicast traffic plus broadcast traffic. Without a SPAN/mirror port configured or an active attack performed, directly plugging in does not allow viewing other hosts' unicast traffic.

C (Using a Trojan with built-in sniffing capability): If a Trojan is installed on a target host, it can indeed sniff that host's traffic. However, the scenario focuses on the switched environment and the technique that could allow an attacker to observe traffic across the network. MAC flooding is the network-side technique relevant to the switch's forwarding behavior.

D (Passive sniffing): In a switched environment, passive sniffing can only see broadcast traffic and traffic destined for the attacker's own port; it cannot see unicast traffic between other hosts. Therefore, passive sniffing cannot effectively capture unrelated unicast traffic in a switched environment.

References

Debian macof man page: Describes MAC flooding and its potential to cause some switches to fail open in repeating mode, facilitating sniffing.
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