A Certified Ethical Hacker (CEH) is auditing a company's web server that employs virtual hosting. The server hosts multiple domains and uses a web proxy to maintain anonymity and prevent IP blocking. The CEH discovers that the server's document root directory, which stores critical HTML files, is named "certroot" and is stored in the directory /admin/web. The server root, which stores the server's configuration, error, executable, and log files, is also identified. The CEH also notes that the server uses a virtual document tree for additional storage. Given this scenario which of the following actions would most likely increase the security of the web server?
Correct Answer: A
Regularly updating and patching the server software addresses known vulnerabilities in the operating system, web server, and associated applications. This reduces the attack surface and strengthens overall web server security, which is especially important for servers hosting multiple domains and critical files.
Question 842
During a compliance audit at a logistics company in Columbus, Ohio, the mobile security team discovers that several field-issued Android devices are responding to remote commands from an unknown external system. The affected devices are not connected via USB, and no enterprise mobility policies were recently modified. Network monitoring reveals that the devices have remote debugging enabled and are accepting connections over the wireless network on a specific high- numbered port commonly associated with remote device communication. Investigators determine that the external system was able to capture screenshots, list installed applications, forward ports, and install additional packages without requiring physical access to the devices. Which attack technique most accurately explains this compromise?
Correct Answer: C
The devices have remote debugging enabled and are accepting connections over a high- numbered port associated with Android Debug Bridge (ADB), typically TCP 5555. This allows remote execution of commands such as installing apps, capturing screenshots, and port forwarding without physical access, which matches ADB exploitation over the network.
Question 843
You start performing a penetration test against a specific website and have decided to start by grabbing all the links from the main page. What is the best Linux pipe to achieve your milestone?
Correct Answer: B
This question is about web link enumeration using Linux CLI tools - a common initial step during information gathering in penetration testing, covered in CEH v13 Module 02: Footprinting and Reconnaissance. Objective: Extract all hyperlinks (i.e., <a href="http...">) from the homepage of a target site to collect subpages, links, or external URLs. Let's analyze each component of Option B: = = curl -s https://site.com | grep '<a href='http' | grep "site.com" | cut -d "v" -f 2 curl -s https://site.com: Silently fetches the HTML source of the main page. grep '<a href='http': Filters lines containing anchor tags with href attributes that begin with http. grep "site.com": Further filters those that point to site.com. cut -d "v" -f 2: Cuts the line based on the delimiter v to isolate part of the URL - though not perfect, it attempts to extract the visible link. While not perfectly formed (due to slightly inconsistent quote usage), Option B demonstrates the correct logic chain for web link enumeration using pipes in Linux: fetching, filtering, and extracting. Why Other Options Are Incorrect: A). dirb https://site.com | grep "site" # dirb is used for brute-forcing directories, not grabbing links from HTML. C). wget https://site.com | grep "<a href=*http" | grep "site.com" # Incorrect. wget will download the entire content (including binary files by default), and piping it directly to grep without -O - or -q -O - makes it ineffective. D). wget https://site.com | cut -d"http" # Incorrect. Syntax error (cut -d"http" is invalid without correct delimiter formatting), and again wget needs to be directed to stdout using -O -. Corrected Optimal Syntax for Real-World Use: bash CopyEdit curl -s https://site.com | grep -oP 'href="\Khttp[^"]+' | grep "site.com" This uses -oP with Perl-compatible regex to extract only URLs and is a method recommended in CEH iLabs and demonstrations. Reference from CEH v13 Study Materials: Module 02 - Footprinting and Reconnaissance, Section: Website Footprinting and Web Crawling CEH iLabs - Website Information Gathering Lab CEH Engage Range: Passive and Active Footprinting Phase - Linux Scripting Tasks
Question 844
You are Evelyn, an ethical hacker at LoneStar Health in Austin, Texas, engaged to investigate a recent compromise of archived patient records. During the investigation you recover a large set of encrypted records from a compromised backup and, separately, obtain several original template records (standard headers and form fields) that correspond to some entries in the encrypted set. You plan to use these paired examples (the original templates and their encrypted counterparts) to attempt to recover keys or deduce other plaintext values. Which cryptanalytic approach is most appropriate for this situation?
Correct Answer: B
The correct answer is B. Known-plaintext attack because the scenario explicitly provides paired samples of plaintext and ciphertext for the same underlying data. In a known-plaintext attack, the analyst possesses one or more examples where the original message (plaintext) is known and the corresponding encrypted output (ciphertext) is also available. These pairs can be used to analyze the cipher's behavior, validate hypotheses about modes/parameters, and-depending on the algorithm, implementation weaknesses, and key management-attempt to recover the encryption key or decrypt other ciphertexts encrypted under the same key. Here, Evelyn has "original template records (standard headers and form fields)" and their "encrypted counterparts" in the stolen backup set. Medical record formats commonly contain predictable structures (fixed headers, repeated field names, standardized forms), which increases the likelihood of having accurate known plaintext segments. With enough known plaintext/ciphertext pairs, an attacker may identify patterns caused by weak encryption choices, reused keys, reused IVs/nonces, insecure modes (e.g., ECB revealing structure), or flawed custom crypto. Even when strong algorithms are used, known-plaintext material can still be valuable for confirming the encryption scheme and detecting implementation errors. Why the other options are not correct: Ciphertext-only assumes the attacker has only encrypted data and no plaintext examples-contradicted by the templates. Chosen-plaintext requires the ability to submit arbitrary plaintexts to an encryption oracle and receive ciphertexts, which the scenario does not indicate. Chosen- ciphertext requires the ability to submit ciphertexts to a decryption oracle and observe outputs, also not described. Because Evelyn has real, matching plaintext-ciphertext pairs from the same dataset, the most appropriate cryptanalytic approach is a known-plaintext attack.
Question 845
Josh has finished scanning a network and has discovered multiple vulnerable services. He knows that several of these usually have protections against external sources but are frequently susceptible to internal users. He decides to draft an email, spoof the sender as the internal IT team, and attach a malicious file disguised as a financial spreadsheet. Before Josh sends the email, he decides to investigate other methods of getting the file onto the system. For this particular attempt, what was the last stage of the cyber kill chain that Josh performed?
Correct Answer: C
Josh is preparing to send the payload (malicious file) to the target, which clearly maps to the Delivery phase of the Cyber Kill Chain. According to CEH v13 and the Cyber Kill Chain model (developed by Lockheed Martin and used in ethical hacking methodology): Delivery is the third phase of the kill chain. It involves transmitting the weaponized payload to the target via phishing emails, USB drops, or malicious links. In this case, Josh is preparing the email with a spoofed identity and malicious attachment - representing an act of delivery. Incorrect options: A). Exploitation occurs after delivery, when the payload is executed. B). Weaponization is the phase where the malicious file is created (combining exploit with a backdoor or trojan). D). Reconnaissance involves information gathering, completed earlier in the scenario. Reference - CEH v13 Official Courseware: Module 01: Introduction to Ethical Hacking Section: "Cyber Kill Chain Model" Table Reference: "Stages of a Cyber Attack" CEH Engage Lab: "Kill Chain Simulation in Phishing Campaigns"