Home / EC-Council Certified Ethical Hacker (CEH v13) 312-50 / Mock exam
EC-Council Certified Ethical Hacker (CEH v13) 312-50 Exam-style mock test

CEH v13 Certified Ethical Hacker Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Reconnaissance, Footprinting, and Network Scanning
An ethical hacker is scoping a B2B SaaS provider and wants to gather details about the target without sending any packets that touch the company's own systems. Which activity fits this passive constraint?
・Running a full TCP connect scan against the exposed customer portal
Incorrect. A TCP connect scan actively sends packets to the target's portal, making it active reconnaissance.
✓Reviewing the company's cached pages and job postings via a search engine
Correct. Reading search-engine caches and public job postings collects intelligence without contacting the target's infrastructure, which is passive.
・Sending crafted DNS zone-transfer requests to the authoritative name server
Incorrect. A DNS zone-transfer request directly queries the target's name server, so it is an active technique.
・Enumerating SMB shares on the internal file server using null sessions
Incorrect. Enumerating SMB shares with null sessions interacts directly with the file server and is active reconnaissance.
Explanation
Passive reconnaissance gathers information from third-party or public sources without directly engaging the target, while active techniques send traffic to the target's systems.
Example2 · Enumeration, Vulnerability Analysis, and System Hacking
During an authorized assessment of a B2B SaaS provider, a tester finds that several load-balancer appliances still respond to SNMP using the default read community string. Which action lets the tester extract interface tables, running processes, and ARP caches from these appliances?
✓Query the devices with snmpwalk using the discovered public community string
Correct. snmpwalk with a valid read community string (such as the default public) walks the MIB tree and returns interface tables, process lists, and ARP caches.
・Launch a SYN flood against the SNMP UDP port to force the agents into verbose debug logging
Incorrect. A SYN flood is a TCP denial-of-service technique and does not enumerate SNMP MIB data from UDP-based agents.
・Send a DHCP starvation attack to the management VLAN so the appliances leak their configuration over broadcast
Incorrect. DHCP starvation exhausts an address pool and does not cause appliances to broadcast their SNMP configuration.
・Run an ARP cache poisoning attack between the appliances and the collector to intercept SNMP traps in transit
Incorrect. ARP poisoning to grab traps captures only event notifications already being sent, not the full MIB the tester wants to walk.
Explanation
SNMP enumeration relies on a valid community string; snmpwalk traverses the MIB to reveal rich device data when defaults like public remain enabled.
Example3 · Malware, Sniffing, Social Engineering, and Denial of Service
At a B2B SaaS firm, an endpoint silently encrypts shared project files and drops a note demanding payment in cryptocurrency to restore access. Which malware category best matches this behavior?
・A rootkit that hides kernel-level processes and intercepts system calls to evade antivirus detection tools
Incorrect. A rootkit conceals its presence and grants persistent access, but it does not encrypt files and demand payment for their recovery.
・A worm that self-propagates across network shares without any user interaction or payload
Incorrect. A worm spreads autonomously, yet the defining act here is extortion through file encryption, not mere propagation.
✓Ransomware
Correct. Ransomware encrypts victim files and demands payment, typically in cryptocurrency, to release the decryption key, which exactly matches the described behavior.
・A keylogger capturing credentials
Incorrect. A keylogger records keystrokes to steal data, not encrypt files or issue ransom demands.
Explanation
Encrypting files and demanding cryptocurrency payment for their recovery is the signature behavior of ransomware.
Example4 · Web, Wireless, Mobile, IoT, and OT Hacking
During an engagement at MercyLink Health, a tester enters ' OR '1'='1 into the patient-portal login username field and is granted access to another user's record without a valid password. Which vulnerability does this demonstrate?
・Cross-site scripting that reflects attacker-supplied script back into the rendered login page markup
Incorrect. XSS executes script in the browser; it does not bypass a backend authentication query the way injected SQL boolean logic does.
✓SQL injection where unsanitized input alters the authentication query logic
Correct. The ' OR '1'='1 payload injects into the SQL authentication statement, making the WHERE clause always true and bypassing the password check.
・Insecure direct object reference exposing records by ID
Incorrect. IDOR exploits predictable object references after access, not a tautology injected into the login query itself.
・Server-side request forgery against the backend
Incorrect. SSRF coerces the server to make requests; it is unrelated to a login tautology bypass.
Explanation
A tautology payload that forces the authentication query to evaluate true is the classic signature of SQL injection.
Example5 · Cryptography, Cloud Security, and Evading IDS, Firewalls, and Honeypots
A healthcare services firm must encrypt millions of patient records stored in its database so that bulk encryption is fast and efficient. The security architect wants a symmetric cipher that is a current government-approved standard. Which algorithm best fits this requirement?
・RSA with a 4096-bit modulus used to encrypt each record field individually
Incorrect. RSA is an asymmetric cipher that is far too slow and inappropriate for bulk encryption of large volumes of record data.
✓AES operating in a suitable block cipher mode of operation
Correct. AES is the approved symmetric block cipher designed for fast, efficient bulk encryption of data at rest.
・MD5 applied twice to each record before it is written to the database
Incorrect. MD5 is a hashing function, not an encryption algorithm, and is additionally considered broken.
・Diffie-Hellman key agreement performed once for every stored patient record
Incorrect. Diffie-Hellman is a key exchange protocol, not a bulk data encryption algorithm.
Explanation
AES is the standard symmetric block cipher used for efficient bulk encryption of data at rest; asymmetric and hashing primitives do not serve this purpose.
Example6 · Reconnaissance, Footprinting, and Network Scanning
During an authorized engagement against MercyLink Health Services, you must gather initial intelligence about the firm's public-facing domain without sending any packets to their production servers. Which action best fits this passive footprinting requirement?
・Launch an SYN scan against the published web server IP range to enumerate open service ports and banners
Incorrect. An SYN scan actively transmits packets to the target hosts, which is active reconnaissance rather than passive footprinting.
✓Query public WHOIS and DNS records to collect registrant contacts, name servers, and mail exchanger details
Correct. Querying third-party WHOIS and DNS data collects useful details without ever touching the target's own systems, matching passive footprinting.
・Send crafted ICMP echo requests to each host in the registered netblock to build a live-host map
Incorrect. Sending ICMP echo requests directly probes the target hosts and is therefore active, not passive, reconnaissance.
・Connect to the corporate SMTP relay and issue VRFY commands to validate employee mailbox names
Incorrect. Interacting with the SMTP relay transmits commands to the target infrastructure, making this an active technique.
Explanation
Passive footprinting relies on publicly available third-party sources such as WHOIS and DNS, avoiding any direct interaction with the target's systems.
Example7 · Reconnaissance, Footprinting, and Network Scanning
A tester engaged by the retail brand UrbanThread wants to enumerate subdomains and employee email formats without sending any traffic to UrbanThread's own servers. Which approach best fits this passive requirement?
✓Query certificate transparency logs, search engines, and public breach repositories for UrbanThread data
Correct. Certificate transparency logs, search engines, and breach repositories are third-party sources, so no packets reach UrbanThread, satisfying the passive constraint.
・Run an authenticated Nessus credentialed scan against each discovered UrbanThread subdomain
Incorrect. A credentialed Nessus scan actively connects to and authenticates against UrbanThread hosts, which is active, not passive.
・Launch an Nmap SYN scan sweep across the published UrbanThread IP ranges
Incorrect. An Nmap SYN sweep sends probe packets directly to UrbanThread IPs, making it an active technique.
・Send crafted HTTP OPTIONS requests directly to the UrbanThread web servers
Incorrect. Sending HTTP OPTIONS requests to the servers generates direct traffic, which is active reconnaissance.
Explanation
Passive footprinting relies only on third-party or publicly indexed sources so the target never observes the tester; any direct probe to the target's infrastructure is active.
Example8 · Reconnaissance, Footprinting, and Network Scanning
While footprinting the retailer UrbanThread, an analyst needs to learn which mail servers accept inbound email for urbanthread.com. Which DNS record type should the analyst query?
・The NS records that delegate authority for the urbanthread.com zone to its nameservers
Incorrect. NS records identify the authoritative nameservers for the zone, not the mail exchangers that receive email.
✓The MX records for the urbanthread.com domain
Correct. MX records specify the mail exchanger hosts responsible for accepting inbound email for the domain.
・The TXT records holding SPF and verification strings for urbanthread.com
Incorrect. TXT records may contain SPF or verification data but do not define which hosts receive mail.
・The A record mapping urbanthread.com to its web host
Incorrect. An A record maps a hostname to an IPv4 address and does not indicate mail-handling servers.
Explanation
MX (Mail Exchange) records explicitly list the hosts and priorities that accept inbound mail for a domain, making them the correct lookup for mail-server enumeration.
Example9 · Reconnaissance, Footprinting, and Network Scanning
During a scan of UrbanThread's DMZ, a tester wants to identify open ports while minimizing the number of fully established TCP connections logged by the retailer's application servers. Which Nmap scan is most suitable?
・A TCP connect scan (-sT) that completes the full three-way handshake on every probed port
Incorrect. A TCP connect scan finishes the full handshake, so each probe is typically logged by the application, which is what the tester wants to avoid.
✓A SYN stealth scan (-sS)
Correct. A SYN stealth scan sends a SYN and resets before completing the handshake, so fewer connections are fully established and logged.
・An Nmap ping sweep (-sn) that only checks whether the DMZ hosts are alive
Incorrect. A ping sweep only determines host liveness and does not enumerate open ports.
・A UDP scan (-sU) directed at the DMZ hosts
Incorrect. A UDP scan probes UDP ports and does not address the goal of discovering TCP ports with minimal logging.
Explanation
The SYN (half-open) scan never completes the three-way handshake, reducing the chance that the target application logs a full connection while still revealing open TCP ports.
Example10 · Reconnaissance, Footprinting, and Network Scanning
During an engagement against a regional bank, the tester must gather intelligence about the bank's public infrastructure without sending any packets that touch the bank's own systems or alerting its security team. Which approach best satisfies this constraint?
・Launching a SYN scan against the bank's published web server address range to enumerate open ports and running services quietly
Incorrect. A SYN scan sends packets directly to the bank's hosts, which is active reconnaissance and can trigger alerts.
✓Querying WHOIS records, search engines, and certificate transparency logs for the bank's domains
Correct. WHOIS, search engines, and certificate transparency are third-party sources, so no packets reach the target, making this passive reconnaissance.
・Running a full connect scan through an anonymizing proxy so the traffic appears to originate from an unrelated third-party host
Incorrect. Even through a proxy the connect scan still delivers packets to the bank's systems, so it remains active and detectable at the target.
・Sending crafted ICMP timestamp requests to the bank's perimeter firewall to map live hosts in the DMZ
Incorrect. Sending ICMP timestamp requests to the firewall is active probing that interacts with the target and can be logged.
Explanation
Passive reconnaissance collects information from third-party sources without interacting with the target's systems, whereas any packet sent to the target, even via a proxy, is active reconnaissance.
Example11 · Reconnaissance, Footprinting, and Network Scanning
A tester profiling an insurance firm wants to retrieve the full list of hostnames in the firm's DNS zone in a single query. Which technique should the tester attempt first against a misconfigured name server?
✓A DNS zone transfer (AXFR) request to the authoritative name server
Correct. An AXFR zone transfer, if allowed, returns the entire zone's records in one request, exposing all hostnames at once.
・A reverse DNS PTR lookup on one of the firm's public IP addresses
Incorrect. A reverse PTR lookup resolves a single address to one name and does not dump the full zone.
・A WHOIS query against the domain registrar to read registrant contact details
Incorrect. WHOIS returns registration and contact data, not the DNS host records within the zone.
・An iterative brute-force of common subdomain names using a large prebuilt wordlist against the resolver
Incorrect. Subdomain brute-forcing can discover names but requires many queries and will not return the zone in a single request.
Explanation
A zone transfer (AXFR) against a misconfigured server returns all records in the zone at once, which is why it is the first technique to try for complete hostname enumeration.
Example12 · Reconnaissance, Footprinting, and Network Scanning
An ethical hacker is footprinting Harwell Industrial Supply, a manufacturing distributor, and must gather intelligence without sending any packets to the target's own systems. Which activity stays within passive reconnaissance?
・Running an SYN scan with Nmap against the distributor's external IP range to enumerate open service ports
Incorrect. An SYN scan transmits crafted packets to the target, making it an active scanning technique that touches the distributor's systems.
✓Searching cached pages and historical snapshots of the distributor's site through a third-party archive service
Correct. Reviewing archived or cached copies of the site through a third-party service collects data without ever contacting the target, so it is passive.
・Launching an authenticated vulnerability scan of the public web server that hosts the distributor's parts catalog
Incorrect. An authenticated vulnerability scan actively probes the distributor's web server and interacts with its services directly.
・Using a banner-grabbing tool to connect directly to the distributor's SMTP server and read its version string
Incorrect. Connecting to the SMTP server to grab its banner sends traffic to the target and is therefore active reconnaissance.
Explanation
Passive reconnaissance gathers information without directly engaging the target's infrastructure; using third-party archives meets that definition while scans and banner grabs send packets to the target.
Example13 · Reconnaissance, Footprinting, and Network Scanning
While footprinting Harwell Industrial Supply, an analyst wants to pull the complete list of DNS records for the harwell-supply.com zone in a single transfer from a misconfigured name server. Which query should the analyst attempt?
・A reverse PTR lookup that resolves one known warehouse IP address back to its registered hostname
Incorrect. A reverse PTR lookup returns the hostname for one IP address and does not dump the entire zone.
・A standard A record lookup for the www host that returns a single IPv4 address for the catalog site
Incorrect. An A record lookup resolves a single host to its address and reveals only that one mapping.
✓A zone transfer (AXFR) request to the authoritative name server to retrieve every record in the zone
Correct. An AXFR zone transfer, if the server is misconfigured to allow it, returns all records in the zone at once.
・An MX record query asking the name server which mail exchangers accept email for the company domain
Incorrect. An MX query only lists the mail exchangers for the domain, not the complete set of zone records.
Explanation
A full zone transfer (AXFR) against a permissive name server exposes every record in the zone, which is exactly the enumeration the analyst wants; the other queries each return only a narrow slice.
Example14 · Reconnaissance, Footprinting, and Network Scanning
During an authorized engagement against NovaTel, a national telecom operator, the tester must map employee names, job titles, and internal technologies without sending any packet to NovaTel's own infrastructure. Which approach best satisfies this passive-only requirement?
✓Mine public sources such as LinkedIn profiles, job postings, and press releases held by third-party sites
Correct. Harvesting data from third-party public sources never touches NovaTel systems, so it is fully passive footprinting.
・Run an authenticated Nessus credentialed scan against the NovaTel staff directory server to enumerate accounts
Incorrect. A credentialed Nessus scan actively connects to and queries NovaTel's own server, which is active reconnaissance.
・Send crafted SNMP GET requests to NovaTel's edge routers to retrieve device sysContact strings
Incorrect. Sending SNMP GET requests directly to NovaTel routers is active probing of the target's infrastructure.
・Perform a full TCP connect scan of the NovaTel corporate address range and banner-grab each service
Incorrect. A TCP connect scan with banner grabbing sends packets to the target and is clearly active reconnaissance.
Explanation
Passive footprinting relies only on third-party or public data and never interacts with the target's own assets; the other options all transmit packets to NovaTel systems.
Example15 · Reconnaissance, Footprinting, and Network Scanning
A tester wants to pull every DNS record for novatel.example in a single request from a misconfigured secondary name server that trusts arbitrary peers. Which DNS operation is the tester attempting to exploit?
・An iterative recursive lookup across every upstream resolver cached entry for the novatel.example zone
Incorrect. Recursive lookups resolve one name at a time and do not dump an entire zone from a secondary server.
・A reverse DNS PTR sweep that resolves each host address back to its canonical name individually
Incorrect. A reverse PTR sweep resolves addresses one by one and does not retrieve the authoritative zone file.
✓A DNS zone transfer (AXFR) request that returns the full contents of the zone file
Correct. An AXFR zone transfer from a misconfigured server returns all records in the zone in one response.
・A TXT record query requesting the SPF policy published for the novatel.example domain
Incorrect. A TXT query returns only the SPF string, not the complete set of zone records.
Explanation
A misconfigured server that allows AXFR to any peer lets an attacker download the full zone file, exposing every record at once.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)