AMAADOR ACADEMYCertificatesVerify a certificate

PRO-CEH

Final check — Certified Ethical Hacker (CEH) — Exam-Prep

Answer the 125 questions. You need 80% or more to pass. You can retry as many times as you like.

Study the course →

Question 1During an authorized engagement, a tester maps observed adversary activity to the Cyber Kill Chain. The attacker has already gained code execution on a host and is now installing a backdoor that survives reboot to maintain remote access. Which Cyber Kill Chain phase BEST describes this activity?
Question 2An ethical hacker is engaged to test a client's network. Which document MUST be signed before any testing begins to establish legal authorization and define the boundaries of the assessment?
Question 3A penetration tester is classified based on how they operate. The team performing the assessment has been given NO prior knowledge of the target environment and no credentials, simulating an external attacker. Which testing approach is this?
Question 4An analyst examines malware that operates entirely in memory, leveraging PowerShell and WMI without writing a malicious executable to disk, making it hard for signature-based AV to detect. What category of malware is this?
Question 5An attacker bundles a legitimate-looking screensaver application with a hidden remote-access payload, so that when the user runs the screensaver the payload silently installs and opens a covert channel. Which type of malware BEST describes the malicious component?
Question 6A security team is responding to an intrusion characterized by a highly resourced threat actor who maintains long-term, stealthy access, uses custom tooling, and pursues specific strategic objectives over many months. This profile is BEST described as which of the following?
Question 7An attacker targets a Wi-Fi network and sets up a rogue access point that broadcasts the same SSID as the legitimate corporate network, then deauthenticates clients so they reconnect to the attacker's AP. This attack is BEST known as which of the following?
Question 8A tester captures the WPA2-PSK 4-way handshake from a target wireless network and wants to recover the passphrase offline. Which technique is MOST appropriate against the captured handshake?
Question 9An older wireless network still uses WEP. A tester wants to recover the WEP key efficiently. Which fundamental weakness in WEP makes key recovery feasible after capturing enough traffic?
Question 10During a mobile assessment, a tester discovers that an Android app stores a user's session token in plaintext in shared preferences readable by other apps on a rooted device. Which OWASP Mobile risk category does this BEST fall under?
Question 11A red team needs to enumerate and attack default credentials on a fleet of IoT cameras. Which well-known threat leverages thousands of IoT devices with default/weak credentials to build a botnet for large-scale DDoS, as famously seen with Mirai?
Question 12An OT/ICS engineer reports that an attacker manipulated PLC logic on a SCADA network. Which protocol, commonly used in industrial control systems and lacking built-in authentication, is frequently targeted in such attacks?
Question 13A tester wants to capture nearby Bluetooth Low Energy traffic and attempt to extract data from a target's smartwatch without consent in a controlled lab. The act of stealing information (contacts, messages) from a Bluetooth device is BEST termed which of the following?
Question 14An ethical hacker reviews the phases of a structured penetration test. After successfully gaining access to a system, which phase typically follows in which the tester removes evidence of the activity and any artifacts left behind?
Question 15A malware analyst observes a sample that encrypts and rewrites its own decryption routine on each infection so that no two copies share the same signature, yet the underlying logic stays identical. Which malware property is this?
Question 16A penetration tester suspects a Windows host is infected with a rootkit operating at the kernel level. Why are kernel-mode rootkits particularly difficult to detect from within the running operating system?
Question 17During a wireless assessment, the tester finds the corporate network uses WPA2-Enterprise with EAP. To capture credentials, the attacker stands up a fake RADIUS/AP and tricks clients that do not validate the server certificate. Which control would have PREVENTED this?
Question 18A jailbroken iOS device is examined during an engagement. Jailbreaking removes Apple's restrictions. From an attacker's perspective, what is the PRIMARY security consequence of a jailbroken device?
Question 19An analyst is profiling a piece of malware that lies dormant and only triggers its malicious payload when a specific condition is met, such as a particular date or the deletion of a certain employee's account from HR records. Which malware type is this?
Question 20A tester is asked to differentiate a virus from a worm for a client report. What is the KEY distinguishing characteristic of a worm compared to a classic virus?
Question 21A Zigbee-based smart-home IoT deployment is assessed. The tester intercepts the initial pairing and recovers the network key because the devices used a well-known default 'trust center link key' to transport it. This finding highlights a weakness in which aspect of the IoT system?
Question 22During the reconnaissance phase, an ethical hacker wants to gather a target organization's employee names, email formats, and technologies in use WITHOUT sending any packets to the target's infrastructure. Which approach best satisfies this requirement?
Question 23An analyst runs the Google query: site:example.com filetype:pdf "confidential". What technique is being used?
Question 24A penetration tester wants to retrieve all DNS records of a misconfigured authoritative name server in a single request. Which command attempts this?
Question 25While footprinting, a tester uses theHarvester. What is its primary purpose?
Question 26An ethical hacker examines a target's photographs and office documents to extract GPS coordinates, author names, and software versions. What is this called?
Question 27A tester queries WHOIS for a target domain but receives only the registrar's privacy-proxy contact instead of the real registrant. What does this indicate?
Question 28On a switched network, an attacker floods the switch with thousands of frames bearing random source MAC addresses until the CAM table overflows. What is the goal of this MAC flooding attack?
Question 29An attacker on a LAN sends forged ARP replies to associate their MAC with the default gateway's IP. What is the immediate effect?
Question 30A defender wants to prevent rogue DHCP servers and DHCP starvation on access ports. Which switch feature directly addresses this?
Question 31An attacker captures traffic with Wireshark on a hub-based segment and reads credentials sent over Telnet. Which type of sniffing is this?
Question 32An employee receives an email appearing to come from the CFO urgently requesting a wire transfer to a new vendor account. The message targets a high-value individual with tailored details. Which attack is this?
Question 33A social engineer leaves several malware-laden USB drives labeled "Salaries 2024" in a company parking lot, hoping an employee plugs one in. This technique is known as:
Question 34An attacker calls the help desk pretending to be a new employee locked out of their account, inventing a believable backstory to obtain a password reset. Which social engineering technique is primarily used?
Question 35In a cloud shared responsibility model for IaaS, which task is the CUSTOMER responsible for?
Question 36A security review finds an Amazon S3 bucket with public-read ACLs exposing sensitive files to anyone on the internet. What is the BEST remediation?
Question 37An attacker abuses an SSRF vulnerability in a cloud-hosted web app to reach http://169.254.169.254/. What are they most likely trying to steal?
Question 38A team encrypts a large data set and wants both confidentiality and a way to verify integrity/authenticity in one operation. Which cryptographic mode is designed for authenticated encryption?
Question 39Two parties need to establish a shared secret over an insecure channel without ever transmitting the secret itself. Which algorithm is purpose-built for this key exchange?
Question 40During a password audit, a tester finds hashes stored as unsalted MD5. Why is precomputed rainbow-table cracking especially effective here?
Question 41An ethical hacker uses Shodan to find internet-exposed devices belonging to a target before any direct contact. Why is Shodan valuable for footprinting?
Question 42An attacker poisons the local DNS resolver cache so that victims visiting bank.com are redirected to a malicious IP. Combined with a cloned login page, this enables credential theft without any email. What is this attack called?
Question 43During an authorized assessment, a tester sends TCP packets with no flags set to a target port. A closed port returns an RST while an open port sends no response. Which scan technique is being used?
Question 44An analyst runs nmap -sS against a host and observes that an open port replies with SYN/ACK, after which nmap sends an RST instead of completing the handshake. Why is the RST sent?
Question 45A pentester needs to discover live hosts on a /24 without opening any TCP connections, using only ICMP echo and timestamp probes. Which nmap option set the host-discovery phase to do this?
Question 46In an idle (zombie) scan, the attacker infers a target port is open by observing what behavior on the zombie host?
Question 47A scanner sends a UDP packet to a closed port and the most reliable indicator returned is an ICMP type 3 code 3 message. What does this indicate?
Question 48During scanning, a port consistently returns no response to SYN, NULL, FIN, and Xmas probes, with no RST and no ICMP error. According to nmap classification, this port is best labeled as:
Question 49A tester wants to determine whether a stateful firewall is present without identifying open ports, by sending packets with only the ACK flag set. How are results interpreted?
Question 50A Xmas scan sets the FIN, PSH, and URG flags. Against which type of host is a Xmas scan generally UNRELIABLE for determining open versus closed ports?
Question 51To evade signature-based IDS during a scan, a tester splits the TCP header across several tiny IP fragments. Which nmap option implements this technique?
Question 52A SYN flood attack exhausts a server's resources primarily by:
Question 53Which defensive mechanism allows a server to handle a SYN flood without allocating connection state until the handshake completes?
Question 54An attacker spoofs the victim's source IP and sends ICMP echo requests to a network's broadcast address, causing many hosts to flood the victim with replies. This is known as:
Question 55In a DNS amplification DDoS, the attacker achieves a high amplification factor primarily by:
Question 56A LAND attack causes a denial of service by sending a packet in which:
Question 57An application-layer DoS such as Slowloris exhausts a web server by:
Question 58To hijack an established TCP session via blind injection, the most critical value the attacker must correctly predict or know is the:
Question 59After injecting spoofed data into a hijacked TCP session, the legitimate client and server may enter an 'ACK storm.' What causes this storm?
Question 60An attacker on the same LAN steals a victim's authenticated web session by capturing the session cookie over an unencrypted HTTP connection and replaying it. This is best classified as:
Question 61Which countermeasure most directly defeats application-level session hijacking that relies on sniffing session cookies in transit?
Question 62A tester uses nmap's -D RND:10 option during a port scan. The primary purpose is to:
Question 63A volumetric DDoS is best mitigated upstream by which approach, rather than at the target host alone?
Question 64A penetration tester connects to TCP port 139 on a Windows host and issues a null session to enumerate users, shares, and password policy. Which protocol/service is being abused?
Question 65During enumeration, a tester runs 'snmpwalk -v2c -c public 10.0.0.5'. The community string returns the full MIB tree. What is the MOST significant finding here?
Question 66An attacker wants to enumerate valid usernames from an SMTP server without sending mail. Which combination of SMTP commands is classically used for user enumeration?
Question 67A tester uses the tool 'enum4linux' against a target. Which underlying services and ports does this tool primarily query to gather its information?
Question 68During LDAP enumeration of an Active Directory domain, anonymous bind is permitted. Which information is an attacker MOST likely to extract?
Question 69A tester performs a DNS zone transfer attempt with 'dig axfr @ns1.target.com target.com' and it succeeds. What is the primary risk this misconfiguration creates?
Question 70On a Windows host, a tester runs the RPC enumeration command 'rpcclient -U "" -N 10.0.0.5' then 'enumdomusers'. The output lists accounts with their RIDs. What is the term for guessing remaining accounts from the RID range?
Question 71A tester targets an NFS server and runs 'showmount -e 10.0.0.7'. What information does this reveal?
Question 72An attacker enumerates an SMB server and discovers SMB signing is NOT required. Which attack does this configuration most directly enable?
Question 73To evade a signature-based NIDS during a port scan, a tester splits the TCP header across multiple tiny IP fragments. Which Nmap option performs this fragmentation evasion?
Question 74An attacker runs an Nmap scan with the '-D RND:10' option. What IDS-evasion technique does this implement?
Question 75A web attacker bypasses a signature-based WAF rule that blocks the literal string 'UNION SELECT' by submitting 'UniOn/**/SeLeCt'. Which evasion category does this represent?
Question 76A tester sends an HTTP attack payload broken into many small TCP segments so that no single packet contains a complete attack signature, defeating a stateless NIDS. What is this technique called?
Question 77An attacker observes that a target server responds identically to many fake services and has an abnormally high number of open ports with weak-looking banners. What is the MOST likely explanation?
Question 78A firewall blocks inbound TCP but the tester needs to exfiltrate data from a compromised host. They encode payloads inside DNS TXT queries to an attacker-controlled domain. Which evasion technique is this?
Question 79To determine a firewall's rule set, a tester uses 'hping3 -S -p 80 --tcp-timestamp' and 'firewalk' against hosts behind it. What is the PRIMARY goal of firewalking?
Question 80An organization deploys a system that emulates an entire fake network of vulnerable hosts to lure and analyze attackers across many decoys. What is this called?
Question 81A tester wants their packets to bypass an ACL that only inspects the destination port. They craft packets where the firewall trusts a specific source port (e.g., 53 or 20). Which evasion technique uses a permitted source port to slip past stateless filters?
Question 82A NIDS reassembles fragments using a different TTL/timeout policy than the target host. An attacker sends fragments crafted so the IDS and host reassemble DIFFERENT payloads. What is this evasion class?
Question 83During enumeration, a tester queries NTP with 'ntpdc -c monlist' against a server. Beyond revealing recent client IPs, why is an open monlist also a security concern?
Question 84A tester needs to push attack traffic past a proxy-based firewall that blocks known malicious payloads. They tunnel the traffic over HTTPS to a legitimate-looking endpoint so deep inspection cannot read the encrypted payload. Which evasion principle is being applied?
Question 85During a vulnerability assessment, an analyst runs an automated scanner that flags a service as critically vulnerable, but manual testing confirms the patch is actually applied and the service is not exploitable. What type of result is this?
Question 86An organization wants a vulnerability scan that authenticates to each host with valid credentials to inspect installed patches, registry settings, and local configuration. Which scan type should be used?
Question 87A scanner reports CVE findings with CVSS base scores. The security team needs to prioritize which to remediate first considering exploit availability and exposure. Which CVSS metric group reflects exploit maturity and remediation level over time?
Question 88Which classification scheme assigns a standardized identifier (e.g., CWE-79) to categories of software weaknesses such as improper neutralization of input during web page generation?
Question 89A pentester wants to detect known vulnerabilities without sending intrusive traffic to fragile production systems, instead matching observed software versions against a vulnerability database. This approach is best described as which kind of assessment?
Question 90A web application reflects the value of a URL parameter directly into the HTML response without encoding. An attacker crafts a link containing a script payload and emails it to victims. Which attack is this?
Question 91An attacker submits a comment containing a malicious <script> tag that is saved in the application's database and executes in every visitor's browser who later views the page. Which XSS variant is this?
Question 92A banking site executes a state-changing transfer purely from a GET request with no anti-forgery token. An attacker hosts an <img> tag pointing at the transfer URL on a malicious page. When a logged-in victim visits it, the transfer fires. Which attack does this demonstrate?
Question 93A tester changes the numeric 'account_id' value in a request from 1001 to 1002 and gains access to another customer's data, with no additional authorization check performed server-side. Which vulnerability is this?
Question 94An application includes a file based on a user-supplied parameter: page=../../../../etc/passwd. The server returns the contents of the password file. Which web application attack is this?
Question 95A web server allows a request where a parameter is used to fetch a URL, and an attacker supplies http://169.254.169.254/latest/meta-data/ to read cloud instance metadata. Which vulnerability is being exploited?
Question 96While reviewing a target web server, a tester enumerates the running software with a banner-grabbing tool and identifies 'Apache/2.4.49'. Which manual technique most directly retrieves this server banner over HTTP?
Question 97An attacker uploads a file named shell.php.jpg to an image-upload feature, then accesses it to gain command execution because the server processes .php content despite the trailing extension. Which web application flaw enabled this?
Question 98A penetration tester wants to fuzz a web application's parameters, intercept and modify requests, and replay them. Which tool category is purpose-built for this web application testing workflow?
Question 99An application uses unvalidated user input inside a Jinja2 template, and the attacker enters {{7*7}} which renders as 49. Escalating this can lead to remote code execution. Which vulnerability class is this?
Question 100A tester discovers that an application returns detailed stack traces, database connection strings, and internal file paths in error pages shown to users. Under the OWASP Top 10, which category does this primarily fall under?
Question 101An attacker intercepts a victim's session token and reuses it to access the application as that user without knowing the password. Which control most directly mitigates token theft over the network?
Question 102A scanner flags that the target web server still supports the obsolete TRACE HTTP method. Which attack does enabling TRACE historically facilitate?
Question 103During web application discovery, a tester wants to find hidden directories and admin panels not linked from the main site. Which technique is most appropriate?
Question 104A web application accepts a serialized object from a cookie and deserializes it without integrity checks, allowing an attacker to craft a malicious object that triggers code execution on the server. Which OWASP/vulnerability class best describes this?
Question 105A vulnerability management team must remediate findings efficiently. Which phase ordering of the vulnerability management lifecycle is correct?
Question 106During a penetration test on a Windows server, an attacker has obtained a low-privilege shell. They notice a service whose executable path is 'C:\Program Files\My App\service.exe' and the path is unquoted, while the parent directory is writable. Which privilege-escalation technique does this enable?
Question 107An attacker injects ' OR '1'='1' -- into a login form's username field and is authenticated as the first user in the table without knowing any password. What is the root cause the developer must fix?
Question 108A tester confirms a SQL injection point but sees no data returned and no error messages. They observe that 'AND 1=1' loads the page normally while 'AND 1=2' returns a blank page. Which injection type is this?
Question 109On a Linux host, a pentester runs 'find / -perm -4000 -type f 2>/dev/null' and finds an unusual SUID binary owned by root. Why is this finding significant for privilege escalation?
Question 110An attacker wants to determine the number of columns returned by a vulnerable query to craft a UNION-based injection. Which technique is most commonly used first?
Question 111After compromising a Windows workstation, an attacker dumps LSASS memory and extracts NTLM hashes. They then use one of these hashes to authenticate to another machine over SMB without cracking it. What is this attack called?
Question 112A SQL injection cannot return data in the HTTP response, but the tester makes the database perform a DNS lookup to an attacker-controlled domain to exfiltrate query results. Which SQL injection category does this represent?
Question 113An attacker establishes persistence on a Windows host by creating a registry value under HKLM\Software\Microsoft\Windows\CurrentVersion\Run pointing to their payload. What is the effect of this technique?
Question 114A tester suspects SQL injection but the application filters error messages. They submit '; WAITFOR DELAY '0:0:10'-- and the response takes 10 seconds longer than normal. Which technique confirmed the vulnerability?
Question 115On a Microsoft SQL Server, an attacker who has injected SQL wants to run operating-system commands. Which feature, if enabled, would let them do this?
Question 116An attacker on a Linux system finds that the current user can run '/usr/bin/vi' as root via sudo without a password. How can they escalate to a root shell?
Question 117A web form stores a user's 'nickname' containing a SQL payload. The payload does not execute on save, but later when an admin page builds a report by concatenating the stored nickname into a query, the injection fires. What is this called?
Question 118An attacker has SYSTEM on a domain-joined machine and extracts the krbtgt account's hash from a domain controller. They forge a TGT granting themselves arbitrary group membership and long validity. Which attack is this?
Question 119During system hacking, an attacker uses 'timestomp' on a dropped malicious file to alter its MACE timestamps to match legitimate system files. What is the primary goal of this step?
Question 120Which input-handling control is the single most effective defense against SQL injection across all database back-ends?
Question 121An attacker wants to crack captured Windows NTLM hashes offline using a wordlist combined with rules and GPU acceleration. Which tool is purpose-built for this?
Question 122A penetration tester uses sqlmap against a target and adds the '--os-shell' flag after confirming injection on a MySQL back-end. What is sqlmap attempting to do?
Question 123On Windows, an attacker abuses an over-permissive service whose binary they can replace, then restarts it to run their code as the service account. This is an example of which privilege-escalation weakness?
Question 124A tester injects ' UNION SELECT username, password FROM users-- into a search parameter and the application displays the credentials in the results table. Which prerequisite made the UNION attack succeed?
Question 125After gaining a foothold, an attacker on Windows runs 'whoami /priv' and sees SeImpersonatePrivilege is enabled for a service account. Why is this notable?