ECCouncil certification · Exam 312-50v13

312-50v13 Mock Exam Page 15

Certified Ethical Hacker Exam CEHv13

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

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

Free 312-50v13 questions

141–150 of 164 free
Question 141 Choose 1
Dorian Is sending a digitally signed email to Polly, with which key is Dorian signing this message and how is Poly validating It?
Show answerHide answer

Correct answer: C Dorian is signing the message with his private key. and Poly will verify that the message came from Dorian by using Dorian's public key.

Explanation

Explanation

Digital signatures rely on asymmetric cryptography to provide authentication, integrity, and non-repudiation. The process works as follows:

1. Signing (Sender's Side): Dorian creates a hash of the message and then encrypts that hash using his own Private Key. This encrypted hash is the digital signature. Since only Dorian has access to his private key, this proves that the message originated from him.

2. Verification (Receiver's Side): Polly receives the message and the signature. She uses Dorian's Public Key to decrypt the signature, revealing the original hash. She then independently calculates the hash of the received message. If the two hashes match, it confirms that the message has not been altered (integrity) and was indeed signed by Dorian (authentication).

Therefore, Dorian signs with his Private Key, and Polly validates with Dorian's Public Key.

Why Other Options Are Incorrect

A: Signing with a public key is not possible in standard asymmetric cryptography because public keys are meant to be shared. Furthermore, verifying with a private key would require Polly to have Dorian's private key, which compromises security.

B: Signing with Polly's public key would not prove Dorian sent it, as anyone can access Polly's public key. This method is used for encryption (to ensure only Polly can read it), not for signing (to prove who sent it).

D: Dorian cannot sign with Polly's private key because he does not possess it. Private keys are kept secret by their owners.

References

EC-Council CEH v13 Official Curriculum: Module on Cryptography, specifically covering Digital Signatures, Public Key Infrastructure (PKI), and the roles of private vs. public keys in signing and verification.

Question 142 Choose 1
In the process of implementing a network vulnerability assessment strategy for a tech company, the security analyst is confronted with the following scenarios:

1) A legacy application is discovered on the network, which no longer receives updates from the vendor.
2) Several systems in the network are found running outdated versions of web browsers prone to distributed attacks.
3) The network firewall has been configured using default settings and passwords.
4) Certain TCP/IP protocols used in the organization are inherently insecure.

The security analyst decides to use vulnerability scanning software. Which of the following limitations of vulnerability assessment should the analyst be most cautious about in this context?
Show answerHide answer

Correct answer: C Vulnerability scanning software is limited in its ability to detect vulnerabilities at a given point in time

Explanation

Explanation

Vulnerability scanning tools are excellent at identifying technical weaknesses, such as outdated software (Scenario 2), default configurations (Scenario 3), and known protocol flaws (Scenario 4). However, a critical limitation of automated vulnerability scanners is their inability to understand the business context. They can report that a vulnerability exists (e.g., "CVE-2023-XXXX found on Server A"), but they cannot determine how that specific vulnerability impacts the company's critical business operations, financial data, or reputation.

For example, a vulnerability on a legacy application (Scenario 1) might be technically severe, but if that application is isolated and handles non-critical data, the business impact might be low. Conversely, a moderate vulnerability on a customer-facing payment gateway could have a catastrophic business impact. The analyst must manually correlate the technical findings with business risk to prioritize remediation effectively. Scanners provide data, not business risk analysis.

Why Other Options Are Incorrect

A: While true that scanners may struggle with complex logic errors in web apps, modern scanners (like Netsparker or Acunetix) do perform live tests and can detect many unexpected behaviors. This is a technical limitation, but not the most significant strategic limitation in the context of assessment strategy and prioritization.

C: Scanners are designed specifically to detect vulnerabilities at a given point in time. This is their primary function, not a limitation. The "point in time" nature is a characteristic of all static assessments, but it doesn't hinder the immediate identification of the listed issues.

D: While scanners can have bugs, this is a rare and general software quality issue. It is not a fundamental limitation of the assessment methodology itself. The inability to assess business impact is a inherent gap in automated tools that requires human intervention.

References

EC-Council CEH v13 Official Curriculum: Module on Vulnerability Analysis, which emphasizes the difference between vulnerability identification (automated) and risk assessment (manual/business-contextual).

Question 143 Choose 1
Which of the following Metasploit post-exploitation modules can be used to escalate privileges on Windows systems?
Show answerHide answer

Correct answer: A getsystem

Explanation

Explanation

The `getsystem` command in Metasploit is a post-exploitation script specifically designed for privilege escalation on Windows systems. It attempts to elevate the current user's privileges to the `SYSTEM` level, which is the highest privilege level on a Windows operating system. It achieves this by leveraging various techniques, such as token impersonation or exploiting specific Windows vulnerabilities (e.g., named pipe impersonation), to gain full control over the target machine. This allows the attacker to perform actions that require administrative or system-level rights, such as dumping password hashes, installing persistent backdoors, or modifying critical system files.

Why Other Options Are Incorrect

B (`getuid`): This command is used to identify the current user context under which the Meterpreter session is running. It displays the username and domain but does not change or escalate privileges.

C (`keylogrecorder`): This is a post-exploitation module used for information gathering. It records keystrokes entered by the user on the target system. While useful for stealing credentials, it does not escalate the attacker's privileges on the OS.

D (`autoroute`): This module is used for network pivoting. It adds routes to the target network subnet through the compromised host, allowing the attacker to access other machines on the internal network. It facilitates lateral movement but does not escalate local privileges on the current host.

References

EC-Council CEH v13 Official Curriculum: Module on System Hacking, specifically covering Post-Exploitation techniques and Privilege Escalation using tools like Metasploit.

Question 144 Choose 1
ping-* 6 192.168.0.101
Output:
Pinging 192.168.0.101 with 32 bytes of data:
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101:
Ping statistics for 192.168.0101
Packets: Sent = 6, Received = 6, Lost = 0 (0% loss).
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
What does the option * indicate?
Show answerHide answer

Correct answer: D n

Explanation

Explanation

In the command `ping -n 6 192.168.0.101`, the option `-n` specifies the number of echo requests (packets) to send. The output confirms this by showing "Packets: Sent = 6".

Option D (`n`): This is correct because `-n count` is the standard Windows `ping` parameter to define how many times the ping request should be sent. In Linux, the equivalent flag is `-c`.

Option A (`t`): This is incorrect. The `-t` flag in Windows ping means "ping continuously" until stopped manually (Ctrl+C). It does not take a number argument like `6` in this context.

Option B (`s`): This is incorrect. The `-s` flag is typically used in Linux/Unix `ping` to specify the packet size (payload), not the count. In Windows, packet size is set with `-l`.

Option C (`a`): This is incorrect. The `-a` flag in Windows ping resolves addresses to hostnames. It does not control the number of packets.

Therefore, the `*` in the question represents the letter `n`.

References

Microsoft Documentation: `ping` command parameters for Windows, where `-n count` defines the number of echo requests to send.

Question 145 Choose 1
As a security analyst for Sky Secure Inc., you are working with a client that uses a multi-cloud strategy, utilizing services from several cloud providers. The client wants to implement a system that will provide unified security management across all their cloud platforms. They need a solution that allows them to consistently enforce security policies, identify and respond to threats, and maintain visibility of all their cloud resources. Which of the following should you recommend as the best solution?
Show answerHide answer

Correct answer: C Use a Cloud Access Security Broker (CASB).

Explanation

Explanation

A Cloud Access Security Broker (CASB) is the ideal solution for organizations using a multi-cloud strategy. A CASB acts as an intermediary between users and cloud service providers, offering centralized visibility, compliance, data security, and threat protection across multiple cloud platforms (e.g., AWS, Azure, Google Cloud, SaaS applications).

Key benefits of a CASB in this scenario include:

1. Unified Visibility: It provides a single pane of glass to monitor activities across all cloud services, addressing the "visibility" requirement.

2. Consistent Policy Enforcement: Security policies (such as data loss prevention, access controls, and encryption) can be defined once and enforced uniformly across different cloud providers, ensuring consistency.

3. Threat Detection and Response: CASBs use analytics and machine learning to identify anomalous behavior and threats across the entire cloud environment, enabling a coordinated response.

Why Other Options Are Incorrect

A (Hardware-based firewall): Hardware firewalls are physical devices located on-premises. They cannot effectively secure or manage resources distributed across multiple public cloud environments, which rely on virtualized, software-defined networking.

B (Separate security management tools): Using separate tools for each platform creates silos, increases complexity, and makes it difficult to enforce consistent policies or gain unified visibility. This contradicts the client's goal of unified management.

D (Built-in security features): While cloud providers offer robust native security tools, they are specific to their own platforms. Relying solely on them results in fragmented management, inconsistent policy application, and a lack of cross-cloud correlation for threat detection.

References

EC-Council CEH v13 Official Curriculum: Module on Cloud Computing, specifically covering Cloud Security challenges and solutions like CASB, CWPP (Cloud Workload Protection Platform), and CSPM (Cloud Security Posture Management).

Question 146 Choose 1
You have compromised a server and successfully gained a root access. You want to pivot and pass traffic undetected over the network and evade any possible Intrusion Detection System. What is the best approach?
Show answerHide answer

Correct answer: C Install Cryptcat and encrypt outgoing packets from this server.

Explanation

Explanation

The best approach to pivot and pass traffic undetected while evading an Intrusion Detection System (IDS) is to encrypt the traffic. IDSs often rely on signature-based detection or deep packet inspection (DPI) to identify malicious payloads. By using a tool like Cryptcat (an encrypted version of Netcat), the attacker establishes an encrypted tunnel between the compromised server and their control machine. This encryption renders the payload unreadable to the IDS, preventing it from matching known attack signatures or analyzing the content for malicious intent. While the IDS might still see the volume of traffic or the connection itself, it cannot determine what is being transmitted, thus effectively evading content-based detection.

Why Other Options Are Incorrect

A (Alternate Data Streams): ADS is a feature of the NTFS file system used to hide data within files on a local disk. It is not a network protocol or technique for transmitting traffic over a network, so it is irrelevant to pivoting or evading network-based IDS.

B (Use HTTP): While HTTP traffic is common and often allowed through firewalls, standard HTTP is unencrypted. An IDS can easily inspect HTTP packets for malicious commands, shellcode, or suspicious patterns. Unless tunneled through HTTPS with valid certificates and proper obfuscation, plain HTTP is highly visible to modern IDS/IPS systems.

D (Install and use Telnet): Telnet is a legacy protocol that transmits all data, including credentials and commands, in plaintext. It offers no encryption whatsoever, making it extremely easy for an IDS or network sniffer to detect and analyze the malicious activity. It is the opposite of what is needed for evasion.

References

EC-Council CEH v13 Official Curriculum: Module on Evading IDS, Firewalls, and Honeypots, which emphasizes encryption and tunneling as primary methods to bypass signature-based detection.

Question 147 Choose 1
You're the security manager for a tech company that uses a database to store sensitive customer data. You have implemented countermeasures against SQL injection attacks. Recently, you noticed some suspicious activities and suspect an attacker is using SQL injection techniques. The attacker is believed to use different forms of payloads in his SQL queries. In the case of a successful SQL injection attack, which of the following payloads would have the most significant impact?
Show answerHide answer

Correct answer: C OR ‘a’='a; DROP TABLE members; --: This payload combines the manipulation of the WHERE clause with a destructive action, causing data loss

Question 148 Choose 1
A penetration tester is conducting an assessment of a web application for a financial institution. The application uses form-based authentication and does not implement account lockout policies after multiple failed login attempts. Interestingly, the application displays detailed error messages that disclose whether the username or password entered is incorrect. The tester also notices that the application uses HTTP headers to prevent clickjacking attacks but does not implement Content Security Policy (CSP). With these observations, which of the following attack methods would likely be the most effective for the penetration tester to exploit these vulnerabilities and attempt unauthorized access?
Show answerHide answer

Correct answer: A The tester could execute a Brute Force attack, leveraging the lack of account lockout policy and the verbose error messages to guess the correct credentials

Explanation

Explanation

The scenario explicitly highlights two critical weaknesses in the authentication mechanism:

1. No Account Lockout Policy: This allows an attacker to make unlimited login attempts without being blocked, rate-limited, or temporarily banned.

2. Verbose Error Messages: The application distinguishes between an invalid username and an invalid password. This is a form of User Enumeration. An attacker can first identify valid usernames by looking for the "Invalid Password" error (which implies the username exists) versus the "Invalid Username" error.

Combining these two factors makes a Brute Force (or more specifically, a Credential Stuffing/Dictionary) attack highly effective. The tester can systematically guess passwords for known valid usernames without fear of lockout, significantly increasing the success rate. The lack of a Content Security Policy (CSP) is a secondary issue that might facilitate other attacks like XSS, but it does not directly aid in bypassing authentication as effectively as the brute-force vector given the specific authentication flaws described.

Why Other Options Are Incorrect

B (SQL Injection): While SQLi is a severe vulnerability, the scenario does not provide evidence of input validation failures or database errors. The prompt focuses on authentication logic flaws (lockout and error messages), making brute force the direct exploitation of the stated vulnerabilities.

C (Cross-Site Scripting - XSS): Although the lack of CSP increases the risk of XSS, XSS is primarily used to steal session cookies after a user is authenticated or to trick users into performing actions. It is not the most direct method to gain initial unauthorized access via the login form compared to exploiting the weak brute-force defenses. Furthermore, clickjacking protection (X-Frame-Options) is unrelated to XSS.

D (Man-in-the-Middle - MitM): MitM attacks require the attacker to be positioned on the network path (e.g., same Wi-Fi). While possible, it is not an exploitation of the application's specific configuration flaws (no lockout, verbose errors) described in the prompt. Additionally, modifying HTTP headers for clickjacking is not a standard MitM goal; clickjacking is usually a client-side UI redressing attack.

References

EC-Council CEH v13 Official Curriculum: Module on Hacking Web Applications, specifically covering Authentication Attacks, Brute Force techniques, and the impact of verbose error messages.

Question 149 Choose 1
Thomas, a cloud security professional, is performing security assessment on cloud services to identify any loopholes. He detects a vulnerability in a bare-metal cloud server that can enable hackers to implant malicious backdoors in its firmware. He also identified that an installed backdoor can persist even if the server is reallocated to new clients or businesses that use it as an laaS.
What is the type of cloud attack that can be performed by exploiting the vulnerability discussed in the above scenario?
Show answerHide answer

Correct answer: C Cloudborne attack

Explanation

Explanation

The scenario describes a Cloudborne attack. This type of attack targets the underlying infrastructure of cloud services, specifically focusing on persistent threats that reside in the hardware or firmware layer (such as BIOS, UEFI, or BMC) rather than just the operating system or application layer.

In a bare-metal cloud environment, where physical servers are allocated to clients, implanting a backdoor in the firmware ensures that the malware survives standard cleanup procedures like OS reinstallation, disk wiping, or server reallocation to new tenants. This persistence allows the attacker to maintain access across different customers and sessions, making it a severe supply chain or infrastructure-level threat. The term "Cloudborne" refers to threats that are carried or persisted within the cloud infrastructure itself, often leveraging hypervisor or firmware vulnerabilities.

Why Other Options Are Incorrect

A (Man-in-the-cloud - MITC): This attack targets cloud synchronization tokens (e.g., for Dropbox, OneDrive) to intercept data between devices and cloud storage. It does not involve firmware persistence on bare-metal servers.

B (Cloud cryptojacking): This involves the unauthorized use of cloud computing resources to mine cryptocurrency. While it abuses resources, it typically operates at the application or VM level and does not require firmware-level persistence that survives server reallocation.

D (Metadata spoofing attack): This involves manipulating metadata associated with cloud instances or objects to mislead security controls or users. It is unrelated to firmware backdoors or persistent infrastructure compromises.

References

EC-Council CEH v13 Official Curriculum: Module on Cloud Computing, covering advanced threats such as hypervisor escapes, firmware attacks, and persistent threats in IaaS environments.

Question 150 Choose 1
in this form of encryption algorithm, every Individual block contains 64-bit data, and three keys are used, where each key consists of 56 bits. Which is this encryption algorithm?
Show answerHide answer

Correct answer: B Triple Data Encryption standard

Explanation

Explanation

The algorithm described is Triple Data Encryption Standard (3DES or TDEA).

3DES was developed to address the security weaknesses of the original DES (Data Encryption Standard) due to its short key length. It operates by applying the DES cipher algorithm three times to each data block.

- Block Size: Like standard DES, 3DES uses a block size of 64 bits.

- Keys: It uses three keys (Key1, Key2, and Key3). Although each key is technically 64 bits long, only 56 bits are used for encryption (the remaining 8 bits are parity bits). Therefore, the effective key length is 56×3=168 bits (though in practice, often 112 bits due to meet-in-the-middle attacks).

This matches the description perfectly: 64-bit data blocks and three 56-bit effective keys.

Why Other Options Are Incorrect

A (IDEA): The International Data Encryption Algorithm (IDEA) uses a 64-bit block size but utilizes a single 128-bit key, not three 56-bit keys.

C (MDS encryption algorithm): MDS (Matsumoto-Imai) is not a standard symmetric block cipher known for this specific configuration. It is more commonly associated with hash functions or specific academic ciphers that do not match the 3DES structure.

D (AES): The Advanced Encryption Standard (AES) uses a fixed block size of 128 bits and supports key sizes of 128, 192, or 256 bits. It does not use the 64-bit block/3-key structure described.

References

EC-Council CEH v13 Official Curriculum: Module on Cryptography, specifically covering Symmetric Encryption algorithms like DES, 3DES, and AES.

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