During a red team test, a web application dynamically builds SQL queries using a numeric URL parameter. The tester sends the following request: http://vulnerableapp.local/view.php?id=1; DROP TABLE users; The application throws errors and the users table is deleted. Which SQL injection technique was used?
Correct Answer: B
The CEH SQL Injection module defines stacked (piggybacked) queries as attacks where an attacker appends an additional SQL statement using a statement delimiter such as a semicolon. In this scenario, the attacker executed a second query (DROP TABLE users) after the original query, resulting in destructive behavior. Option B is correct. Option A retrieves data, not execute destructive commands. Option C infers logic outcomes. Option D relies on error messages for data extraction. CEH classifies stacked queries as high-impact SQL injection attacks.
312-50v13 Exam Question 2
During a penetration test at Pacific Trust Bank in Seattle, ethical hacker Mia Chen suspects that a server hosting customer transaction data may be a honeypot. To investigate, she repeatedly sends crafted queries and observes how quickly the system responds. She notices that responses are consistently faster and more uniform than those of other production servers, raising her suspicion that the environment is designed to lure attackers. Which technique is Mia most likely using to determine if the server is a honeypot?
Correct Answer: B
The correct answer is B. Analyzing Response Time because the scenario explicitly describes Mia's method as repeatedly sending crafted queries and comparing the speed and consistency of responses with other production servers. In CEH-aligned honeypot and deception detection concepts, one practical way to suspect a decoy environment is to measure how it behaves under interaction and whether that behavior differs from real production systems. Honeypots are often instrumented to monitor attacker activity and may run simplified stacks, isolated resources, or simulated services. This can produce response characteristics that are noticeably different-such as responses that are too fast, too consistent, or unusually uniform even under varying query conditions-because the system may be returning pre-generated or emulated outputs rather than processing real workloads. Real production servers typically show natural variance in response time due to legitimate traffic load, database I/O, caching effects, rate limiting, and resource contention. When a target consistently responds with minimal jitter and unusually stable latency, it can indicate a controlled or simulated environment designed for observation rather than normal business operations. By baselining and comparing response timing across multiple hosts, Mia is using timing behavior as a distinguishing signal to assess whether the server is behaving like a genuine production system or a monitored decoy. Why the other options are less correct: Analyzing MAC Address is generally a local-network technique and not a primary way to validate honeypot behavior for an external-facing transaction server; it also does not align with the described repeated query timing. Fingerprinting the running service can help identify service type/version, but the question centers on consistency and speed rather than identifying signatures. Analyzing system configuration and metadata would involve inspecting headers, banners, OS/service metadata, or environment artifacts; useful, but not what Mia is doing here. Therefore, Mia is most likely using response time analysis to assess whether the server behaves like a honeypot.
312-50v13 Exam Question 3
During an internal red team engagement at a financial services firm, an ethical hacker named Anika tests persistence mechanisms after successfully gaining access to a junior employee's workstation. As part of her assessment, she deploys a lightweight binary into a low-visibility system folder. To maintain long-term access, she configures it to launch automatically on every system reboot without requiring user interaction. Which of the following techniques has most likely been used to ensure the persistence of the attacker's payload?
Correct Answer: B
Creating scheduled tasks is the most likely persistence technique because it can be configured to execute automatically at system startup or on reboot without requiring a user to log in or manually launch anything. In CEH-aligned post-exploitation and persistence concepts, attackers commonly use operating system native mechanisms that blend into normal administrative activity. A scheduled task fits this goal well because it can be named to look legitimate, set to run under a specific account, and triggered by events such as system boot, user logon, or a timed schedule. The scenario explicitly states the payload launches on every reboot without user interaction, which aligns with a boot-triggered scheduled task. Injecting into the startup folder usually triggers execution when a user logs on, not strictly on system reboot, and it depends on an interactive user session. That contradicts the requirement of no user interaction. Modifying file attributes, such as setting hidden or system attributes, improves stealth and makes a file less noticeable, but it does not create an automatic execution mechanism by itself. Installing a keylogger is a capability for capturing keystrokes, not a persistence method, and it does not inherently guarantee execution after reboot unless paired with an auto-start mechanism. Therefore, the action that directly ensures the binary runs after each reboot in a controlled and reliable way is creating scheduled tasks, which is a classic persistence method emphasized in ethical hacking workflows for demonstrating real-world attacker behavior and improving defensive detection and hardening.
312-50v13 Exam Question 4
A tester evaluates a login form that builds SQL queries using unsanitized input. By submitting a single quote ( ' ), the tester bypasses authentication and logs in. What type of SQL injection occurred?
Correct Answer: D
The CEH Web Application Attacks module explains tautology-based SQL injection as an attack where input alters a conditional statement to always evaluate as TRUE (e.g., ' OR ' 1 ' = ' 1 ' ). Submitting a single quote often breaks query logic and allows attackers to manipulate authentication conditions. Option D is correct. Option A extracts data. Option B relies on error messages. Option C uses timing delays. CEH identifies tautology attacks as one of the earliest and most common SQL injection techniques.
312-50v13 Exam Question 5
A financial startup in Chicago hires an ethical hacker to evaluate its exposure on hidden networks. The client is particularly concerned that confidential administrative documents might be circulating on .onion sites. To remain passive, the hacker relies on advanced search filters to look for files with headers suggesting management-related content. Which of the following queries would best meet this objective?
Correct Answer: C
The objective is to conduct passive reconnaissance for potentially exposed administrative documents on . onion sites, using advanced search operators. The query should therefore (1) restrict results to the hidden- network domain space, (2) focus on document formats likely to contain internal material, and (3) use a title /header hint that aligns with management or administration content. Option C is the best match because it combines: site:onion to constrain results to .onion resources (the target environment of concern), filetype:pdf to focus on a common format for internal documents (policies, reports, procedures, administrative exports), and intitle: " admin access " to search for pages/files whose title/header metadata indicates administrative relevance. Using intitle aligns with the requirement to look for files "with headers suggesting management- related content," because titles are a practical proxy for document headers and indexing metadata. By comparison, A does not include site:onion, so it is not scoped to hidden services, and it targets "credentials" rather than administrative documents. B includes site:onion and filetype:pdf, but the title focus is "secure login," which is more likely to find authentication pages or generic security guidance rather than administrative document exposure. D is also plausible (docx + user accounts), but "user accounts" tends to point to account lists or HR-style docs rather than broader administrative access documentation, and PDFs are frequently used for formal administrative documentation and may be more commonly indexed. Thus, C best satisfies the passive, targeted reconnaissance requirement for admin-related documents on .onion sites.