Courseiva

Certified Ethical Hacker CEH (CEH) — Questions 826870

870 questions total · 12pages · All types, answers revealed

Page 11

Page 12 of 12

826
MCQmedium

A security analyst runs `nmap -sS -sV -A 192.168.1.100` and obtains open ports and service versions. However, the analyst suspects the target is behind an IDS/IPS. Which Nmap technique would BEST evade detection while still performing a similar scan?

A.Add -f to fragment IP packets
B.Use -sT instead of -sS to perform a full TCP connect scan
C.Increase timing to -T5 for a faster scan
D.Replace -sV with -sU to scan UDP services
AnswerA

Adding -f to fragment IP packets instructs Nmap to split the TCP header across multiple smaller IP packets. This technique, known as IP fragmentation, can bypass stateless firewalls and basic Intrusion Detection Systems (IDS) or Intrusion Prevention Systems (IPS) that are not configured to reassemble fragmented packets before inspection. By scattering the critical header information, it becomes more challenging for signature-based detection mechanisms to identify the scan pattern, thus aiding in evasion.

Why this answer

Using the `-f` flag fragments the IP packets, splitting the TCP header across multiple packets. This helps evade simple IDS/IPS signatures that rely on detecting a complete SYN scan in a single packet, as the fragmented packets may bypass pattern-matching rules or reassembly buffers.

Exam trap

EC-Council often tests the misconception that faster scans (`-T5`) are stealthier, when in reality they increase noise and detection risk, while fragmentation (`-f`) is a recognized evasion technique for bypassing packet inspection.

How to eliminate wrong answers

Option B is wrong because `-sT` performs a full TCP connect scan, which completes the three-way handshake and is more likely to be logged by the target system and detected by IDS/IPS due to the completed connections. Option C is wrong because increasing timing to `-T5` sends packets faster, which can actually increase the likelihood of detection by IDS/IPS due to abnormal traffic patterns or rate-based alerts. Option D is wrong because replacing `-sV` with `-sU` changes the scan type to UDP, which does not perform the same service version detection and is not a technique for evading detection; it simply scans different protocols.

827
Multi-Selectmedium

Which TWO of the following are characteristics of a DNS amplification attack? (Select 2)

Select 2 answers
A.It targets the victim's MAC address
B.It uses spoofed source IP addresses
C.It exploits open DNS resolvers
D.It requires the attacker to be on the same subnet as the victim
E.It uses ICMP echo requests
AnswersB, C

This is a critical characteristic of DNS amplification. The attacker sends small DNS queries to numerous open DNS resolvers, but crafts these queries to appear as if they originated from the victim's IP address. This IP spoofing ensures that when the resolvers send their much larger responses, they are directed to the legitimate victim's network, effectively overwhelming their bandwidth and causing a denial of service. Without spoofing, the responses would return to the attacker, nullifying the amplification effect.

Why this answer

DNS amplification attacks rely on sending DNS queries with a spoofed source IP address that matches the victim's IP. The attacker sends small queries to open DNS resolvers, which then send large responses to the victim, overwhelming their bandwidth. This spoofing ensures the amplified traffic is directed at the victim, not the attacker.

Exam trap

The trap here is that candidates often confuse DNS amplification with other reflection attacks like Smurf (which uses ICMP) or think the attacker must be local, but the key differentiator is the use of spoofed source IPs and open DNS resolvers over UDP.

828
MCQeasy

Which type of malware is characterized by self-replication and spreading across networks without needing a host file?

A.Trojan
B.Worm
C.Ransomware
D.Virus
AnswerB

A worm is a standalone malicious program designed to self-replicate and propagate across computer networks without requiring a host program or user intervention. Worms exploit vulnerabilities in operating systems or applications to spread autonomously, often scanning for vulnerable systems and then infecting them to continue their replication cycle. This independent self-replication and network-based propagation are their defining characteristics, allowing them to consume network bandwidth and system resources rapidly.

Why this answer

A worm is a standalone malware program that replicates itself to spread to other computers over a network, exploiting vulnerabilities or using social engineering, without requiring a host file or user intervention. Unlike viruses, worms do not need to attach to an existing program; they operate independently, often using network protocols like SMB, HTTP, or email to propagate.

Exam trap

EC-CEH often tests the distinction between a virus and a worm by emphasizing that a virus requires a host file to attach to, while a worm is self-contained and spreads independently over networks, leading candidates to mistakenly choose 'Virus' when they see 'self-replication' without noting the 'no host file' condition.

How to eliminate wrong answers

Option A is wrong because a Trojan disguises itself as legitimate software but does not self-replicate; it relies on user execution and lacks autonomous network propagation. Option C is wrong because ransomware encrypts files or locks systems for ransom but does not self-replicate or spread across networks without user action; its primary behavior is extortion, not autonomous replication. Option D is wrong because a virus requires a host file (e.g., an executable or document) to attach to and replicate, and it typically spreads via file sharing or removable media, not autonomously across networks without a host.

829
MCQeasy

An attacker attempts to exploit a web application by sending a request that triggers the server to make an internal HTTP request to a sensitive internal service. Which type of attack is this?

A.CSRF
B.XXE
C.SSRF
D.IDOR
AnswerC

Server-Side Request Forgery (SSRF) occurs when a web application is tricked into making requests to an arbitrary domain specified by an attacker. This vulnerability allows an attacker to induce the server-side application to make HTTP requests to an attacker-specified location, potentially targeting internal networks, cloud metadata services, or other external systems. The server acts as a proxy for the attacker, bypassing network segmentation or firewall rules that might otherwise block direct access.

Why this answer

SSRF (Server-Side Request Forgery) occurs when an attacker can induce the server to make requests to internal resources.

830
MCQmedium

During a reconnaissance phase, a penetration tester uses Shodan to search for devices with a specific open port. Which of the following BEST describes what Shodan provides beyond a simple port scan?

A.Real-time network traffic analysis
B.Passive DNS records and domain registration details
C.Banner information and service metadata from internet-connected devices
D.Historical vulnerability data for each device
AnswerC

Shodan's core functionality involves actively scanning the internet to identify open ports and then performing banner grabbing to collect detailed information from exposed services. This includes service banners (e.g., HTTP server versions, SSH daemon versions), operating system details, geographic location, and other configuration metadata. This rich metadata allows penetration testers to quickly identify potential vulnerabilities, misconfigurations, and the specific technologies running on internet-facing assets, forming a critical part of the reconnaissance phase.

Why this answer

Shodan is a search engine for internet-connected devices that actively probes IP addresses and collects banner information—the metadata that services (e.g., HTTP, SSH, FTP) return upon connection. This includes server headers, version strings, default credentials, and other service fingerprints, which goes far beyond a simple port scan that only reports whether a port is open or closed.

Exam trap

The trap here is that candidates confuse Shodan's banner-grabbing capability with a vulnerability scanner, assuming it provides historical CVE data, when in fact Shodan only shows the current service fingerprint and does not automatically map it to vulnerabilities.

How to eliminate wrong answers

Option A is wrong because Shodan does not perform real-time network traffic analysis; it uses periodic, active probing to collect static snapshots of service banners, not live packet captures or flow data. Option B is wrong because passive DNS records and domain registration details are the domain of tools like whois, SecurityTrails, or DNSdumpster, not Shodan—Shodan focuses on IP-level service metadata, not domain-level ownership or DNS history. Option D is wrong because Shodan does not provide historical vulnerability data for each device; while it may show the version of a service, it does not correlate that version with CVE databases or track patch history—that would require a separate vulnerability scanner or a platform like Shodan's own 'Vulnerabilities' feature (which is an add-on, not a core capability).

831
Multi-Selectmedium

Which TWO of the following tools are capable of cracking password hashes offline? (Select 2)

Select 2 answers
A.Hashcat
B.Hydra
C.John the Ripper
D.Nmap
E.Wireshark
AnswersA, C

Hashcat is an advanced offline password recovery utility renowned for its unparalleled speed, primarily achieved through extensive GPU acceleration. It supports a vast array of hash types, including NTLM, MD5, SHA-1, and bcrypt, and offers diverse attack modes such as dictionary, brute-force, mask, and hybrid attacks. This makes it exceptionally effective for cracking password hashes extracted from compromised systems or databases, enabling rapid auditing of password security.

Why this answer

Hashcat is a high-performance password recovery tool that supports offline cracking of password hashes using GPU acceleration. It can process a wide range of hash types (e.g., MD5, SHA-1, bcrypt, NTLM) by comparing precomputed or brute-force generated hashes against a target hash file, all without interacting with a live authentication server.

Exam trap

The trap here is that candidates often confuse online brute-forcing tools (like Hydra) with offline hash crackers, because both are used for password attacks, but Hydra requires a live target service and cannot process a static hash file.

832
Multi-Selectmedium

Which THREE of the following are common indicators of a buffer overflow vulnerability?

Select 3 answers
A.Unexpected program crashes or segmentation faults
B.Access violation errors when writing to memory
C.Use of return-oriented programming (ROP)
D.High CPU usage
E.Overwritten adjacent memory regions
AnswersA, B, E

A buffer overflow writes data beyond the intended buffer's boundaries, corrupting adjacent memory. This corruption can overwrite critical program data, function pointers, or the stack frame itself. When the program attempts to access or execute corrupted instructions or data, it leads to an illegal memory access, triggering a segmentation fault or an unexpected program termination.

Why this answer

A is correct because buffer overflow vulnerabilities often cause unexpected program crashes or segmentation faults. When a program writes data beyond the allocated buffer size, it can corrupt the stack or heap, leading to invalid memory access that the operating system detects and terminates with a segmentation fault (SIGSEGV). This is a classic symptom of overwritten return addresses or other critical control data.

Exam trap

The trap here is that candidates confuse exploitation techniques (like ROP) with vulnerability indicators, but ROP is a post-exploitation method, not a sign that a buffer overflow exists.

833
Multi-Selectmedium

Which THREE of the following are common techniques used during the footprinting phase? (Choose three.)

Select 3 answers
A.Exploitation
B.Port scanning
C.WHOIS lookup
D.Google hacking
E.DNS zone transfer
AnswersC, D, E

A WHOIS lookup is a fundamental footprinting technique that queries public databases to retrieve registration details for domain names and IP addresses. This process reveals critical information such as the domain owner's name, organization, contact email, physical address, registration and expiration dates, and associated DNS name servers. Such data is invaluable for identifying potential targets, understanding organizational structure, and mapping network infrastructure during the initial reconnaissance phase.

Why this answer

WHOIS lookup is a footprinting technique that queries domain registration databases (e.g., whois.arin.net) to obtain registrant contact details, name servers, and registration dates. Google hacking (also known as Google dorking) uses advanced search operators to uncover sensitive information indexed by search engines, such as exposed configuration files or login pages. DNS zone transfer (AXFR) is a footprinting technique that, if misconfigured, allows an attacker to retrieve a complete list of DNS records for a domain, revealing internal hostnames and network structure.

All three are passive or semi-passive information-gathering methods performed without directly engaging the target's systems.

Exam trap

EC-Council often tests the distinction between footprinting (passive, non-intrusive) and scanning (active, intrusive), so candidates mistakenly classify port scanning or exploitation as footprinting techniques.

834
MCQeasy

A security analyst wants to discover all DNS records associated with a domain without triggering a full zone transfer. Which tool is BEST suited for this task?

A.theHarvester
B.dig
C.nslookup
D.dnsrecon
AnswerD

dnsrecon is a powerful DNS enumeration script that can query multiple record types and perform subdomain brute-forcing.

Why this answer

D (dnsrecon) is correct because it is a dedicated DNS enumeration tool that performs multiple types of DNS record queries (A, AAAA, CNAME, MX, NS, SOA, SRV, TXT, etc.) using techniques like brute‑forcing subdomains and performing SRV record enumeration, all without attempting a full zone transfer (AXFR). It is specifically designed for reconnaissance and can discover hidden or non‑obvious DNS records efficiently.

Exam trap

EC-Council often tests the misconception that nslookup or dig are sufficient for comprehensive DNS discovery, but the question specifically asks for a tool that discovers *all* DNS records without a zone transfer, which requires automated enumeration beyond single‑query tools.

How to eliminate wrong answers

Option A (theHarvester) is wrong because it is primarily an email, subdomain, and open‑source intelligence (OSINT) gathering tool that uses search engines and public sources, not direct DNS queries for all record types. Option B (dig) is wrong because while it can query individual DNS record types, it is a manual command‑line tool that requires separate queries for each record type and does not automate the discovery of all DNS records in a single pass. Option C (nslookup) is wrong because it is an older, interactive DNS lookup utility that also requires manual, per‑record queries and lacks the automated enumeration features of dnsrecon.

835
MCQeasy

Which of the following tools is specifically used to enumerate SMB shares and retrieve file listings from Windows systems?

A.ldapsearch
B.snmpwalk
C.smbclient
D.nmap
AnswerC

smbclient is a powerful command-line utility that acts as an SMB/CIFS client, similar to a Windows file explorer. It is specifically designed to interact with SMB servers, allowing users to list available shares on a target machine using the "-L" option, connect to specific shares, and browse, upload, or download files. Its direct capability to query and display network shares makes it the most appropriate tool for SMB enumeration.

Why this answer

smbclient is a tool from the Samba suite specifically designed to interact with SMB/CIFS shares. It allows an attacker to enumerate available shares on a Windows target and retrieve file listings by connecting to the SMB service (port 445 or 139) using commands like 'smbclient -L //target' or by mounting a share and listing its contents.

Exam trap

The trap here is that candidates often confuse nmap's ability to detect SMB services with the actual enumeration of shares and file listings, but nmap requires specific NSE scripts and does not provide the direct interactive file listing capability that smbclient offers.

How to eliminate wrong answers

Option A is wrong because ldapsearch is a tool for querying LDAP directory services (port 389/636), not for enumerating SMB shares or retrieving file listings from Windows systems. Option B is wrong because snmpwalk is used to retrieve SNMP MIB data (port 161/162) from network devices, not to interact with SMB shares. Option D is wrong because nmap is a port scanner and network mapper that can detect open SMB ports but cannot natively enumerate SMB shares or retrieve file listings without additional scripts (e.g., smb-enum-shares), and even then it is not the dedicated tool for direct file listing.

836
MCQhard

A security team suspects a session hijacking attack. The analyst examines network traffic and sees packets with sequence numbers that increment by predictable values. Which attack is MOST likely occurring?

A.TCP sequence prediction
B.ARP poisoning
C.DNS spoofing
D.MAC flooding
AnswerA

TCP sequence prediction involves an attacker guessing the next valid sequence number in a TCP connection. If the sequence numbers are predictable, the attacker can inject crafted packets into an established session, effectively hijacking it. By successfully predicting and sending packets with the correct sequence and acknowledgment numbers, the attacker can impersonate one of the legitimate communication parties, taking control of the session without needing to intercept initial authentication. This allows for unauthorized command execution or data manipulation within the active session.

Why this answer

TCP sequence prediction attacks exploit the ability to guess the next sequence number in a TCP connection, allowing an attacker to inject forged packets and hijack the session. The analyst observed packets with sequence numbers incrementing by predictable values, which is the hallmark of weak or static sequence number generation in older TCP implementations.

Exam trap

The trap here is that candidates confuse session hijacking with ARP poisoning or DNS spoofing, but the key clue is 'predictable sequence numbers,' which directly points to TCP sequence prediction, not Layer 2 or DNS manipulation.

How to eliminate wrong answers

Option B (ARP poisoning) is wrong because it involves manipulating ARP tables to intercept traffic at Layer 2, not predicting TCP sequence numbers. Option C (DNS spoofing) is wrong because it corrupts DNS responses to redirect traffic, not targeting TCP sequence numbers. Option D (MAC flooding) is wrong because it overwhelms a switch's CAM table to force it into hub mode, enabling packet sniffing, not sequence number prediction.

837
MCQmedium

During a social engineering assessment, an attacker calls a help desk impersonating a new employee and requests a password reset due to a 'locked account'. The help desk complies. Which social engineering technique is being used?

A.Phishing
B.Vishing
C.Pretexting
D.Quid pro quo
AnswerC

Pretexting is a sophisticated form of social engineering where an attacker invents a believable, fabricated scenario (a "pretext") to manipulate a target into divulging information or performing an action. This often involves extensive research to create a credible backstory, a false identity, and a plausible reason for the interaction, making the target believe they are interacting with someone authorized or legitimate. The scenario's description of an attacker calling and using a fabricated scenario directly aligns with the definition of pretexting.

Why this answer

Pretexting is the correct answer because the attacker fabricates a scenario (the pretext of being a new employee with a locked account) to manipulate the help desk into performing a password reset. This technique relies on a crafted story to gain trust and bypass security procedures, rather than using technical exploits or direct requests for information.

Exam trap

The trap here is that candidates confuse the medium (phone call) with the technique, incorrectly selecting vishing (Option B) instead of recognizing that the core deception is the fabricated pretext, not the voice channel itself.

How to eliminate wrong answers

Option A is wrong because phishing typically involves sending fraudulent emails or messages that mimic legitimate entities to trick victims into revealing sensitive information or clicking malicious links, not a direct phone call impersonation. Option B is wrong because vishing (voice phishing) uses phone calls to extract sensitive data like credit card numbers or credentials, but the core technique here is the fabricated identity and story, not the medium alone. Option D is wrong because quid pro quo involves offering a service or benefit in exchange for information or access (e.g., 'I'll fix your computer if you give me your password'), whereas this scenario uses a false identity to request a routine action without any reciprocal offer.

838
MCQmedium

A security analyst receives an alert indicating that a host on the internal network is sending a high volume of ICMP echo requests to multiple external IP addresses. The analyst notices that the source IP address is spoofed. Which type of attack is MOST likely occurring?

A.Fraggle attack
B.ICMP flood
C.Smurf attack
D.Ping flood
AnswerD

Correct. Ping flood sends high volumes of ICMP echo requests directly to targets, often with spoofed source IPs, matching the alert.

Why this answer

The attack described is a Ping flood (option D). A Ping flood involves sending a high volume of ICMP echo requests (pings) directly to multiple target IP addresses, often with a spoofed source IP to hide the attacker's identity. This overwhelms the targets' network resources.

Unlike a Smurf attack, which uses a network broadcast address to amplify traffic, this scenario shows direct flooding of multiple external IPs, characteristic of a Ping flood.

Exam trap

In EC-CEH, candidates often confuse Smurf and Ping flood attacks. The key difference is that Smurf uses a broadcast address for amplification, while Ping flood sends traffic directly to targets. Since the scenario mentions spoofed ICMP echo requests to multiple external IPs without broadcast, it is a Ping flood.

How to eliminate wrong answers

Option A (Fraggle attack) is wrong because it uses UDP echo packets to a broadcast address, not ICMP echo requests. Option B (ICMP flood) is wrong because it typically does not involve IP spoofing or amplification; it simply overwhelms a target with ICMP packets from a real source. Option D (Ping flood) is wrong because it is a basic DoS attack that sends many ICMP echo requests from a real IP, not a spoofed one, and lacks the amplification mechanism of a Smurf attack.

839
MCQeasy

Which of the following tools is specifically designed to automate the process of detecting and exploiting SQL injection vulnerabilities in web applications?

A.Burp Suite
B.Metasploit
C.SQLMap
D.Nmap
AnswerC

SQLMap is the standard tool for automated SQL injection detection and exploitation.

Why this answer

SQLMap is an open-source penetration testing tool that automates the detection and exploitation of SQL injection flaws. It supports a wide range of database backends and injection techniques, making it the go-to tool for this specific task.

Exam trap

EC-Council often tests the distinction between general-purpose security tools (like Burp Suite or Metasploit) and specialized automation tools (like SQLMap), leading candidates to choose a tool they recognize for web testing rather than the one specifically designed for SQL injection automation.

How to eliminate wrong answers

Option A is wrong because Burp Suite is an intercepting proxy and web application security testing platform that requires manual configuration or extensions to automate SQL injection exploitation; it is not purpose-built for automated SQL injection detection and exploitation. Option B is wrong because Metasploit is a framework for developing and executing exploit code against remote targets, but it does not natively automate the detection and exploitation of SQL injection vulnerabilities in web applications without additional modules or manual scripting. Option D is wrong because Nmap is a network scanning tool used for host discovery, port scanning, and service enumeration, and it lacks any capability to detect or exploit SQL injection vulnerabilities.

840
MCQhard

A penetration tester performs a container escape by exploiting a misconfigured capability and mounts the host filesystem. Which cloud service model is MOST directly affected?

A.Platform as a Service (PaaS)
B.Software as a Service (SaaS)
C.Function as a Service (FaaS)
D.Infrastructure as a Service (IaaS)
AnswerD

Infrastructure as a Service (IaaS) provides virtualized computing resources, such as virtual machines, networks, and storage, granting users significant control over the operating system and installed software. In an IaaS model, users frequently deploy and manage their own containerized applications, often having direct access to the container runtime and the host operating system. This elevated level of control means a successful container escape directly compromises the host VM or underlying physical server, rendering IaaS the most susceptible cloud service model for such an attack.

Why this answer

Container escape compromises the host, affecting the underlying infrastructure in IaaS. In PaaS/SaaS, the provider may manage containers differently.

841
Multi-Selectmedium

Which THREE Nmap options are commonly used to evade firewall detection during a scan? (Choose three.)

Select 3 answers
A.-f (fragment packets)
B.-T0 (paranoid timing)
C.-D (decoy)
D.-sT (TCP connect scan)
E.-sV (version detection)
AnswersA, B, C

The -f option instructs Nmap to fragment the IP packets into smaller, non-standard-sized pieces. This technique can bypass stateless firewalls or Intrusion Detection Systems (IDS) that only inspect the initial fragments, as critical header information (like TCP flags or port numbers) might be split across multiple segments. When the fragmented packets reach the target, the operating system reassembles them before processing, potentially allowing the scan to proceed undetected by intermediate network devices.

Why this answer

The -f flag fragments the IP packets into smaller pieces (typically 8-byte fragments) to bypass simple packet-filtering firewalls and intrusion detection systems that do not reassemble fragmented packets before applying filtering rules. This technique exploits the fact that many stateless firewalls only inspect the first fragment and allow subsequent fragments through unchecked, enabling the scan to reach the target.

Exam trap

The trap here is that candidates often mistake -sT (TCP connect scan) as a stealthy option because it is the default scan type, but it actually completes the full handshake and is highly detectable, whereas the correct evasion options focus on fragmentation, timing, and decoys.

842
Multi-Selectmedium

Which TWO of the following are examples of application-layer DDoS attacks? (Select 2)

Select 2 answers
A.Slowloris
B.SYN flood
C.Smurf attack
D.UDP flood
E.HTTP flood
AnswersA, E

Slowloris keeps many connections open slowly to exhaust server resources.

Why this answer

Slowloris is an application-layer DDoS attack that targets web servers by opening multiple HTTP connections and keeping them alive with partial requests, sending headers periodically to prevent timeout. It exploits the server's connection handling at Layer 7, exhausting the connection pool without requiring high bandwidth.

Exam trap

The trap here is that candidates often confuse layer-based attacks, assuming any flood (like SYN or UDP) is application-layer, but CEH expects you to distinguish Layer 7 attacks (HTTP flood, Slowloris) from transport/network-layer attacks (SYN flood, UDP flood, Smurf).

843
MCQeasy

Which password cracking method uses a precomputed table of hash chains to reverse password hashes quickly?

A.Hybrid attack
B.Rainbow table attack
C.Dictionary attack
D.Brute-force attack
AnswerB

A rainbow table attack utilizes a precomputed table of hash chains to reverse cryptographic hash functions efficiently. Instead of brute-forcing each hash, the attacker looks up the target hash within the table, which maps hashes back to their original plaintext passwords. This method exploits a time-memory tradeoff, allowing for rapid password recovery without needing to compute every possible password combination during the attack.

Why this answer

A rainbow table attack is correct because it uses precomputed tables of hash chains to reverse password hashes quickly. Instead of computing the hash for every possible password in real time, the attacker looks up the hash in the table to find the corresponding plaintext, drastically reducing the time needed for cracking.

Exam trap

The trap here is that candidates confuse rainbow tables with dictionary attacks, thinking both use precomputed lists, but rainbow tables specifically use hash chains to cover many passwords efficiently, not a simple list of words.

How to eliminate wrong answers

Option A is wrong because a hybrid attack combines dictionary words with variations (e.g., appending numbers or symbols) but does not use precomputed hash chains. Option C is wrong because a dictionary attack tries a list of likely passwords by hashing each one and comparing, without any precomputed table. Option D is wrong because a brute-force attack tries every possible character combination sequentially, computing hashes on the fly, which is computationally expensive and does not rely on precomputed tables.

844
MCQmedium

An organization deploys a fleet of IoT cameras that communicate with a central server over the internet. The cameras use HTTP to send video streams. What is the most critical security improvement to protect the video data in transit?

A.Require strong passwords on the camera web interface.
B.Use a site-to-site VPN between the cameras and the server.
C.Use certificate pinning to prevent man-in-the-middle attacks.
D.Implement TLS/SSL encryption for all camera communications.
AnswerD

Implementing TLS/SSL (Transport Layer Security/Secure Sockets Layer) encryption for all camera communications establishes a robust, end-to-end secure channel. This protocol encrypts the entire data stream, including sensitive video feeds, audio, control commands, and metadata, protecting them from unauthorized interception, eavesdropping, and tampering as they traverse public or untrusted networks. TLS/SSL also provides server authentication, ensuring the camera communicates with the legitimate server, and data integrity verification, confirming the data has not been altered in transit.

Why this answer

The most critical security improvement is to implement TLS/SSL encryption (HTTPS) for all camera communications. HTTP transmits video data in plaintext, allowing any attacker on the network path to capture and view the video stream. TLS/SSL provides encryption, integrity, and authentication, directly protecting the confidentiality of the video data in transit.

Exam trap

EC-Council often tests the distinction between authentication/access controls (passwords, certificate pinning) and encryption (TLS/SSL), leading candidates to choose a security measure that does not actually protect data in transit.

How to eliminate wrong answers

Option A is wrong because strong passwords protect only the authentication to the camera's web interface, not the video data itself during transmission; an attacker can still intercept unencrypted HTTP streams. Option B is wrong because a site-to-site VPN would encrypt traffic between two network gateways, but if the cameras connect directly over the internet without a VPN client, the traffic remains unencrypted; VPNs also add complexity and latency not required for this specific threat. Option C is wrong because certificate pinning is a defense against man-in-the-middle attacks that validates a specific certificate, but it does not encrypt the data; without TLS/SSL, the video stream is still sent in plaintext and can be intercepted regardless of pinning.

845
MCQhard

An attacker wants to perform a man-in-the-middle attack on a local network. Which two tools from the following list would be most effective? (Select the best answer from the options below; note: this is a multiple choice, not multi-select) A) Wireshark B) Ettercap C) Nmap D) Metasploit E) Aircrack-ng

A.Nmap and Metasploit
B.Aircrack-ng and Wireshark
C.Ettercap and Nmap
D.Ettercap and Wireshark
AnswerD

Ettercap is a highly effective tool for executing Man-in-the-Middle attacks by performing ARP poisoning, which redirects network traffic through the attacker's machine. Wireshark then perfectly complements Ettercap by passively capturing and analyzing all the intercepted traffic that is now flowing through the attacker. This combination allows for both the successful interception of communications and the detailed examination of the data, making it ideal for a comprehensive MITM attack.

Why this answer

Ettercap is a dedicated man-in-the-middle (MITM) tool that performs ARP spoofing to intercept traffic between hosts on a switched LAN. Wireshark captures and analyzes the intercepted packets, allowing the attacker to view unencrypted data. Together, they form the classic ARP poisoning attack chain: Ettercap redirects traffic, Wireshark inspects it.

Exam trap

Candidates often confuse Nmap (a scanning tool) or Metasploit (an exploitation framework) as suitable for MITM attacks, but the classic MITM attack on a LAN uses ARP spoofing with Ettercap and packet capture with Wireshark.

How to eliminate wrong answers

Option A is wrong because Nmap is a network scanner used for host discovery and port enumeration, not for intercepting live traffic; Metasploit is an exploitation framework that delivers payloads but does not natively perform ARP spoofing or packet capture for MITM. Option B is wrong because Aircrack-ng is a suite for wireless LAN attacks (e.g., WEP/WPA cracking) and is ineffective on a wired local network; Wireshark alone cannot redirect traffic without a spoofing tool. Option C is wrong because Nmap does not perform MITM attacks; it only maps the network, leaving the interception step incomplete without a capture tool like Wireshark.

846
MCQeasy

A security analyst wants to perform passive reconnaissance on a target organization without generating any traffic to the target's network. Which of the following techniques would be MOST appropriate?

A.Running Nmap SYN scan
B.Executing hping3 to probe ports
C.Using Netcat to connect to a service
D.Performing a WHOIS lookup
AnswerD

Performing a WHOIS lookup involves querying publicly available domain registration databases, such as those maintained by ICANN-accredited registrars. This process retrieves information like domain ownership, administrative contacts, technical contacts, and registration dates without sending any packets directly to the target's servers or network infrastructure. Since the interaction is solely with third-party public records, it is a quintessential passive reconnaissance technique, leaving no trace on the target system itself.

Why this answer

WHOIS lookup is a passive reconnaissance technique that queries public databases (e.g., whois.arin.net) for domain registration details without sending any packets to the target's network. It relies on external, publicly available data, thus generating zero traffic to the target organization's infrastructure.

Exam trap

The trap here is that candidates confuse active scanning tools (Nmap, hping3, Netcat) with passive information gathering, failing to recognize that any direct packet transmission to the target constitutes active reconnaissance.

How to eliminate wrong answers

Option A is wrong because Nmap SYN scan sends crafted TCP SYN packets directly to the target's IP addresses, generating detectable network traffic. Option B is wrong because hping3 actively sends custom packets (e.g., TCP, UDP, ICMP) to probe ports and services, which creates traffic to the target. Option C is wrong because Netcat establishes a TCP or UDP connection to a target service, actively interacting with the target's network and generating traffic.

847
MCQhard

A penetration tester performs a container escape from a Docker container running in a cloud environment. Which of the following is the MOST likely cause?

A.The container uses default credentials for SSH
B.The container image has a known vulnerability in the MQTT library
C.The host OS is running an outdated kernel version
D.The container is running with the --privileged flag
AnswerD

Running a container with the `--privileged` flag effectively disables most of the security features and isolation mechanisms provided by the container runtime. This flag grants the container nearly all capabilities of the host, including direct access to host devices (e.g., `/dev`), the ability to mount host filesystems, and full control over the kernel's capabilities (like `CAP_SYS_ADMIN`). These elevated privileges provide direct and straightforward vectors for a penetration tester to break out of the container and gain control over the host system.

Why this answer

Container escape often occurs when the container is run with the --privileged flag, granting elevated capabilities that allow access to the host kernel.

848
MCQmedium

During a penetration test, you identify a parameter in a web application that appears to fetch a file from the server. You modify the parameter to '../../../etc/passwd' and see the contents of the passwd file. Which type of vulnerability is this?

A.Remote File Inclusion (RFI)
B.Directory traversal
C.Server-Side Request Forgery (SSRF)
D.Local File Inclusion (LFI)
AnswerB

Directory traversal, also known as path traversal, is a vulnerability that allows an attacker to access files and directories stored outside the intended root directory by manipulating file paths. This is typically achieved by injecting sequences like `../` (dot-dot-slash) into input parameters, enabling navigation upwards in the directory hierarchy to read sensitive system files or application configuration.

Why this answer

The use of '../' sequences to traverse directories and access files outside the web root is classic directory traversal.

849
Multi-Selecthard

Which THREE of the following are valid defenses against CSRF attacks? (Select 3)

Select 3 answers
A.Custom request headers (e.g., X-Requested-With)
B.SameSite cookies set to Lax or Strict
C.CSRF tokens
D.Input validation
E.Output encoding
AnswersA, B, C

Custom request headers like X-Requested-With serve as an effective CSRF defense by leveraging browser security mechanisms. Modern browsers, adhering to the Same-Origin Policy and CORS specifications, prevent attackers from arbitrarily adding or modifying such custom headers in simple cross-origin requests. The server can then validate the presence and expected value of this header, rejecting any request originating from an unauthorized domain that lacks the legitimate header. This ensures that only requests from the legitimate origin, which can set the header, are processed.

Why this answer

CSRF tokens, SameSite cookies (Lax or Strict), and custom headers (e.g., X-Requested-With with XMLHttpRequest) are all effective CSRF defenses.

850
MCQhard

During a penetration test, a tester gains access to a Linux system and needs to escalate privileges. The tester finds that the user has sudo privileges to run /usr/bin/less as root without a password. Which technique should the tester use to escalate privileges?

A.Exploit a kernel vulnerability using a local exploit
B.Run /usr/bin/less with sudo, then type !/bin/bash to spawn a root shell
C.Use the find command with -exec to execute a shell
D.Check for world-writable scripts in cron jobs
AnswerB

This method correctly leverages a common sudo misconfiguration where a user is permitted to execute /usr/bin/less with root privileges. Inside less, typing '!' allows the execution of arbitrary shell commands. Since less is running as root via sudo, any command executed through '!', such as !/bin/bash, will also inherit root privileges, effectively spawning a root shell.

Why this answer

When a user has sudo privileges to run /usr/bin/less as root without a password, the tester can leverage the fact that less can execute shell commands from within its interface. By running 'sudo /usr/bin/less' and then typing '!/bin/bash', the tester spawns a root shell, effectively escalating privileges to root.

Exam trap

The trap here is that candidates may overlook the command execution capability of less and instead focus on kernel exploits or cron jobs, missing the direct and simplest path to root via the sudo misconfiguration.

How to eliminate wrong answers

Option A is wrong because exploiting a kernel vulnerability is unnecessary when a simpler, authorized sudo misconfiguration exists; this option distracts from the direct privilege escalation path. Option C is wrong because the find command with -exec is a technique for executing commands on files, but it does not inherently provide privilege escalation unless combined with a setuid binary or specific permissions, and the user does not have sudo rights to find. Option D is wrong because checking for world-writable scripts in cron jobs is a valid enumeration step but is not the immediate technique to exploit the given sudo privilege; it is a slower, indirect method that may not yield root access.

851
MCQhard

A security engineer is configuring DDoS protection for a web server. The goal is to mitigate a Slowloris attack. Which mitigation technique is MOST effective?

A.Use anycast routing
B.Implement rate limiting and connection timeout
C.Increase the maximum number of simultaneous connections
D.Enable SYN cookies
AnswerB

Slowloris attacks aim to exhaust server resources by maintaining numerous open, incomplete HTTP connections. Implementing a strict connection timeout for idle or slow-sending connections will effectively terminate these malicious sessions before they can consume all available server sockets indefinitely. Additionally, rate limiting the number of new connections or requests from a single source IP can prevent an attacker from establishing a sufficient volume of connections to overwhelm the server's capacity, thus mitigating the attack.

Why this answer

Slowloris works by opening many HTTP connections and keeping them alive by sending partial requests, never completing them, which exhausts the server's connection pool. Rate limiting restricts the number of connections from a single IP, and connection timeouts force idle connections to close, directly countering Slowloris's behavior. This combination prevents the attacker from holding connections open indefinitely.

Exam trap

The trap here is that candidates confuse Slowloris with a SYN flood and choose SYN cookies (Option D), but Slowloris operates at the application layer after the TCP handshake completes, so SYN cookies are ineffective.

How to eliminate wrong answers

Option A is wrong because anycast routing distributes traffic across multiple data centers, which helps with volumetric DDoS attacks but does not prevent a single low-bandwidth connection from exhausting server resources, as Slowloris does. Option C is wrong because increasing the maximum number of simultaneous connections only gives the attacker more room to open additional connections, making the attack worse. Option D is wrong because SYN cookies protect against SYN flood attacks by deferring resource allocation until the handshake completes, but Slowloris completes the TCP handshake and then sends partial HTTP requests, so SYN cookies do not mitigate it.

852
MCQmedium

Which phase of the system hacking methodology (CHPSET) involves hiding files from the operating system using techniques such as rootkits or steganography?

A.Cracking passwords
B.Erasing tracks
C.Executing applications
D.Hiding files
AnswerD

Hiding files is a core activity within the "Maintaining Access" phase of system hacking, specifically represented by the 'H' in the CHIPSET acronym. This involves employing various techniques, such as rootkits, steganography, or manipulating file attributes and permissions, to conceal malicious tools, backdoors, or data staging areas from legitimate users, administrators, and security software, thereby ensuring persistence and operational secrecy on the compromised system.

Why this answer

The 'Hiding files' phase of the CHPSET (Cracking passwords, Hacking, Privilege escalation, Spying, Erasing tracks, Executing applications, Hiding files) methodology involves concealing malicious files from the operating system and security tools. Techniques such as rootkits (which hook system calls like NtQueryDirectoryFile to hide files from directory listings) and steganography (embedding data within innocent files like images or audio) are used to avoid detection. This phase directly follows 'Executing applications' and ensures the attacker's payload remains persistent and covert.

Exam trap

The trap here is that candidates confuse 'Erasing tracks' (clearing logs) with 'Hiding files' (concealing the files themselves), but the CEH CHPSET model separates these as distinct phases—'Hiding files' specifically refers to techniques like rootkits and steganography that hide the file from the OS, not just removing evidence of its execution.

How to eliminate wrong answers

Option A is wrong because 'Cracking passwords' is the initial phase of CHPSET, focused on gaining access through password attacks (e.g., brute force, rainbow tables), not hiding files. Option B is wrong because 'Erasing tracks' involves clearing logs (e.g., clearing Event Logs or using tools like `wevtutil`) to cover the attacker's footprint, not hiding files from the OS. Option C is wrong because 'Executing applications' refers to running the malicious payload (e.g., backdoor or keylogger) after privilege escalation, not the act of concealing files.

853
MCQeasy

Which asymmetric encryption algorithm is based on the algebraic structure of elliptic curves over finite fields and provides equivalent security to RSA with smaller key sizes?

A.SHA-256
B.Diffie-Hellman (DH)
C.Triple DES (3DES)
D.Elliptic Curve Cryptography (ECC)
AnswerD

Elliptic Curve Cryptography (ECC) is an asymmetric encryption algorithm that derives its security from the mathematical properties of elliptic curves over finite fields, specifically the difficulty of the Elliptic Curve Discrete Logarithm Problem (ECDLP). It provides a robust framework for public-key cryptography, including encryption, digital signatures, and key exchange. ECC is highly efficient, offering equivalent security to RSA with significantly smaller key sizes, making it particularly well-suited for resource-constrained environments like mobile devices.

Why this answer

ECC (Elliptic Curve Cryptography) offers strong security with smaller keys compared to RSA. Diffie-Hellman is a key exchange protocol, 3DES is symmetric, and SHA-256 is a hash function.

854
MCQmedium

A network switch starts behaving like a hub, broadcasting all traffic to all ports. The security team suspects an attack that floods the switch with fake MAC addresses. Which attack is this?

A.MAC flooding
B.ARP poisoning
C.STP attack
D.DNS spoofing
AnswerA

MAC flooding involves overwhelming a switch's Content Addressable Memory (CAM) table (also known as MAC address table) with a multitude of forged source MAC addresses. When the CAM table becomes full, the switch can no longer store new legitimate MAC-to-port mappings. Consequently, for any new incoming frames destined for an unknown MAC address, the switch resorts to broadcasting the frames out of all ports, effectively degrading its functionality to that of a network hub. This allows an attacker to capture traffic intended for other hosts on the segment.

Why this answer

MAC flooding exploits the limited size of a switch's Content Addressable Memory (CAM) table. By sending thousands of packets with unique, fake source MAC addresses, the attacker fills the CAM table, forcing the switch to fail open and broadcast all incoming frames to every port, effectively behaving like a hub. This allows the attacker to capture traffic not originally destined for their port.

Exam trap

EC-Council often tests the distinction between MAC flooding (layer 2 CAM table exhaustion) and ARP poisoning (layer 2/3 cache manipulation), so candidates mistakenly choose ARP poisoning because both involve MAC addresses, but only MAC flooding causes the switch to broadcast traffic like a hub.

How to eliminate wrong answers

Option B (ARP poisoning) is wrong because it manipulates the ARP cache of hosts to associate the attacker's MAC address with the IP address of a legitimate device, enabling man-in-the-middle attacks; it does not flood the switch's CAM table. Option C (STP attack) is wrong because it targets the Spanning Tree Protocol by sending forged Bridge Protocol Data Units (BPDUs) to cause topology changes or denial of service, not by exhausting CAM table entries. Option D (DNS spoofing) is wrong because it corrupts DNS resolver caches to redirect domain name lookups to malicious IP addresses, which is a layer-7 attack unrelated to switch MAC address tables.

855
Multi-Selecthard

Which THREE of the following are effective mitigation techniques against Cross-Site Scripting (XSS) attacks?

Select 3 answers
A.Output encoding
B.Implementing Content Security Policy (CSP)
C.Disabling JavaScript in the client browser
D.Using HTTPS for all communications
E.Input validation
AnswersA, B, E

When user-supplied data is rendered back to a client, output encoding converts special characters (like <, >, &, ", ') into their entity equivalents (e.g., &lt;, &gt;). This process prevents the browser from interpreting these characters as active content or HTML tags, effectively neutralizing any embedded malicious scripts and ensuring they are displayed as harmless text rather than executed.

Why this answer

Input validation ensures malicious characters are rejected. Output encoding converts special characters to safe HTML entities. Content Security Policy (CSP) restricts script sources.

Disabling JavaScript is not practical. Using HTTPS protects data in transit but not against XSS.

856
MCQmedium

A penetration tester discovers that a web application's login page does not enforce rate limiting and several usernames are known from a prior data breach. The tester wants to try a few common passwords across many accounts to avoid account lockouts. Which attack technique is being used?

A.Password spraying
B.Credential stuffing
C.Brute force attack
D.Dictionary attack
AnswerA

Password spraying is a targeted attack where an attacker attempts a small number of common passwords against a large list of usernames. This technique is specifically designed to bypass account lockout policies by distributing login attempts across many accounts, rather than repeatedly failing on a single account. By trying 'Password123!' on hundreds of accounts, the attacker significantly increases their chances of finding a valid credential without triggering security alerts for excessive failed logins on one user. This method is highly effective against organizations with weak password policies and large user bases.

Why this answer

Password spraying involves trying a small number of common passwords against many user accounts to avoid account lockout. This contrasts with credential stuffing (using many passwords per account) and brute force (many passwords per user).

857
MCQeasy

Which tool is specifically designed to crack Windows LM and NTLM hashes using precomputed tables?

A.Ophcrack
B.John the Ripper
C.Cain & Abel
D.Hashcat
AnswerA

Ophcrack is purpose-built for cracking Windows LM and NTLM hashes, leveraging precomputed rainbow tables for highly efficient password recovery. Its specialization allows it to quickly reverse these specific hash formats by performing a time-memory trade-off, making it exceptionally fast for common passwords. The tool comes with pre-generated tables, significantly reducing the computational effort required compared to on-the-fly cracking methods.

Why this answer

Ophcrack is specifically designed to crack Windows LM and NTLM hashes using precomputed rainbow tables. It relies on the time-memory trade-off technique, where hashes are looked up in precomputed tables rather than computed on the fly, making it highly efficient for these specific hash types. The tool is bundled with free rainbow tables for LM hashes and supports NTLM through additional table sets.

Exam trap

The trap here is that candidates often confuse 'precomputed tables' with general cracking tools like Hashcat or John the Ripper, which can also use precomputed tables in some configurations, but Ophcrack is the only tool specifically designed and optimized for that purpose with Windows LM/NTLM hashes.

How to eliminate wrong answers

Option B (John the Ripper) is wrong because it is a general-purpose password cracker that uses brute-force, dictionary, or incremental modes, not precomputed tables as its primary or designed method for Windows hashes. Option C (Cain & Abel) is wrong because while it can capture and crack Windows hashes, it relies on dictionary, brute-force, or cryptanalysis attacks, not precomputed rainbow tables. Option D (Hashcat) is wrong because it is a high-speed GPU-based cracker that uses brute-force, dictionary, or rule-based attacks, and although it supports precomputed tables via the '--stdout' mode with hashcat-utils, it is not specifically designed for precomputed table attacks like Ophcrack.

858
MCQeasy

A security analyst receives an email from what appears to be the company's CEO requesting an urgent wire transfer. The email address is slightly misspelled (e.g., ce0@company.com instead of ceo@company.com). Which type of social engineering attack is this?

A.Vishing
B.Phishing
C.Whaling
D.Spear phishing
AnswerD

Spear phishing is a highly targeted form of email-based social engineering where attackers craft personalized messages for a specific individual, such as a security analyst. These emails often leverage specific knowledge about the target, their role, or their organization, making the lure appear highly credible and increasing the likelihood of the recipient falling victim. The goal is typically to trick the individual into revealing sensitive information, clicking a malicious link, or downloading an infected attachment, directly aligning with the scenario described.

Why this answer

Spear phishing is a targeted phishing attack aimed at a specific individual or group. In this scenario, the attacker sends an email impersonating the CEO to a specific security analyst, making it a spear phishing attempt. The target is the analyst, not the CEO, so it is not whaling, which targets senior executives directly.

Exam trap

The trap is confusing whaling with spear phishing. Whaling targets senior executives; this attack targets a security analyst by impersonating the CEO, so it is spear phishing.

How to eliminate wrong answers

Option A is wrong because vishing (voice phishing) uses phone calls or voice messages, not email. Option B is wrong because phishing is a broad term for mass, untargeted attacks, whereas this scenario targets a specific high-level executive. Option D is wrong because spear phishing targets a specific individual or group but does not necessarily focus on senior executives; whaling is a subset of spear phishing aimed at 'big fish' like the CEO.

859
Multi-Selectmedium

Which TWO of the following are characteristics of a polymorphic virus? (Choose two.)

Select 2 answers
A.It requires user interaction to activate
B.It uses encryption to hide its payload
C.It infects only the boot sector
D.It spreads via email attachments only
E.It changes its code signature each time it replicates
AnswersB, E

A fundamental characteristic of polymorphic viruses is their sophisticated use of encryption to conceal their malicious payload. This encryption renders the core malicious code unreadable to static analysis tools, making it difficult to identify based on fixed patterns. Crucially, the virus dynamically generates a new, unique decryption routine with each replication, ensuring that even the decryption stub constantly changes, further evading signature-based detection.

Why this answer

Polymorphic viruses use encryption to hide their payload from signature-based detection. Each time the virus replicates, it generates a new encryption key and a corresponding decryption routine, making the encrypted payload appear different while the underlying malicious code remains the same.

Exam trap

The trap here is that candidates often confuse 'polymorphic' with 'metamorphic' viruses, where metamorphic viruses rewrite their entire code without encryption, while polymorphic viruses rely on encryption and a changing decryption routine.

860
MCQmedium

A security team observes repeated Nmap scans from an external IP address. The scans show fragmented IP packets. Which evasion technique is the attacker using?

A.Fragmentation
B.Decoy scan
C.ACK scan
D.Idle scan
AnswerA

IP fragmentation involves splitting larger packets into smaller fragments, each with its own IP header, before transmission. This technique is primarily used by attackers to bypass network intrusion detection systems (IDS) and firewalls that perform signature-based analysis on full packets. By fragmenting packets, the IDS may only see partial data or fail to reassemble the fragments correctly, thus missing malicious signatures or policy violations that would otherwise trigger an alert.

Why this answer

The attacker is using fragmentation to evade detection by splitting the Nmap probe packets into smaller fragments. This technique bypasses simple packet filters and intrusion detection systems (IDS) that lack IP fragment reassembly capabilities, as the fragments are typically allowed through individually. Nmap's `-f` flag or `--mtu` option is used to send fragmented IP packets, making the scan less conspicuous.

Exam trap

EC-Council often tests the distinction between fragmentation and decoy scans, as candidates may confuse 'splitting packets' with 'spoofing IPs' due to both being evasion techniques.

How to eliminate wrong answers

Option B (Decoy scan) is wrong because it involves spoofing multiple source IP addresses to hide the attacker's real IP, not fragmenting packets. Option C (ACK scan) is wrong because it sends TCP ACK packets to determine firewall rules, not fragmented packets. Option D (Idle scan) is wrong because it uses a zombie host to bounce packets and obscure the attacker's IP, not fragmentation.

861
MCQhard

After a security incident, an analyst retrieves a suspicious file. To determine if it is malicious without executing it, the analyst runs the 'strings' command and uploads the file to VirusTotal. Which type of malware analysis is being performed?

A.Static analysis
B.Behavioral analysis
C.Code analysis
D.Dynamic analysis
AnswerA

Static analysis involves examining a file's properties and contents without executing it. Running the `strings` command extracts printable character sequences, providing clues about embedded text, URLs, or file paths. Uploading to VirusTotal leverages a multitude of static analysis engines and reputation databases to identify known malware signatures and indicators of compromise, all performed on the file at rest.

Why this answer

The analyst is performing static analysis because they are examining the file without executing it. Running the 'strings' command extracts readable text from the binary, and uploading to VirusTotal checks the file's hash against known malware signatures — both are non-behavioral, non-runtime techniques. Static analysis focuses on file properties, code structure, and metadata without triggering the malware's execution.

Exam trap

Common confusion: Static analysis does not execute the file, while dynamic analysis runs it in a sandbox. Uploading to VirusTotal is a form of static analysis based on signatures.

How to eliminate wrong answers

Option B is wrong because behavioral analysis requires executing the malware in a controlled environment (e.g., sandbox) to observe runtime actions like registry changes or network connections, which did not occur here. Option C is wrong because code analysis typically involves disassembly or decompilation (e.g., using IDA Pro or Ghidra) to examine the actual instructions, not just running 'strings' or checking hashes. Option D is wrong because dynamic analysis involves running the file and monitoring its behavior in real time, which was explicitly avoided by the analyst.

862
MCQmedium

A security analyst notices that the web application returns different response times when querying user IDs. For example, a valid user ID returns the page in 2 seconds, while an invalid ID returns in 0.5 seconds. The analyst suspects a blind SQL injection vulnerability. Which SQL injection technique is MOST likely being used?

A.Error-based SQL injection
B.Union-based SQL injection
C.Time-based blind SQL injection
D.Out-of-band SQL injection
AnswerC

Time-based blind SQL injection is a technique where an attacker infers information by observing the time it takes for the database to respond to a query. This method involves injecting SQL commands that include conditional statements (e.g., IF or CASE) combined with time-delay functions (e.g., SLEEP() or WAITFOR DELAY). If the condition is true, the database introduces a noticeable delay, allowing the attacker to deduce the truthfulness of a statement bit by bit, even without direct error messages or data output.

Why this answer

Time-based blind SQL injection relies on causing a time delay (e.g., via SLEEP or WAITFOR DELAY) to infer the truth of conditions. The varying response times (2s vs 0.5s) indicate a time-based attack.

863
MCQmedium

A penetration tester receives the following output from a tool: 'Starting dnsrecon.py -d example.com -t axfr' and then a list of all DNS records. Which of the following BEST describes what occurred?

A.A DNSSEC validation check was completed
B.A successful DNS zone transfer was performed, revealing all DNS records for the domain
C.A DNS cache snooping attack was executed
D.A reverse DNS lookup was performed to find domain names from IP addresses
AnswerB

A successful DNS zone transfer, initiated by an AXFR query, occurs when an authoritative name server provides a complete copy of its entire DNS zone file. This typically happens due to a security misconfiguration where the server allows unrestricted transfers to unauthorized clients. The output received by the penetration tester, containing all DNS records for the domain, is the direct result of such a successful transfer, providing a comprehensive enumeration of the domain's infrastructure.

Why this answer

The output shows the dnsrecon tool being run with the '-t axfr' option, which specifically requests a DNS zone transfer (AXFR). A zone transfer is a mechanism for replicating DNS databases across DNS servers, and if misconfigured, it allows an attacker to retrieve all DNS records for a domain. The successful listing of all DNS records confirms that the zone transfer was permitted by the target's DNS server, revealing the entire DNS zone.

Exam trap

The trap here is that candidates may confuse the '-t axfr' zone transfer flag with other DNS reconnaissance techniques like cache snooping or DNSSEC validation, but the key indicator is the explicit request for a full zone transfer and the resulting complete list of DNS records.

How to eliminate wrong answers

Option A is wrong because DNSSEC validation checks use cryptographic signatures (RRSIG, DNSKEY records) to verify data integrity, not a zone transfer command like '-t axfr'. Option C is wrong because DNS cache snooping involves querying a recursive resolver to determine if a specific record is cached, not performing a full zone transfer to list all records. Option D is wrong because a reverse DNS lookup uses PTR records to map IP addresses to domain names, whereas the output explicitly shows a zone transfer of all DNS records for a domain, not a reverse lookup.

864
MCQhard

An ethical hacker is analyzing a suspicious file using static analysis. Which of the following actions is part of static malware analysis?

A.Running the file in a sandboxed environment and monitoring its behavior
B.Uploading the file to VirusTotal for scanning
C.Examining the file's strings and metadata without executing it
D.Using Wireshark to capture packets sent by the file
AnswerC

Static analysis examines the file's binary, strings, and metadata without execution.

Why this answer

Static malware analysis involves examining the file without executing it. Option C is correct because analyzing strings and metadata (e.g., file headers, embedded URLs, IP addresses, or suspicious function calls) is a core static analysis technique, often performed using tools like `strings`, `binwalk`, or `PEview`. This approach avoids the risks of execution and helps identify indicators of compromise (IOCs) before dynamic analysis.

Exam trap

The trap here is that candidates confuse 'static analysis' with 'dynamic analysis' or 'online scanning,' leading them to select options that involve execution (A, D) or third-party aggregation (B) instead of direct file inspection without execution.

How to eliminate wrong answers

Option A is wrong because running the file in a sandboxed environment and monitoring its behavior is dynamic analysis, not static analysis. Option B is wrong because uploading to VirusTotal is a form of automated online scanning that may involve both static and dynamic checks, but it is not a pure static analysis action performed by the analyst directly on the file. Option D is wrong because using Wireshark to capture packets sent by the file requires execution of the file, which falls under dynamic or network-based analysis, not static analysis.

865
Multi-Selecthard

Which THREE of the following Nmap options can be used to evade detection by IDS/IPS? (Select three)

Select 3 answers
A.-sV (version detection)
B.-f (fragment packets)
C.-sI (idle scan)
D.-D (decoy scan)
E.-O (OS detection)
AnswersB, C, D

The -f (fragment packets) option is a potent evasion technique that instructs Nmap to split the TCP header across multiple, smaller IP fragments. This fragmentation can bypass rudimentary packet filtering rules and some stateful firewalls or Intrusion Detection Systems (IDS) that may struggle to correctly reassemble or inspect fragmented packets. By breaking the standard packet structure, it makes signature-based detection more challenging for network security devices.

Why this answer

The -f flag fragments the crafted packets into smaller pieces, typically 8-byte fragments, which can bypass simple IDS/IPS signatures that expect full unfragmented packets. This technique exploits the fact that many intrusion detection systems struggle to reassemble fragmented packets in real time, allowing the scan to evade detection.

Exam trap

The trap here is that candidates often think version detection (-sV) or OS detection (-O) are stealthy because they provide detailed information, but they actually generate more traffic and distinctive patterns that IDS/IPS easily flag.

866
MCQmedium

A penetration tester wants to enumerate users and groups from a Windows domain controller via LDAP without logging in. Which of the following tools is MOST appropriate for anonymous LDAP enumeration?

A.smbclient
B.ldapsearch
C.snmpwalk
D.enum4linux
AnswerB

ldapsearch is the correct tool because it is specifically designed for querying LDAP (Lightweight Directory Access Protocol) directories. It enables penetration testers to perform anonymous or authenticated queries to enumerate directory objects, including users, groups, and their associated attributes. This utility directly interacts with LDAP servers to retrieve the precise information required for user and group enumeration.

Why this answer

ldapsearch is the correct tool because it can perform anonymous LDAP queries against a Windows domain controller's LDAP service (port 389) without requiring authentication. By default, many Windows DCs allow anonymous binds to retrieve directory information such as user and group objects, making ldapsearch the most direct and appropriate choice for this task.

Exam trap

The trap here is that candidates confuse enum4linux (which uses SMB/RPC null sessions) with LDAP enumeration, but enum4linux does not perform anonymous LDAP queries and relies on different protocols and ports.

How to eliminate wrong answers

Option A is wrong because smbclient is used for SMB/CIFS file sharing and requires authentication to enumerate users or groups; it cannot perform LDAP queries. Option C is wrong because snmpwalk uses SNMP (UDP 161) to query MIB objects from network devices, not LDAP directory services, and is not designed for user/group enumeration from a domain controller. Option D is wrong because enum4linux is a wrapper tool that uses SMB, RPC, and NetBIOS to enumerate Windows systems, but it does not perform LDAP queries and typically requires some level of authentication or null session access, not anonymous LDAP binding.

867
MCQhard

During a security assessment, a tester discovers an endpoint that reflects the 'User-Agent' header in the response without sanitization. The tester wants to confirm a reflected XSS vulnerability. Which of the following payloads would be MOST effective to demonstrate the issue in a single request?

A.Set the User-Agent to: <img src=x onerror=alert(1)>
B.Set the User-Agent to: ' OR '1'='1
C.Set the User-Agent to: <script>alert('XSS')</script>
D.Set the User-Agent to: ../../../../etc/passwd
AnswerC

This payload, <script>alert('XSS')</script>, is the most direct and effective proof-of-concept for demonstrating a reflected Cross-Site Scripting (XSS) vulnerability. When the User-Agent header containing this string is reflected unencoded into the HTML response generated by the web application, the browser interprets the <script> tags and executes the embedded JavaScript. The alert('XSS') function then triggers a pop-up box, visually confirming that arbitrary client-side script execution is possible within the victim's browser context.

Why this answer

Using a simple script alert like <script>alert(1)</script> is a standard proof-of-concept for reflected XSS. The exact payload may vary, but it must execute JavaScript. The simplest is an alert.

868
Multi-Selecthard

Which TWO types of information can be obtained through SNMP enumeration on a target device if the community string is 'public'? (Choose two.)

Select 2 answers
A.List of running processes
B.Captured network packets
C.User account passwords
D.Modify network interface settings
E.Routing table entries
AnswersA, E

SNMP agents can provide a comprehensive list of running processes on a managed device. This information is typically found within the Host Resources MIB (RFC 2790), specifically by querying objects like `hrSWRunTable`. This table contains details such as process ID, name, path, and current status, which is crucial for system monitoring and troubleshooting.

Why this answer

SNMP enumeration with the default 'public' community string (read-only access) allows querying MIB objects that expose system information. The 'hostResources' MIB (RFC 2790) includes the 'hrSWRunTable', which lists running processes, and the 'ipRouteTable' (RFC 1213) provides routing table entries. These are standard read-only OIDs accessible without authentication.

Exam trap

The trap here is that candidates confuse the 'public' community string with full administrative access, assuming it can modify settings or retrieve sensitive data like passwords, when in fact it only provides read-only access to non-sensitive MIB objects.

869
MCQmedium

You are a penetration tester hired by a medium-sized financial company. The company has a network consisting of 50 Windows workstations (Windows 10 Pro) and 5 Windows Server 2019 servers (domain controller, file server, web server, database server, and mail server). The network is segmented into three VLANs: User VLAN (192.168.1.0/24), Server VLAN (192.168.2.0/24), and DMZ (192.168.3.0/24). The web server is in the DMZ and hosts a public-facing e-commerce application built on ASP.NET with a SQL Server backend. The database server is in the Server VLAN and is not directly accessible from the internet. You are given a standard user account on a workstation in the User VLAN. After initial reconnaissance, you discover that the web server is running an outdated version of IIS (7.5) and is vulnerable to a known privilege escalation vulnerability (CVE-2020-0613) that allows local privilege escalation if an attacker has already gained initial access. You also find that the web application has a SQL injection vulnerability in the login page. You successfully exploit the SQL injection to extract the password hash of the web application's service account, which is 'web_svc'. You crack the hash offline and obtain the plaintext password. The 'web_svc' account has local administrative privileges on the web server. Using these credentials, you authenticate to the web server via RDP. From there, you want to pivot to the database server to extract credit card information stored in the database. The database server only allows connections from the web server on port 1433 (SQL Server). Using the 'web_svc' account, you are able to connect to the database server using SQL Server Management Studio. However, you find that the 'web_svc' account has only 'public' and 'guest' database roles, which do not allow reading any sensitive tables. You need to escalate privileges on the database server. What is the most effective next step?

A.Use the web_svc account to create a new SQL Server login with sysadmin privileges via the SQL Server Management Studio
B.Exploit the privilege escalation vulnerability on the web server to gain SYSTEM access, then dump the SQL Server service account credentials (e.g., from the SQL Server error logs or registry) and use them to log into the database server with sysadmin privileges
C.Perform a brute-force attack against the 'sa' account on the database server using a wordlist
D.Try to use the web_svc account to directly query the credit card table using a SQL injection payload on the web application
AnswerB

Exploiting a local privilege escalation vulnerability on the web server to gain SYSTEM access provides full control over the underlying operating system. With SYSTEM privileges, an attacker can access memory, registry hives, or log files where the SQL Server service account credentials are often stored or cached. Since the SQL Server service account typically holds sysadmin privileges on its own instance to perform its functions, these credentials can then be used to log into the database with the highest level of access.

Why this answer

The web_svc account lacks sufficient database privileges, but by exploiting the privilege escalation vulnerability (CVE-2020-0613) on the web server to gain SYSTEM access, you can extract the SQL Server service account credentials (e.g., from SQL Server error logs or registry). The SQL Server service account typically runs with sysadmin privileges, allowing you to connect to the database server with full administrative rights and access the credit card data.

Exam trap

The trap here is that candidates assume the web_svc account's local admin rights on the web server translate to database privileges, but SQL Server role-based access control is separate, so they must escalate locally first to capture the higher-privileged service account credentials.

How to eliminate wrong answers

Option A is wrong because the web_svc account has only 'public' and 'guest' database roles, which do not grant permission to create new logins or assign sysadmin privileges; SQL Server enforces role-based access control, and such an operation requires ALTER ANY LOGIN or sysadmin rights. Option C is wrong because brute-forcing the 'sa' account is noisy, time-consuming, and likely to trigger account lockout policies or intrusion detection systems; moreover, you already have a more reliable privilege escalation path. Option D is wrong because the SQL injection vulnerability was already exploited on the web application's login page to extract the web_svc password hash; using the same injection to query the credit card table directly would still be limited by the web application's database connection permissions (the web_svc account's limited roles), and the database server only accepts connections from the web server on port 1433, not from the web application's SQL queries.

870
Matchingmedium

Match each encryption algorithm to its type.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Symmetric encryption

Asymmetric encryption

Hash function (broken)

Hash function (secure)

Symmetric encryption (deprecated)

Why these pairings

AES and 3DES are symmetric algorithms, while RSA and ECC are asymmetric. The distractors swap these types.

Page 11

Page 12 of 12