Courseiva

CompTIA PenTest+ (PT0-003) (PT0-003) — Questions 151–225

777 questions total · 11 pages · All types, answers revealed

Page 2

Page 3 of 11

Page 4
151
MCQhard

A penetration tester discovers a web application that fetches URLs from user input without proper validation. The tester targets the internal cloud metadata endpoint at 169.254.169.254 to retrieve instance credentials. Which type of attack is this?

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

SSRF (Server-Side Request Forgery) occurs when an attacker controls the URL that the server fetches, enabling requests to internal IPs, localhost, or cloud metadata services. The described web application that fetches URLs is a textbook SSRF vector: it lets the server make arbitrary outbound HTTP requests, bypassing network perimeters. This can expose internal services, credentials, or sensitive data, making SSRF the correct classification.

Why this answer

SSRF (Server-Side Request Forgery) occurs when the server makes requests to internal resources based on user input, and the cloud metadata endpoint is a common target.

152
MCQeasy

A penetration tester needs to enumerate active hosts and open ports on a network segment with minimal network traffic. Which tool should the tester use?

A.Nmap
B.Metasploit
C.Nikto
D.Hydra
AnswerA

Nmap is the industry-standard tool for active host discovery and port enumeration. The -sn option performs a ping sweep using ICMP, TCP SYN, or UDP probes to identify live hosts with minimal traffic, making it ideal for the early reconnaissance phase of a penetration test. Its ability to then map open ports and services on those hosts makes it the definitive choice for this task.

Why this answer

Nmap with -sn (ping scan) is designed for host discovery using minimal network traffic. Hydra is for password cracking, Metasploit is an exploitation framework, and Nikto is a web server scanner.

153
MCQmedium

During an external penetration test, the tester discovers that a critical web application is hosted on a third-party cloud provider. The SOW did not mention this provider. What should the tester do before proceeding with testing against that provider's infrastructure?

A.Obtain written authorization from the third-party provider
B.Scan only the IP addresses that resolve to the client's domain
C.Continue testing as long as the target is in scope
D.Ignore the web application and test only on-premises assets
AnswerA

Obtaining written authorization from the third-party provider is mandatory because the provider owns or controls the asset; without their explicit consent, testing constitutes unauthorized access, potentially violating computer fraud laws and civil agreements. This authorization must be documented in the rules of engagement and ideally obtained before any testing begins, as the client's scope alone cannot transfer ownership rights.

Why this answer

Testing third-party services requires explicit permission from the provider to avoid legal and contractual issues.

154
MCQeasy

During a penetration test, a tester runs the Responder tool on the internal network and captures an NTLMv2 hash. Which type of network attack is being performed?

A.ARP spoofing
B.Relay attack
C.LLMNR/NBT-NS poisoning
D.SSL stripping
AnswerC

Responder listens for Link-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS) queries that fail to resolve via DNS. It responds with its own IP address, tricking clients into sending authentication challenges (NTLMv1/v2 hashes) to the attacker, which can then be cracked offline or used in further attacks. This is the specific name-resolution poisoning technique that the responder tool is designed for, making it the correct choice.

Why this answer

Responder poisons LLMNR, NBT-NS, and mDNS queries to capture NTLM hashes from systems trying to resolve names.

155
Multi-Selecteasy

A penetration tester is reviewing source code and wants to identify common hardcoded credentials and input validation gaps. Which three checks should the tester perform? (Choose THREE.)

Select 3 answers
A.Verify the use of HTTPS
B.Identify usage of eval, exec, or system with user input
C.Search for hardcoded passwords or API keys
D.Look for SQL queries constructed with string concatenation
E.Check for proper session timeout implementation
AnswersB, C, D

Functions such as eval(), exec(), system(), and shell_exec() are extremely dangerous when they incorporate user-controlled data because they allow arbitrary code or OS commands to be executed. In a source review, you must trace every input that flows into these call sites, verify that proper allowlisting or input sanitization is in place, and consider replacing them with safer APIs. A single unguarded call can enable full command injection, making this a primary target for manual security review.

Why this answer

Hardcoded credentials, concatenated SQL queries, and dangerous functions like eval/exec/system are common vulnerabilities.

156
MCQmedium

Which of the following is typically included in the final deliverables of a penetration test?

A.A list of all employee passwords
B.Network diagrams of the client's internal network
C.A copy of all data extracted during the test
D.Executive summary, technical findings, and remediation guidance
AnswerD

The standard components of a professional penetration testing report are an executive summary, detailed technical findings, and actionable remediation guidance. The executive summary translates business risk into non-technical terms, while the technical findings section lists vulnerabilities with evidence and exploitation details, and the remediation guidance provides prioritized, specific corrective actions. Together, these sections enable both management and technical staff to understand the security posture and implement effective fixes.

Why this answer

Standard deliverables include an executive summary, technical findings, and remediation guidance.

157
MCQmedium

A penetration tester has completed a test and is finalizing the report. The client's security team needs to know the exact commands and steps to reproduce a critical remote code execution vulnerability. In which section of the report should this information be primarily documented?

A.Executive Summary
B.Methodology
C.Findings and Remediation
D.Appendix
AnswerC

The Findings and Remediation section is the core technical body of the penetration test report where each discovered vulnerability is documented in detail. For every finding, this section includes a severity rating (e.g., CVSS score), the affected systems or endpoints, a thorough step-by-step reproduction procedure, proof-of-concept evidence such as scripts or screenshots, and specific remediation recommendations. This level of detail is essential for the technical team to independently verify the vulnerability, understand the root cause, and apply the correct fix, which is exactly why it is the correct place for reproduction steps.

Why this answer

The Findings and Remediation section is the correct place to document the exact commands and steps to reproduce a critical remote code execution vulnerability. This section provides detailed technical evidence, including proof-of-concept (PoC) code, command syntax, and step-by-step reproduction steps, enabling the client's security team to validate and remediate the issue. The Executive Summary is too high-level for such technical details, and the Methodology section describes the overall testing approach, not specific exploit commands.

Exam trap

The trap here is that candidates confuse the Methodology section (which describes the general process) with the Findings section (which contains specific exploit details), leading them to incorrectly choose Methodology when the question asks for exact commands and steps to reproduce.

How to eliminate wrong answers

Option A is wrong because the Executive Summary is a high-level overview for management, focusing on risk ratings, business impact, and strategic recommendations, not the precise commands or reproduction steps. Option B is wrong because the Methodology section outlines the penetration testing framework, tools, and techniques used (e.g., scanning, enumeration, exploitation phases) but does not include the specific commands or step-by-step reproduction of individual vulnerabilities.

158
Multi-Selecthard

During a penetration test, the tester gains access to a domain-joined Windows machine and wants to perform Kerberoasting. Which THREE conditions are necessary for a successful Kerberoasting attack?

Select 3 answers
A.Local administrator privileges on the target
B.Ability to request TGS-REP tickets
C.Valid domain user credentials
D.Plaintext password of the service account
E.Service accounts with SPNs registered
AnswersB, C, E

This is the core action in Kerberoasting: the attacker must be able to send a TGS-REQ for a target SPN and receive the corresponding TGS-REP ticket. The returned service ticket is encrypted with a key derived from the service account's password hash, so possessing that ticket enables offline brute-force or dictionary attacks to recover the plaintext password.

Why this answer

The user must have domain credentials, there must be service accounts with SPNs, and the attacker must be able to request TGS tickets. Plaintext passwords are not required, and local admin is not needed.

159
MCQeasy

A penetration tester is performing passive reconnaissance on a target organization. Which of the following activities would be considered passive reconnaissance?

A.Scanning open ports on the target web server
B.Using a search engine to find exposed documents
C.Sending a crafted ICMP echo request to the target
D.Attempting a SQL injection on a login form
AnswerB

Querying a search engine like Google or Shodan returns information from the search provider's indexed cache rather than contacting the target's own systems. This means no packets are sent to the target itself, so retrieving exposed documents, metadata, or cached pages qualifies as passive reconnaissance and leaves no trace in the target's logs.

Why this answer

Passive reconnaissance involves gathering information without directly interacting with the target's systems. Using a search engine to find exposed documents (e.g., via Google dorking) relies on publicly indexed data, which does not send any packets to the target's infrastructure. This aligns with the definition of passive reconnaissance as it leverages third-party sources rather than engaging the target directly.

Exam trap

The trap here is that candidates often confuse 'passive' with 'low-interaction' activities, mistakenly thinking that sending a single ICMP packet or a simple port scan is passive because it seems minimal, but any direct packet transmission to the target constitutes active reconnaissance.

How to eliminate wrong answers

Option A is wrong because scanning open ports on the target web server requires sending TCP or UDP packets to the target, which constitutes active reconnaissance as it directly interacts with the target's systems. Option C is wrong because sending a crafted ICMP echo request (ping) to the target is an active probe that elicits a response from the target's network stack, making it active reconnaissance, not passive.

160
Multi-Selectmedium

A penetration tester is scoping a network penetration test for a client that uses multiple third-party services. Which TWO of the following are correct actions regarding third-party services? (Select TWO.)

Select 2 answers
A.Include all third-party services in scope without restriction
B.Assume that third-party services are out of scope
C.Test third-party services without informing the provider
D.Exclude third-party services from testing unless explicitly authorized
E.Obtain written permission from each third-party provider before testing
AnswersD, E

The correct default with third-party infrastructure is to exclude it from testing unless the provider has explicitly authorized it, because a penetration test's authorization is specific to the systems controlled and operated by the client. This conservative boundary prevents an otherwise legal engagement from crossing into systems owned by another party, thereby avoiding unauthorized access charges and preserving the tester's legal standing. If a critical third-party component must be assessed, a scoping change with written permission should be executed before any packets are sent.

Why this answer

Option D is correct because third-party services are owned and operated by external providers, so they must be excluded from the engagement scope unless the client has explicitly authorized testing of them, typically through contractual agreements or written consent. Option E is correct because testing a third-party provider's infrastructure without that provider's written permission is unauthorized access, so the tester must obtain explicit written authorization from each provider before any testing occurs. Option A is wrong because including all third-party services without restriction would authorize testing of systems the client does not own or control, creating legal and contractual violations.

Option B is wrong because assuming third-party services are automatically out of scope is not a valid scoping decision; they may be in scope if proper authorization exists. Option C is wrong because testing a third-party service without informing the provider is unauthorized and unethical, regardless of the client's request.

Exam trap

The trap here is that candidates may assume third-party services are automatically in scope because they are part of the client's infrastructure, but the exam tests the legal and contractual necessity of obtaining explicit written permission before testing any external system.

161
MCQhard

A penetration tester has gained a foothold on a Linux server through a vulnerable web application. The server has an outbound firewall that blocks all traffic except DNS queries (UDP 53). The tester needs to establish a reverse shell to maintain access. Which technique is most likely to succeed?

A.Use a bind shell on a high TCP port and connect from the tester's machine
B.Encode the payload in Base64 and use DNS tunneling to execute commands
C.Attempt a reverse shell over HTTP using TCP port 80
D.Use SSH reverse port forwarding to the tester's server on port 443
AnswerB

DNS tunneling exploits the firewall's allowance for DNS queries by encapsulating command-and-control data within DNS request and response messages. Base64 encoding converts the binary payload into ASCII characters that fit within DNS label constraints, allowing tools like dnscat2 or iodine to establish a bidirectional reverse shell over UDP 53. Because the firewall only permits DNS egress, the server can send queries to the tester's authoritative name server, and the responses carry commands and output, bypassing the TCP egress restriction entirely.

Why this answer

DNS tunneling encapsulates non-DNS traffic (e.g., command output) within DNS query and response packets, which are allowed through the firewall on UDP port 53. This technique bypasses the outbound firewall restriction by making the malicious traffic appear as legitimate DNS queries, enabling the tester to execute commands and exfiltrate data without triggering network-level blocks.

Exam trap

The trap here is that candidates assume a reverse shell over HTTP (TCP 80) will work because HTTP is commonly allowed, but the question explicitly states the firewall blocks all traffic except DNS queries (UDP 53), making TCP-based reverse shells fail regardless of the port.

How to eliminate wrong answers

Option A is wrong because a bind shell opens a listening port on the target server, but the outbound firewall blocks all traffic except DNS queries, so the tester cannot initiate a connection from their machine to the target's high TCP port; the firewall would drop the inbound connection attempt. Option C is wrong because a reverse shell over HTTP using TCP port 80 would require the target server to initiate an outbound TCP connection, but the firewall blocks all outbound traffic except UDP 53, so the TCP SYN packet would be dropped by the firewall.

162
MCQeasy

A penetration tester is performing a client-side attack against a user. The tester sends an email with a malicious attachment that, when opened, executes a macro that downloads a payload. Which type of attack is this?

A.Spear phishing
B.Vishing
C.Smishing
D.Watering hole
AnswerA

Spear phishing is the correct choice because the scenario describes a client-side attack that targets a specific user through email with a malicious attachment. Unlike generic phishing, spear phishing leverages reconnaissance—such as the victim's name, role, or interests—to craft a highly convincing message, increasing the likelihood of the user opening the attachment. This direct, personalized email vector aligns perfectly with the definition of spear phishing.

Why this answer

Spear phishing is a targeted phishing attack where the attacker crafts a personalized email to a specific individual or organization, often including a malicious attachment. In this scenario, the email with a macro-enabled attachment that downloads a payload is a classic spear phishing technique, as it exploits human trust and social engineering to deliver malware. This contrasts with generic phishing, which casts a wide net, and the client-side attack vector relies on the user executing the macro.

Exam trap

The trap here is that candidates confuse spear phishing with generic phishing or social engineering categories like vishing/smishing, but the key differentiator is the use of a personalized email with a malicious attachment, not the delivery medium (voice or SMS).

How to eliminate wrong answers

Option B (Vishing) is wrong because vishing (voice phishing) uses telephone calls or voice messages to trick victims into revealing sensitive information, not email attachments with macros. Option C (Smishing) is wrong because smishing (SMS phishing) uses text messages or SMS to deliver malicious links or requests, not email attachments with macros.

163
MCQhard

During a penetration test, the tester discovers evidence of an ongoing criminal activity, such as unauthorized data exfiltration by an insider. The client's legal team has not provided specific guidance on handling such discoveries. According to best practices and legal considerations, what should the tester do first?

A.Continue testing to gather more evidence
B.Contact law enforcement directly
C.Ignore the finding as it is out of scope
D.Stop testing and report the finding to the client immediately
AnswerD

Evidence of ongoing criminal activity triggers a legal and ethical duty that overrides the engagement scope. Halting testing preserves evidence integrity and prevents further harm, while immediate notification lets the client's legal team direct next steps, satisfying the requirement to act without specific prior guidance.

Why this answer

The correct option is D: stop testing and report the finding to the client immediately. In penetration testing, when evidence of ongoing criminal activity such as unauthorized data exfiltration by an insider is discovered and the client's legal team has not provided specific guidance, the tester's first duty is to halt testing and notify the client so their legal counsel can decide how to proceed, preserving evidence and avoiding interference with a potential investigation. Continuing testing (A) risks destroying evidence or tipping off the insider, and contacting law enforcement directly (B) bypasses the client's authority and could violate the engagement contract or legal privilege.

Ignoring the finding (C) is unethical and potentially illegal, as it conceals known criminal activity rather than escalating it through the proper client channel.

164
Multi-Selectmedium

A penetration tester is conducting passive reconnaissance and wants to gather information about a target organization's employees, email addresses, and internal structure. Which TWO tools are best suited for this purpose? (Select TWO.)

Select 2 answers
A.Maltego
B.Gobuster
C.Nmap
D.theHarvester
E.Nikto
AnswersA, D

Maltego is a passive OSINT and data-mining tool that aggregates information from public sources such as social media, DNS records, and certificate transparency logs. It uses transforms to pivot between entities — for example, from a domain to an employee email, then to a linked social profile — revealing organizational relationships without ever touching the target's infrastructure. This relationship graphing makes it ideal for passively mapping an organization's attack surface and employee information.

Why this answer

Maltego is a data mining tool that visualizes relationships and can collect info from social media, DNS, and other sources. theHarvester gathers emails, subdomains, and names from public sources. LinkedIn is also used for organizational chart mapping, but the question asks for tools specifically.

165
MCQhard

A penetration tester is using a vulnerability scanner to assess an internal network. The scanner reports a critical vulnerability in a custom web application, but manual verification shows the application is not vulnerable. Which of the following is the MOST likely cause of this false positive?

A.The scanner used an outdated vulnerability database that does not match the application's patches
B.The scanner identified the application version from the HTTP response header, but the vulnerability was already patched in that version
C.The scanner detected a vulnerable library used by the application, but the application's implementation does not expose the vulnerable code path
D.The scanner performed an exploit attempt that succeeded on a different service on the same host
AnswerC

This is the classic false-positive scenario: a scanner identifies a third-party library (such as a JavaScript framework or open-source component) by its version string and matches it against known CVEs, but it cannot determine whether the application's code ever calls the vulnerable function or passes attacker-controlled data into it. Even when a library has a security flaw, if the custom application either implements the code path safely or never exposes it, the finding is not actually exploitable. A penetration tester must manually trace the application's logic and confirm reachability before reporting a confirmed vulnerability.

Why this answer

Vulnerability scanners often identify libraries or components with known CVEs, but they cannot determine whether the application's code actually invokes the vulnerable functions. In this case, the scanner flagged a library with a known vulnerability, but the custom web application's implementation does not expose the vulnerable code path, resulting in a false positive. This is a common limitation of static or version-based detection versus dynamic, context-aware analysis.

Exam trap

The trap here is that candidates often assume a scanner's version-based detection is definitive, overlooking the fact that a vulnerable library may be present but not actively used in a way that exposes the vulnerability.

How to eliminate wrong answers

Option A is wrong because an outdated vulnerability database would more likely cause false negatives (missing real vulnerabilities) rather than false positives; a false positive typically arises from over-aggressive or version-based detection, not from missing patches. Option B is wrong because if the vulnerability was already patched in that version, the scanner should not report it based on the HTTP response header; this scenario would indicate a scanner misconfiguration or a bug, not a typical false positive cause, and the question specifies the application is not vulnerable, not that it was patched.

166
Multi-Selecthard

During post-engagement, a penetration tester needs to ensure proper data handling. Which THREE actions should the tester take?

Select 3 answers
A.Securely destroy test artifacts after the client accepts the report
B.Purge any data stored on test systems used during the engagement
C.Retain all test data indefinitely for future reference
D.Follow the agreed-upon data handling procedures in the contract
E.Share findings with other clients to demonstrate expertise
AnswersA, B, D

Securely destroying test artifacts after client acceptance is the final step in the data lifecycle, requiring methods such as cryptographic erase or physical shredding to render data unrecoverable. This includes scan reports, payloads, captured credentials, and network captures stored on assessment laptops or servers. Retention beyond acceptance is unnecessary unless the contract explicitly permits it, making immediate destruction a standard practice to minimize exposure.

Why this answer

After the engagement, test artifacts should be securely destroyed, data should be purged from test systems, and confidential information must be handled per agreement.

167
MCQhard

A penetration tester discovers evidence of ongoing criminal activity, such as a data breach by an internal employee, during a white box penetration test. The client's legal team has not provided specific instructions on handling such discoveries. According to best practices and legal considerations, what should the tester do first?

A.Notify law enforcement directly
B.Continue testing and document the evidence for later reporting
C.Stop testing and contact the client's emergency contact
D.Ignore the activity and proceed as planned
AnswerC

Halting all testing and invoking the client's pre-arranged emergency contact path is the only action that both preserves the integrity of forensic evidence and keeps the engagement within its legal scope. The emergency contact is typically the client's incident-response lead or executive with authority to decide whether to involve law enforcement, issue containment orders, or terminate the test. This step ensures that the tester remains a controlled, auditable resource rather than acting unilaterally on potentially sensitive criminal matters.

Why this answer

The tester should immediately stop testing and inform the client's emergency contact to handle the criminal activity appropriately.

168
MCQmedium

A penetration tester is using a vulnerability scanner on a web application and notices that many findings are false positives caused by the scanner sending oversized payloads that the application truncates or rejects. Which scanner configuration change would MOST effectively reduce false positives in this scenario?

A.Increase the scan intensity to send more payloads
B.Enable safe checks or anti-false positive mode
C.Increase the HTTP request timeout
D.Disable vulnerability detection for certain plugins
AnswerB

Enabling safe checks (or anti-false positive mode) forces the scanner to perform an additional verification pass, typically by sending a benign follow-up request or analyzing the response against a baseline, before a finding is reported as a vulnerability. This confirmatory step distinguishes real, exploitable conditions from noise, such as default error pages or generic server responses. It is the standard configuration for minimizing false positives while retaining true positive detection.

Why this answer

Enabling safe checks or anti-false positive mode configures the scanner to send payloads that conform to expected application input constraints (e.g., length limits, character sets) rather than oversized or malformed payloads. This reduces false positives by ensuring that the scanner only reports vulnerabilities that are actually reachable and exploitable under normal application behavior, rather than triggering truncation or rejection logic that is not a security flaw.

Exam trap

The trap here is that candidates may confuse 'increasing scan intensity' with 'more thorough testing,' but in reality, it amplifies the very behavior (oversized payloads) that causes false positives, while 'safe checks' directly mitigates the root cause.

How to eliminate wrong answers

Option A is wrong because increasing scan intensity sends more payloads, which would likely increase the number of oversized payloads and thus increase false positives, not reduce them. Option C is wrong because increasing the HTTP request timeout only affects how long the scanner waits for a response; it does not change the payload size or content, so it cannot reduce false positives caused by payload truncation or rejection.

169
Multi-Selectmedium

A penetration tester is analyzing a network packet capture to identify potential attacks. Which two indicators suggest a successful SQL injection attempt?

Select 2 answers
A.Multiple failed login attempts
B.A large number of HTTP 500 errors
C.A query string containing ' OR 1=1--
D.Unexpected data in the response body
E.A significant increase in outbound traffic
AnswersC, D

The query string containing ' OR 1=1-- is the classic tautology-based SQL injection payload. The single quote terminates the SQL string literal in the WHERE clause, OR 1=1 makes the condition always true, and -- comments out the remainder of the original query, forcing the database to return more results than intended. In a network capture, this exact pattern in a GET request's query parameters is direct, technical evidence of a SQL injection attempt and is the most definitive indicator among the options.

Why this answer

Option C is correct because a query string containing ' OR 1=1-- is a classic SQL injection payload: the single quote breaks out of the intended string literal, OR 1=1 makes the WHERE clause always true, and -- comments out the remainder of the original query, so its presence in captured HTTP traffic is a strong indicator of an injection attempt. Option D is correct because unexpected data in the response body (for example, database error messages, extra rows, or records the application should not return) indicates the injected SQL was actually executed and influenced the query result, which distinguishes a successful injection from a mere attempt. The other options are not specific to SQL injection: A (multiple failed login attempts) points to brute-force or credential-stuffing activity, B (a large number of HTTP 500 errors) is a generic sign of server-side faults or fuzzing that may accompany many attack types, and E (a significant increase in outbound traffic) suggests data exfiltration or command-and-control traffic rather than SQL injection itself.

170
MCQhard

During an internal penetration test, the tester wants to relay captured NTLM authentication to a server to gain access. Which tool from the Impacket suite is specifically designed for NTLM relay attacks?

A.CrackMapExec
B.ntlmrelayx
C.Metasploit
D.Responder
AnswerB

ntlmrelayx is the core Impacket tool built specifically for NTLM relay: it listens for SMB, HTTP, HTTPS, and other authentication attempts, then relays that challenge-response handshake to a chosen target such as SMB, LDAP, MSSQL, or other protocols. It can automatically perform SMB-signing and EPA checks, dump secrets, create users, or execute commands as the impersonated user, and it optionally integrates with Responder for coerced authentication. This is why it is the dedicated answer for relaying rather than just capturing.

Why this answer

ntlmrelayx is the Impacket tool for relaying NTLM authentication.

171
MCQmedium

A client requests a penetration test of a new mobile application that is still in development and only accessible on a test server behind the corporate VPN. The tester should include which of the following in the scope?

A.The production servers hosting the app when it goes live
B.Only the test server and the mobile application client
C.The corporate VPN infrastructure
D.All third-party APIs used by the application
AnswerB

Scope should cover only the in-development test server and the mobile client under test. Production systems and the wider corporate VPN are excluded because the app is unreleased and confined to that test environment, matching the stem's limited-access constraint.

Why this answer

The scope of a penetration test for an application still in development should be limited to the test server and the mobile application client. This ensures the assessment focuses on the application's security posture without including production systems that are not yet live or the corporate VPN infrastructure, which is typically out of scope unless explicitly requested. The tester should only evaluate the components directly relevant to the application's functionality and security during development.

Exam trap

The trap here is that candidates may mistakenly include the corporate VPN infrastructure or production servers, thinking they are necessary for a comprehensive test, but the scope must be strictly limited to the components specified by the client to avoid unauthorized testing and scope creep.

How to eliminate wrong answers

Option A is wrong because including production servers that are not yet live or accessible during the test would extend the scope beyond the client's request, potentially introducing risks to systems that are not part of the current development phase. Option C is wrong because the corporate VPN infrastructure is a network component that provides access to the test server, but it is not part of the mobile application itself; testing it would require separate authorization and is outside the scope of an application-focused penetration test.

172
MCQeasy

During a penetration test, a tester captures NTLMv2 hashes by spoofing LLMNR responses. Which tool is most commonly used for this purpose?

A.Responder
B.John the Ripper
C.Bettercap
D.Hashcat
AnswerA

Responder is the correct tool because it actively listens for LLMNR, NBT-NS, and mDNS name-resolution requests on the network and replies with spoofed responses that redirect the victim to the attacker's machine. When the target attempts to authenticate (e.g., to a fake SMB share), their system sends an NTLMv2 challenge-response hash, which Responder captures for offline cracking or relay attacks.

Why this answer

Responder is the standard tool for LLMNR/NBT-NS/mDNS poisoning to capture NTLM hashes.

173
MCQeasy

A client requests a penetration test of their production environment that includes critical financial transaction systems. The client is concerned about potential service disruptions. Which of the following should the tester include in the Rules of Engagement to address this concern?

A.The tester will only use passive reconnaissance techniques
B.A 'stop loss' condition that requires immediate termination of testing if system metrics exceed defined thresholds
C.Exclude all financial transaction systems from the scope of testing
D.The client must provide a service level agreement (SLA) to the tester
AnswerB

A stop-loss condition is a predefined threshold on system metrics (e.g., CPU utilization, memory consumption, request latency, or error rate) that, when exceeded, triggers immediate termination of all active testing. In a production environment, exploit payloads, credential-stuffing loops, or vulnerability scanners can inadvertently cause a self-inflicted denial of service by exhausting connection pools, filling disk queues, or saturating bandwidth. Defining these thresholds in the rules of engagement gives the tester a clear, objective tripwire to protect availability before damage occurs, while still allowing aggressive testing up to that limit.

Why this answer

A 'stop loss' condition is a standard mechanism in Rules of Engagement (RoE) that defines specific system metrics (e.g., CPU utilization > 90%, memory usage > 80%, or transaction latency > 500ms) which, when exceeded, require immediate termination of testing. This directly addresses the client's concern about service disruptions in the production environment by providing a safety threshold that prevents the penetration test from causing performance degradation or outages in critical financial transaction systems.

Exam trap

The trap here is that candidates may confuse 'scope exclusion' (Option C) with a valid risk mitigation strategy, but the PT0-002 exam expects testers to include controls like stop-loss conditions to enable safe testing of in-scope critical systems rather than excluding them.

How to eliminate wrong answers

Option A is wrong because passive reconnaissance techniques (e.g., OSINT, traffic sniffing without injection) are insufficient for a full penetration test of financial transaction systems; they cannot validate active vulnerabilities like SQL injection or authentication bypass, and the client's concern about disruption is not addressed by limiting to passive techniques since active testing is still needed for meaningful security assessment. Option C is wrong because excluding all financial transaction systems from scope would render the penetration test ineffective for the client's primary concern—these systems are the critical assets that need testing; the goal is to test them safely, not to avoid them entirely.

174
MCQmedium

A tester is performing a web application test and finds an endpoint that accepts XML input. The tester sends a payload that includes an external entity referencing a local file. Which vulnerability is being tested?

A.IDOR
B.SSRF
C.XXE
D.Command injection
AnswerC

XML External Entity (XXE) injection occurs when an XML parser processes external entities defined in a DTD (Document Type Definition), allowing attackers to read local files, perform internal port scans, or cause denial of service. The 'e' in the stem strongly suggests 'external entity,' and the classic symptom is sensitive data disclosure, such as /etc/passwd or configuration files. This vulnerability arises when developers leave DTD processing and external entity resolution enabled in XML libraries, making XXE the correct finding.

Why this answer

XXE (XML External Entity) injection allows reading local files or performing SSRF via XML parsers.

175
MCQeasy

A penetration tester is hired to assess the security of a company's internal network. The tester is given full network diagrams, credentials, and source code. Which type of penetration test is being performed?

A.White box
B.Black box
C.Grey box
D.Red team
AnswerA

White box testing grants the tester complete knowledge of the target environment, including source code, architecture diagrams, credentials, and internal documentation. This enables deep static analysis and code-path-specific vulnerability discovery, such as identifying logic flaws or hardcoded secrets that would be invisible to a black-box approach. The elevated access reduces reconnaissance effort and speeds up the assessment, but requires the tester to prioritize findings against a vast attack surface and validate beyond mere code scanning.

Why this answer

White box testing provides the tester with full knowledge of the target environment, including credentials and documentation.

176
MCQmedium

A penetration testing company is contracted to perform a social engineering engagement. The client requests that only employees in the finance department be targeted. Which scoping consideration is most relevant?

A.Personnel scope
B.Rules of engagement
C.Production vs. staging environments
D.Third-party services
AnswerA

Personnel scope defines the specific subset of employees, departments, or roles that a social engineering campaign may legitimately target. For example, it may list all non-executive staff as in-scope but exclude executive leadership or a particular division for internal political reasons. This is the correct scoping element because the question asks where the target population is recorded, and that is precisely what the personnel scope does.

Why this answer

Personnel scope defines which individuals or groups are in-scope for social engineering testing.

177
MCQeasy

When a client disagrees with a finding's severity rating, what is the best approach for the penetration tester?

A.Discuss the rationale and adjust if valid business context is provided
B.Escalate to the tester's manager
C.Insist on the original rating and refuse to change it
D.Lower the rating to satisfy the client
AnswerA

Severity in a penetration test is computed from evidence (CVSS metrics, exploitability, and impact) but is not absolute; business context—such as compensating controls, asset criticality, or exposure—can legitimately alter that score. A tester should walk through the CVSS vector and risk equation with the client, and if the client supplies valid environmental factors that justify a change, recalibrate the rating. This keeps the report both evidence-based and tailored to the client's actual risk posture.

Why this answer

The tester should listen to the client's perspective and discuss the risk assessment, providing rationale to explain the rating.

178
MCQeasy

A penetration tester has physical access to a small office. The network switch is in a locked cabinet, but the tester notices the lock is broken. The switch has multiple ports, and the tester wants to connect to the internal network. The tester has a laptop with an Ethernet port. However, the tester suspects that port security is enabled on the switch ports, which would block the connection if the MAC address is not authorized. Which action should the tester take first to gain network access?

A.Perform a MAC flooding attack to fill the switch's MAC table.
B.Use a DHCP starvation attack to exhaust IP addresses.
C.Plug the laptop into an available switch port.
D.Connect to the switch's console port and attempt default credentials.
AnswerD

Connecting to the switch's console port provides direct, out-of-band management access that bypasses all network-based security controls, including port security and 802.1X. If the default credentials (e.g., cisco/cisco, admin/admin, or blank passwords) have not been changed, the tester can log in to the management interface and alter the configuration. From there, they could disable port security, add their laptop's MAC address as authorized, create a VLAN hopping rule, or even capture traffic — effectively gaining full control over the switch and, by extension, network access. Default credentials are extremely common on legacy or poorly maintained equipment, making this a high-probability attack vector when physical access is available.

Why this answer

The tester has physical access to the switch and the lock is broken, allowing direct console access. If port security is enabled, plugging into a data port (Option C) would be blocked. The fastest first step is to connect to the console port and try default credentials (e.g., cisco/cisco) to gain administrative control of the switch, which can then be used to disable port security or add the tester's MAC address to the allowed list.

Exam trap

The trap here is that candidates assume physical access to a switch port means they can simply plug in (Option C), but Cisco exams emphasize that port security is a common Layer 2 control that must be bypassed via management access first, not by attacking the data plane.

How to eliminate wrong answers

Option A is wrong because a MAC flooding attack aims to overflow the switch's CAM table, forcing it into hub mode (flooding traffic out all ports), but it does not bypass port security—the tester's own MAC would still be unauthorized and the port would be err-disabled or blocked. Option B is wrong because a DHCP starvation attack exhausts the DHCP pool to cause a denial of service or force clients to use a rogue DHCP server; it does not grant the tester network access through a port-secured switch port. Option C is wrong because if port security is enabled with MAC address filtering, plugging directly into an available port will trigger a security violation (e.g., shutdown, restrict, or protect mode), blocking the tester's connection immediately.

179
MCQeasy

A client requests a penetration test of their network and provides a list of IP addresses. During scoping, the tester notices that several IP addresses belong to a major cloud service provider. What should the tester do FIRST before including those IP addresses in the test?

A.Proceed with testing since the client provided the IP addresses
B.Ask the client to verify ownership and obtain written authorization from the cloud provider if needed
C.Exclude the cloud IP addresses from the scope without further discussion
D.Perform a quick port scan to determine if the IPs are responsive before deciding
AnswerB

The correct approach is to treat cloud-hosted assets as potentially owned or operated by a third party, even if the client claims they belong to their organization. The tester should request documentation proving ownership, such as cloud account identifiers, virtual network/subnet details, or a letter from the cloud provider explicitly authorizing penetration testing of the specified IP ranges. Written authorization from both the client and, when necessary, the cloud provider protects the tester against legal action, ensures the provider's security monitoring does not flag the activity as malicious, and keeps the test within the boundaries of the provider's testing policies (e.g., AWS's penetration testing policy, Azure's security testing guidelines).

Why this answer

Testing cloud provider IP addresses without explicit authorization violates the cloud provider's terms of service and could be considered unauthorized access, potentially leading to legal action. The tester must first verify that the client actually owns those IPs (e.g., via ARIN WHOIS or cloud provider documentation) and obtain written authorization from the cloud provider, as the provider's shared infrastructure means the tester's traffic could impact other tenants. This aligns with the PT0-002 scoping requirement to confirm all targets are within the authorized boundary.

Exam trap

CompTIA often tests the misconception that a client-provided IP list is sufficient authorization, but the trap here is that cloud IPs require additional verification and written permission from the provider due to multi-tenant risks and legal boundaries.

How to eliminate wrong answers

Option A is wrong because proceeding with testing solely based on the client's list ignores the critical step of verifying ownership and authorization, risking violation of laws like the Computer Fraud and Abuse Act (CFAA) and cloud provider policies. Option C is wrong because excluding cloud IPs without discussion may omit legitimate client-owned resources (e.g., a VPC or dedicated host) that should be tested, and the tester must first clarify ownership rather than making assumptions.

180
MCQmedium

A tester is performing a Kerberoasting attack. After requesting TGS tickets, which hashcat mode should be used to crack them?

A.-m 1000
B.-m 13100
C.-m 18200
D.-m 5500
AnswerB

Hashcat mode 13100 is specifically designed for Kerberos 5 TGS-REP hashes in $krb5tgs$ format, typically extracted from memory (e.g., Impacket, Rubeus) or saved as .kirbi and converted. This is the correct mode because Kerberoasting yields a service ticket whose encrypted portion is encrypted with RC4-HMAC (etype 23) using the service account's NT hash.

Why this answer

Kerberoast tickets are TGS-REP hashes, mode 13100.

181
MCQmedium

During a pre-engagement meeting, the client states that no testing is allowed on the wireless network or on any cloud-based services hosted by third parties. Which part of the engagement documentation would specify these restrictions?

A.Get-out-of-jail letter
B.Rules of engagement (RoE)
C.Statement of work (SOW)
D.Non-disclosure agreement (NDA)
AnswerB

The rules of engagement (RoE) is the official document that codifies all permissible actions, boundaries, and constraints for a penetration test, including explicit 'no testing' restrictions on designated assets or services. It also specifies emergency procedures, legal boundaries, and points of contact, ensuring both client and tester agree on the exact operational parameters. In a pre-engagement meeting, the client's stated restrictions would be formally recorded in the RoE, making it the correct document that defines what is off-limits.

Why this answer

The rules of engagement (RoE) define the scope, including what is allowed and not allowed, such as restrictions on wireless and cloud services.

182
MCQmedium

During an internal penetration test, a tester is trying to identify live hosts on a network segment. The tester wants to avoid generating a high volume of traffic or alerts. Which scanning technique is most appropriate for this task?

A.Full TCP connect scan on common ports
B.ICMP echo request sweep
C.SYN stealth scan on port 80 and 443
D.ARP ping scan
AnswerD

An ARP ping scan sends Ethernet broadcast frames at Layer 2, which do not create IP-level log entries and are rarely monitored because ARP traffic is normal on any local network segment. Since every active IP host must respond to an ARP request to communicate, this is the most reliable and stealthy method for discovering live hosts on the same subnet. The tradeoff is that ARP only works locally and cannot cross routers, but for internal LAN reconnaissance it is the ideal low-traffic, low-noise technique.

Why this answer

An ARP ping scan (option D) is the most appropriate technique because it operates at Layer 2 (Data Link layer) using ARP requests to determine if an IP address is active on the local subnet. Since ARP traffic is confined to the local broadcast domain and does not generate IP-level packets, it produces minimal network traffic and is unlikely to trigger IDS/IPS alerts, making it ideal for stealthy host discovery on a local network segment.

Exam trap

The trap here is that candidates often choose a SYN stealth scan (option C) thinking it is the quietest option, but they overlook that ARP scans are even more stealthy and efficient for local subnet discovery because they avoid IP-layer detection entirely.

How to eliminate wrong answers

Option A is wrong because a full TCP connect scan completes the three-way handshake on every port, generating a high volume of traffic and easily triggering alerts on firewalls or intrusion detection systems. Option B is wrong because an ICMP echo request sweep sends ICMP packets that are often blocked or filtered by network devices, and the broadcast nature of ICMP can still produce noticeable traffic and alerts. Option C is wrong because a SYN stealth scan on ports 80 and 443, while stealthier than a full connect scan, still sends TCP SYN packets that traverse Layer 3 and can be detected by network monitoring tools; it also limits discovery to only two ports, potentially missing live hosts that do not have those services open.

183
MCQmedium

A penetration tester is documenting evidence for a finding. Which of the following is the least appropriate type of evidence to include?

A.Screenshot of the vulnerability with timestamp
B.Proof-of-concept code that deletes user data to prove impact
C.Network capture showing the exploit traffic
D.Output from the vulnerability scanner
AnswerB

A proof-of-concept that deletes user data is destructive and irresponsible; it goes beyond verification by causing irreversible harm to the target environment, potentially violating the rules of engagement and breaking production data. Penetration testers should demonstrate impact using non-destructive methods, such as reading a file or modifying a test record, to avoid unintended consequences. This is the option that must be avoided.

Why this answer

Proof-of-concept code should demonstrate exploitability without causing harm. Including a fully functional exploit that could cause harm is irresponsible.

184
Multi-Selecthard

You are performing reconnaissance on a target's web application. Which of the following techniques can be used to discover hidden directories and files? (Select THREE.)

Select 3 answers
A.Using feroxbuster
B.Using dirsearch with a common wordlist
C.Running Nikto with default options
D.Using gobuster in dir mode
E.Querying theHarvester
AnswersA, B, D

feroxbuster is a high-performance, Rust-based directory and file bruteforcer built for web content discovery. It uses asynchronous I/O and parallel HTTP requests to rapidly enumerate hidden paths, and its automatic recursion (with the -r flag) lets it descend into discovered directories without manual rescanning. Features like extensions, filters on status codes/sizes, and the --extract-links option to mine further paths from response bodies make it a precise and efficient choice for this phase of recon.

Why this answer

Directory bruteforce tools like dirsearch, gobuster, and feroxbuster are designed to discover hidden directories and files by using wordlists. Nikto is a vulnerability scanner, not primarily for directory discovery. theHarvester is for email/subdomain harvesting.

185
Multi-Selectmedium

During a web application penetration test, a tester identifies a SQL injection vulnerability. Which TWO techniques could be used to extract data from the database? (Select TWO.)

Select 2 answers
A.Command injection
B.XXE injection
C.Blind time-based SQL injection
D.Reflected XSS
E.UNION-based SQL injection
AnswersC, E

Time-based blind injection embeds conditional delays, such as database sleep functions, into the query. The tester infers each bit of data from whether the response is delayed, extracting content even when no output or error is returned, satisfying the requirement despite absent in-band feedback.

Why this answer

Blind time-based SQL injection (C) is correct because when the application returns no visible query output or error messages, the tester can inject conditional statements (e.g., WAITFOR DELAY in MSSQL or SLEEP() in MySQL) and infer data by measuring response delays. UNION-based SQL injection (E) is correct because it appends a crafted UNION SELECT statement to the original query, allowing the attacker to retrieve data from other tables or columns directly in the application's response when the column count and data types match. Command injection (A) targets OS command execution, not SQL query manipulation, so it does not extract database data.

XXE injection (B) exploits XML external entity parsing to read files or perform SSRF, which is unrelated to SQL injection. Reflected XSS (D) is a client-side scripting attack that executes JavaScript in a victim's browser and cannot query a database.

Exam trap

The trap is that the question says 'SQL injection' but lists non-SQLi techniques (command injection, XXE, XSS) as distractors — candidates who do not carefully map each option to the SQLi family may select an unrelated vulnerability class.

186
MCQmedium

While performing vulnerability scanning with Nessus, a penetration tester notices that several high-severity vulnerabilities are reported for a web server, but manual verification shows the server is not vulnerable. What is the MOST likely cause of this discrepancy?

A.The scanner used unauthenticated scans, missing the actual vulnerabilities
B.The scanner configuration excluded necessary plugins for accurate testing
C.The target server is behind a load balancer that modifies responses
D.The scanner is reporting false positives due to inaccurate version detection
AnswerD

Version-based detection is a heuristic where the scanner matches a service's banner or fingerprint against a vulnerability database; if the version string is parsed incorrectly or the banner is outdated, false positives occur. For example, a web server with a backported security patch may still display an old version number, leading the scanner to flag a vulnerability that is not actually present. This is a well-known limitation of unauthenticated scanning and a common cause of erroneous positive reports.

Why this answer

Nessus performs version-based detection by analyzing server banners and HTTP response headers. If the web server's software version string is outdated or misconfigured, the scanner may flag vulnerabilities that do not actually exist in the patched or custom-compiled version. This is a classic false positive scenario where the scanner relies on version matching rather than actual exploit verification.

Exam trap

The trap here is that candidates often assume high-severity findings must be real, or they confuse false positives with missed vulnerabilities due to authentication or plugin issues.

How to eliminate wrong answers

Option A is wrong because unauthenticated scans typically reduce visibility and may miss vulnerabilities, but they do not cause false positives; in fact, they more often lead to false negatives. Option B is wrong because excluding necessary plugins would reduce the number of findings, not generate high-severity false positives. Option C is wrong because a load balancer modifies traffic distribution and may affect response headers, but it does not cause Nessus to report vulnerabilities that are not present; the scanner still sees the actual server response.

187
MCQhard

A penetration tester is preparing a report for a client that requires compliance with PCI DSS. Which of the following is the MOST important consideration for the report structure?

A.Include a separate section for vulnerabilities found in the ASV scan.
B.The client's name and sensitive data should be anonymized.
C.All findings must be encrypted at rest and in transit.
D.The report should map findings to specific PCI DSS requirements.
AnswerD

PCI DSS compliance demands demonstrable traceability, so the report must map each finding to the specific PCI DSS requirement it breaches. This lets the client verify compliance status and prioritise remediation against the standard's clauses.

Why this answer

Option D is correct because PCI DSS compliance reporting requires that each identified finding be traceable to the specific PCI DSS requirement it violates, enabling the client to demonstrate compliance status and remediation priorities to a QSA or acquirer. Mapping findings to PCI DSS requirements directly supports the standard's mandate for documented, requirement-specific evidence rather than generic vulnerability lists. Options A, B, and C, while potentially useful in some engagements, are not the most important structural consideration for a PCI DSS compliance report: ASV scan sections apply only to external scanning requirements, anonymization is not a PCI DSS reporting mandate, and encryption of the report itself is a data-handling control rather than a report-structure requirement.

188
Multi-Selecteasy

Which TWO of the following are components of the DREAD model for risk assessment? (Select TWO.)

Select 2 answers
A.Likelihood
B.Severity
C.Reproducibility
D.Impact
E.Damage
AnswersC, E

Reproducibility is a genuine DREAD component that measures how consistently an exploit attempt yields the same successful result. An attack that works every time it is attempted receives a high score, whereas one that succeeds only occasionally gets a low score; this directly affects the reliability of the threat event. In the scoring formula, Reproducibility is weighted equally with the other four factors when calculating the overall risk value.

Why this answer

DREAD stands for Damage, Reproducibility, Exploitability, Affected users, Discoverability.

189
MCQmedium

A tester is performing a web application test and discovers a parameter that seems to reflect input in the response. The tester attempts a reflected XSS payload but the application filters script tags. Which XSS variant should the tester try next?

A.Blind XSS
B.Reflected XSS with event handlers
C.DOM-based XSS
D.Stored XSS
AnswerB

The tester found that the application reflects the input back in the HTTP response but filters out script tags. By injecting an event handler such as onerror within an HTML tag (e.g., <img src=x onerror=alert(1)>), the payload executes without needing a script element, thus bypassing the filter. This is a classic reflected XSS vector because the malicious script is included in the request and immediately rendered in the response, relying on the victim's interaction with a crafted link.

Why this answer

If script tags are filtered, HTML event handlers like onerror can still execute JavaScript.

190
MCQmedium

A penetration tester is conducting a red team exercise. The goal is to simulate an advanced persistent threat (APT) and test the organization's detection and response capabilities. Which of the following engagement types best describes this scenario?

A.Wireless penetration test
B.Red team exercise
C.Network penetration test
D.Web application penetration test
AnswerB

A red team exercise is a goal-based adversarial simulation that emulates the tactics, techniques, and procedures (TTPs) of real-world threat actors, often using frameworks like MITRE ATT&CK. It operates under strict rules of engagement and typically includes stealth and evasion to test the organization's detection and response capabilities, not just technical vulnerabilities. Unlike standard penetration tests, the red team's success is measured by whether it can achieve a specified objective (e.g., accessing critical data) without being detected by the blue team.

Why this answer

A red team exercise (Option B) is the correct engagement type because it simulates an advanced persistent threat (APT) by emulating real-world adversarial tactics, techniques, and procedures (TTPs) across multiple attack vectors, with the primary objective of testing the organization's detection and response capabilities. Unlike a standard penetration test, a red team exercise is goal-oriented (e.g., gaining access to a specific system or data) and often operates under a covert or no-notice scenario, requiring the team to bypass security controls and evade detection over an extended period.

Exam trap

The trap here is that candidates often confuse a red team exercise with a standard penetration test, mistakenly thinking any simulated attack qualifies as a red team exercise, but the key differentiator is the APT-style objective of testing detection and response rather than simply finding vulnerabilities.

How to eliminate wrong answers

Option A is wrong because a wireless penetration test focuses exclusively on assessing the security of wireless networks (e.g., WPA2/3, 802.1X, rogue APs) and does not simulate an APT's multi-vector, long-duration campaign. Option C is wrong because a network penetration test is a point-in-time assessment of network infrastructure vulnerabilities (e.g., open ports, misconfigured firewalls, weak SNMP strings) and does not involve the stealthy, persistent, and goal-driven behavior of an APT. Option D is wrong because a web application penetration test targets only web application vulnerabilities (e.g., SQLi, XSS, CSRF) and lacks the breadth of attack surfaces (e.g., physical, social engineering, endpoint) required to emulate an APT.

191
MCQhard

Based on the exhibit, which tool would be most effective for exploiting this vulnerability?

A.Burp Suite Repeater
B.Nikto
C.Hydra
D.sqlmap
AnswerD

sqlmap is the correct tool because it is a dedicated SQL injection exploitation tool that automates the entire process: detecting the injection point, fingerprinting the database, enumerating schema and records, and even taking control of the host in some cases. It supports time-based, boolean-based, UNION-query, and stacked-query techniques, and it can handle multi-step HTTP interactions with session management and CSRF token handling. This makes it far more effective than manual request editing or general-purpose scanners for a vulnerability that requires automated payload delivery and response parsing across several endpoints.

Why this answer

The error log shows a SQL injection vulnerability. SQLmap is designed to automate SQL injection exploitation. Burp Suite Repeater can manually craft requests, but sqlmap automates the process.

Hydra is for password cracking, and Nikto is for web scanning.

192
MCQmedium

While analyzing a malicious document, a tester extracts a VBA macro. Which tool can help decode the macro for analysis?

A.oledump
B.pdf-parser
C.Nmap
D.Wireshark
AnswerA

oledump is the correct tool because it is purpose-built to inspect OLE compound files such as .doc, .xls, and legacy .ppt. It enumerates the internal streams and, with the --vbadecompress flag or the vbadecompress plugin, extracts the compressed VBA macro source code that was stored in the VBA/Compressed stream. This lets an analyst statically review the macro's payload and obfuscation routines without opening the document.

Why this answer

Oledump extracts and analyzes OLE objects, including VBA macros. Option B is wrong because pdf-parser is for PDF analysis. Option C is wrong because Wireshark is for network traffic.

Option D is wrong because Nmap is for network scanning.

193
MCQmedium

A tester needs to enumerate Windows domain users and groups from a compromised system. Which PowerShell script would be most useful?

A.Invoke-Mimikatz
B.PowerView
C.Prowler
D.ScoutSuite
AnswerB

PowerView is a PowerShell tool from PowerSploit specifically designed for Active Directory enumeration. It uses LDAP queries to retrieve detailed information about domain users, groups, computers, and ACLs via cmdlets like Get-DomainUser and Get-DomainGroup. This directly fulfills the tester's requirement to enumerate Windows domain users and groups, making it the correct choice.

Why this answer

PowerView is a PowerShell tool specifically designed for Windows domain enumeration, allowing testers to query Active Directory for users, groups, computers, and permissions via LDAP. It leverages the Active Directory Services Interface (ADSI) to gather detailed information without requiring additional privileges beyond those already obtained on the compromised system.

Exam trap

The trap here is that candidates may confuse credential-dumping tools (like Mimikatz) with enumeration tools, or mistake cloud auditing tools (Prowler, ScoutSuite) for Windows domain enumeration scripts, because all are used in post-exploitation but serve fundamentally different purposes.

How to eliminate wrong answers

Option A is wrong because Invoke-Mimikatz is a PowerShell wrapper for Mimikatz, which focuses on credential dumping (e.g., extracting plaintext passwords, hashes, and Kerberos tickets) rather than enumerating domain users and groups. Option C is wrong because Prowler is an AWS security auditing tool that checks for misconfigurations in cloud environments, not Windows Active Directory enumeration. Option D is wrong because ScoutSuite is a multi-cloud security auditing tool (AWS, Azure, GCP) and does not perform Windows domain user or group enumeration.

194
MCQmedium

A penetration tester is performing a vulnerability scan of a network and finds that one server is running an outdated version of OpenSSL. Which of the following is the most likely security implication of this finding?

A.The server is vulnerable to SQL injection
B.The server is vulnerable to cross-site scripting
C.The server is vulnerable to buffer overflow
D.The server is vulnerable to Heartbleed
AnswerD

The server is vulnerable to Heartbleed, a serious flaw in OpenSSL 1.0.1 through 1.0.1f, tracked as CVE-2014-0160. The vulnerability resides in the TLS heartbeat extension, where a missing bounds check allows an attacker to send a malformed heartbeat request with an oversized payload length, causing the server to return up to 64KB of its memory, which may include private keys and user credentials. This flaw is uniquely tied to OpenSSL and was widely exploited in 2014, making it the default finding when a scanner detects an affected OpenSSL version.

Why this answer

Outdated versions of OpenSSL, particularly versions 1.0.1 through 1.0.1f, are vulnerable to the Heartbleed bug (CVE-2014-0160). This vulnerability allows an attacker to read up to 64 KB of memory from the server's heap, potentially exposing private keys, session tokens, and other sensitive data. The Heartbleed bug is a specific buffer over-read vulnerability in the TLS/DTLS heartbeat extension, making D the correct answer.

Exam trap

The trap here is that candidates may confuse 'buffer overflow' (a write-based code execution vulnerability) with 'buffer over-read' (a read-based information disclosure like Heartbleed), leading them to select option C instead of the more specific and correct answer D.

How to eliminate wrong answers

Option A is wrong because SQL injection is a web application vulnerability caused by improper input sanitization in database queries, not a flaw in the OpenSSL cryptographic library. Option B is wrong because cross-site scripting (XSS) is a client-side injection vulnerability in web applications, unrelated to the OpenSSL protocol implementation. Option C is wrong because while Heartbleed is technically a buffer over-read (a type of memory safety issue), the term 'buffer overflow' typically refers to a buffer write overflow (e.g., stack or heap overflow) that allows code execution, whereas Heartbleed is a read-only over-read that leaks memory contents without allowing arbitrary code execution.

195
MCQhard

A PenTest team is planning to perform a physical social engineering engagement to gather information from a client's facility. Which of the following reconnaissance techniques would be LEAST likely to be detected?

A.Shoulder surfing
B.Email phishing
C.Tailgating
D.Dumpster diving
AnswerD

Dumpster diving involves retrieving discarded documents from rubbish bins outside the facility, requiring no interaction with staff or systems. This passive physical technique leaves no network or access traces, making it the least likely reconnaissance method to be detected.

Why this answer

Dumpster diving (D) is the least likely to be detected because it occurs off-site against discarded materials, typically outside business hours, and leaves no interaction with employees or network systems that could trigger alerts. In contrast, shoulder surfing (A) requires close physical proximity to a victim viewing a screen or keypad, making the attacker observable, and tailgating (C) involves physically following an employee through a controlled access point, which risks challenge by staff or CCTV monitoring. Email phishing (B) is also easily detected because it traverses mail gateways and can be flagged by spam filters, link scanners, or user reporting.

Thus, dumpster diving presents the lowest detection risk for a physical social engineering engagement.

196
MCQmedium

A client wants a penetration test that simulates a disgruntled employee with access to the internal network but no administrative privileges. The client provides a standard user account on the domain. The tester discovers that the account has local administrator rights on a critical file server. Which step should the tester take according to typical Rules of Engagement?

A.Continue testing with the elevated privileges because they were provided
B.Use the privileges to escalate to domain admin and test further
C.Pause testing and inform the client of the unexpected privilege level for guidance
D.Revert to a lower-privileged account provided by the client
AnswerC

Pausing testing and informing the client is the only correct action because the tester must never assume that an unexpected privilege level is intended by the client. The rules of engagement define the exact boundaries of the test, and any deviation—whether the privilege is a misconfiguration, a leftover from a previous admin, or a deliberate invitation—must be clarified in writing before proceeding. This communication allows the client to either amend the scope to authorize the elevated access or provide a new low-privileged account, ensuring that the test remains legally valid and that findings are relevant to the original threat model.

Why this answer

The Rules of Engagement (RoE) require the tester to operate within the agreed scope and privilege level. Discovering that the provided standard user account has unexpected local administrator rights on a critical file server represents a scope change that could invalidate the test's assumptions and potentially cause unintended damage. The tester must pause and inform the client to obtain explicit guidance before proceeding with elevated privileges.

Exam trap

The trap here is that candidates assume any discovered privilege is fair game to use, ignoring the RoE's requirement to stay within the authorized scope and the ethical obligation to seek client guidance when unexpected access is found.

How to eliminate wrong answers

Option A is wrong because continuing to test with the elevated privileges violates the RoE scope, which specified a standard user account with no administrative privileges; using unapproved privileges can lead to unauthorized access and legal issues. Option B is wrong because using local admin rights to escalate to domain admin exceeds the agreed scope and could compromise the entire domain without client consent, which is a breach of ethical hacking principles and the test's authorization.

197
MCQhard

A penetration tester needs to communicate the financial impact of a critical vulnerability to the board of directors. Which metric is most appropriate for this audience?

A.CVSS base score (e.g., 9.8 out of 10).
B.Risk rating (High, Medium, Low).
C.Annualized loss expectancy (ALE).
D.Number of affected systems.
AnswerC

Annualized loss expectancy (ALE) is the product of single loss expectancy (SLE) and annualized rate of occurrence (ARO), expressed as a dollar figure per year. This directly quantifies the expected financial impact from a risk, allowing executives to compare it with potential countermeasure costs and other business investments. ALE is the standard metric for translating technical risk into business language, enabling cost-benefit analysis of risk mitigation options.

Why this answer

The board of directors is concerned with financial risk and business impact, not technical severity. Annualized loss expectancy (ALE) quantifies the expected monetary loss per year from a vulnerability, making it directly relevant for executive decision-making. CVSS scores and risk ratings are technical metrics that do not translate to financial terms.

Exam trap

The trap here is that candidates often choose CVSS score or risk rating because they are familiar from technical reports, but the question specifically asks for a metric to communicate financial impact to the board, which requires a quantitative financial measure like ALE.

How to eliminate wrong answers

Option A is wrong because CVSS base score (e.g., 9.8) measures technical severity based on exploitability and impact metrics, but it does not incorporate asset value, threat frequency, or financial loss—so it cannot communicate monetary impact to the board. Option B is wrong because risk rating (High, Medium, Low) is a qualitative label derived from likelihood and impact, but it lacks the specific dollar figures needed to convey financial consequences to non-technical stakeholders.

198
MCQmedium

A penetration testing firm is scoping a test for a client that uses a hybrid infrastructure with both on-premises servers and cloud-based services (IaaS). The client specifies that only the cloud environment should be tested this year. Which concept is MOST important for the tester to discuss during the scoping meeting to avoid testing out-of-scope assets?

A.The shared responsibility model between the client and the cloud provider
B.The need to test on-premises systems as well to get a complete picture
C.The potential for false positives in cloud vulnerability scanners
D.The cost of third-party cloud penetration testing tools
AnswerA

The shared responsibility model defines the exact line between provider-managed infrastructure (physical hosts, hypervisor, network fabric) and client-controlled configurations (identity policies, data, application setup). Scoping must map the test exclusively to the client's side of that boundary—for example, testing IAM roles, S3 bucket policies, and security-group rules—while explicitly excluding provider components unless written authorization is obtained. Defining that boundary first prevents wasted effort, avoids accidental disruption of managed services, and keeps the engagement legally and contractually safe.

Why this answer

The shared responsibility model defines which security controls and operational tasks are managed by the cloud provider versus the client. In a scoping meeting, understanding this model is critical because the penetration tester must only target the client's side of the responsibility boundary (e.g., guest OS, applications, and IaaS configurations) and avoid testing the provider's underlying infrastructure, which is out-of-scope. Without this discussion, the tester could inadvertently probe the provider's hypervisor or physical network, violating the scope agreement and potentially causing legal or contractual issues.

Exam trap

The trap here is that candidates may focus on technical testing concerns like false positives or scope expansion, rather than recognizing that the shared responsibility model is the foundational scoping concept that prevents testing the cloud provider's infrastructure.

How to eliminate wrong answers

Option B is wrong because the client explicitly specified that only the cloud environment should be tested this year; insisting on testing on-premises systems would directly violate the scope and is not a scoping discussion point but a scope expansion request. Option C is wrong because false positives in cloud vulnerability scanners are a technical testing concern, not a scoping issue; the most important discussion for avoiding out-of-scope assets is defining the boundary of responsibility, not the accuracy of tools.

199
MCQmedium

A penetration tester has gained access to a Windows workstation and extracted NTLM password hashes. The tester wants to move laterally to a server that authenticates using NTLM. The tester does not have the plaintext passwords. Which technique is MOST appropriate to authenticate to the server using the captured hashes?

A.Pass-the-hash
B.Brute force
C.Rainbow tables
D.Keylogging
AnswerA

Pass-the-hash (PtH) is the optimal technique because the tester can extract the NTLM hash from the compromised workstation's memory (e.g., via Mimikatz) and use it to authenticate directly to remote services like SMB, RDP, or LDAP that accept NTLM authentication. This bypasses the need to crack the hash or know the plaintext password, allowing immediate lateral movement. PtH tools such as impacket's psexec.py or mimikatz's sekurlsa::pth facilitate this attack.

Why this answer

Pass-the-hash (PtH) is the correct technique because it allows the tester to authenticate to the remote server using the captured NTLM hash directly, without needing the plaintext password. NTLM authentication uses a challenge-response protocol where the hash itself is the secret; by presenting the hash in the response, the tester can impersonate the user. This is a well-known lateral movement technique in Windows environments, often executed with tools like Mimikatz (sekurlsa::pth) or Impacket's wmiexec.py.

Exam trap

The trap here is that candidates may think they need the plaintext password for authentication and choose brute force or rainbow tables, not realizing that NTLM authentication accepts the hash directly in the challenge-response exchange, making pass-the-hash the most efficient lateral movement technique.

How to eliminate wrong answers

Option B (Brute force) is wrong because brute force attempts to guess the plaintext password by trying many combinations, which is computationally expensive and time-consuming; the tester already has the hash and does not need the plaintext for NTLM authentication. Option C (Rainbow tables) is wrong because rainbow tables are precomputed tables used to reverse a hash into a plaintext password, which is unnecessary here since the hash itself can be used directly for authentication via pass-the-hash; additionally, rainbow tables are ineffective against salted hashes or modern NTLM hashes without significant precomputation.

200
MCQhard

A penetration test is being conducted for a healthcare organization subject to HIPAA. The tester is given access to a production system that contains electronic protected health information (ePHI). Which of the following should be included in the rules of engagement to ensure compliance?

A.A clause requiring encryption of all test data at rest and in transit.
B.A business associate agreement (BAA) signed between the client and the testing firm.
C.A detailed data handling and destruction procedure within the rules of engagement.
D.A restriction to only test in non-production environments.
AnswerC

Given the healthcare context and HIPAA's Security Rule, the RoE must specify controls for the entire lifecycle of ePHI encountered during the test—including collection limits, encryption, access restrictions, storage locations, and a verifiable destruction method such as cryptographic wipe or physical shredding after assessment. This is the only option that directly addresses the unique regulatory requirement for protecting ePHI and ensuring no residual sensitive data remains. A detailed procedure ensures testers know exactly what to do if they encounter live PHI, including logging, minimizing exposure, and confirming removal.

Why this answer

HIPAA requires covered entities to ensure the confidentiality, integrity, and availability of ePHI, which includes proper disposal of data after testing. A detailed data handling and destruction procedure within the rules of engagement (RoE) ensures that test data containing ePHI is securely wiped or destroyed in compliance with 45 CFR § 164.310(d)(2)(i) and NIST SP 800-88 guidelines. Without this clause, the tester might leave residual ePHI on production systems, violating HIPAA's security rule.

Exam trap

The trap here is that candidates confuse a BAA (a separate legal requirement) with a clause that must be included in the rules of engagement, or they assume encryption is a mandatory RoE clause when HIPAA treats it as addressable and not a procedural scope item.

How to eliminate wrong answers

Option A is wrong because while encryption of test data at rest and in transit is a good security practice, it is not a specific HIPAA compliance requirement that must be included in the rules of engagement; HIPAA mandates encryption as an addressable implementation specification under 45 CFR § 164.312(a)(2)(iv), but the RoE focuses on scope and handling procedures, not technical controls. Option B is wrong because a Business Associate Agreement (BAA) is a legal contract between the covered entity and the business associate (the testing firm) that must be signed before any ePHI access, but it is not part of the rules of engagement document; the BAA is a separate prerequisite, not a clause within the RoE.

201
MCQhard

During scoping, a tester learns that the client's network has multiple subsidiaries with different IP ranges. The client wants a test that covers all subsidiaries but with a limited number of target IPs. How should the tester proceed?

A.Ask for a larger budget
B.Select a representative sample of IPs from each subsidiary
C.Test only the corporate headquarters and ignore subsidiaries
D.Use a subnet calculator to combine all ranges
AnswerB

Selecting a representative sample of IP addresses from each subsidiary ensures that every business unit receives some level of security coverage while adhering to the maximum host limit. This stratified sampling approach reduces the risk of missing critical vulnerabilities in any one subsidiary, as each location's unique network segment and potential weaknesses are at least partially examined. The sample should be chosen based on risk factors such as asset criticality, exposure to the internet, and historical incident data, making the test results more statistically valid and aligned with the client's goal of covering all subsidiaries.

Why this answer

Selecting a representative sample of IPs from each subsidiary allows coverage across all subsidiaries while respecting the target limit. Testing only headquarters ignores subsidiaries, and combining ranges may produce too many targets. Asking for a larger budget may not be an option.

202
MCQmedium

A penetration tester is performing internal reconnaissance from a compromised host and wants to map the local network without sending any packets. Which technique is most suitable?

A.Use tcpdump to passively capture and analyze broadcast traffic.
B.Send ARP requests to all possible IP addresses using a ping sweep.
C.Query the local DNS server for all host records in the domain.
D.Use traceroute to discover network paths.
AnswerA

Passive capture with tcpdump places the NIC in promiscuous mode and records Layer 2 broadcast frames such as ARP Requests/Replies, DHCP Discover/Offer handles, and NetBIOS/mDNS announcements. Since the tester sends zero packets, this approach avoids triggering IDS/IPS signatures, ARP watch tools, or host-based alerts, while still revealing live hosts, MAC-to-IP bindings, and potential host roles from routine broadcast chatter.

Why this answer

Tcpdump can passively capture broadcast traffic (e.g., ARP, NetBIOS, mDNS) without sending any packets. This allows the tester to map active hosts and services on the local network by listening to existing network chatter, fulfilling the 'no packets sent' constraint.

Exam trap

The trap here is that candidates may assume 'passive' techniques like tcpdump still require sending packets, or they confuse passive capture with active scanning methods like ARP sweeps or DNS queries, which inherently generate network traffic.

How to eliminate wrong answers

Option B is wrong because sending ARP requests as part of a ping sweep generates packets on the network, violating the requirement to avoid sending any packets. Option C is wrong because querying the local DNS server sends a DNS query packet, which is an active network request; it also may not reveal all host records due to DNS caching or security configurations like zone transfer restrictions.

203
MCQmedium

A penetration tester is reviewing a Python script used for a custom exploit. Which of the following code snippets contains a dangerous function that could lead to remote code execution?

A.input('Enter name:')
B.open(filename, 'r')
C.eval(user_input)
D.subprocess.run(['ls'])
AnswerC

eval() executes its argument as Python code, so attacker-controlled input runs arbitrary commands on the host. This is the dangerous function enabling remote code execution, unlike safer alternatives such as int() or json.loads(), which parse data without executing it.

Why this answer

The `eval()` function in Python interprets and executes the string passed to it as a Python expression. If an attacker can control the `user_input` string, they can inject arbitrary Python code, leading to remote code execution (RCE). This is a classic dangerous function in Python that should never be used with untrusted input.

Exam trap

CompTIA often tests the misconception that `input()` in Python 3 is dangerous like Python 2's `input()`, or that `subprocess.run` with a list is automatically safe, when the real danger is `eval()` and its equivalents (`exec()`, `compile()`).

How to eliminate wrong answers

Option A is wrong because `input()` in Python 3 simply returns the user's input as a string without evaluating it; it is safe from code injection (unlike Python 2's `input()` which used `eval()`). Option B is wrong because `open()` is a standard file operation that does not execute code; it only opens a file for reading or writing and is not inherently dangerous. Option D is wrong because `subprocess.run(['ls'])` runs a fixed command (`ls`) with no user-controlled arguments; while `subprocess.run` can be dangerous if user input is passed unsanitized, this specific snippet uses a hardcoded list, so it does not allow arbitrary command injection.

204
MCQmedium

A penetration tester has captured NTLM hashes from a compromised machine and wants to move laterally to a server that requires NTLM authentication. The tester does not have the plaintext password. Which attack technique is MOST appropriate for authenticating using the captured hashes?

A.Brute force the password from the hash
B.Pass-the-hash
C.NTLM relay
D.Kerberoasting
AnswerB

Pass-the-hash (PtH) exploits the fact that NTLM challenge-response authentication relies on the NTLM hash as the secret, not the plaintext password. By using the captured hash (e.g., from 'pwdump' or Mimikatz's 'sekurlsa::logonpasswords') in an SMB authentication handshake, the attacker can impersonate the compromised user on remote systems. This allows lateral movement across the domain without ever knowing the password, making it a preferred post-exploitation technique.

Why this answer

Pass-the-hash (PtH) is the most appropriate technique because it allows the tester to authenticate to the target server using the captured NTLM hash directly, without needing the plaintext password. NTLM authentication uses the hash as a secret, so the hash can be passed to the server in the challenge-response handshake. This is a well-known lateral movement technique in Windows environments.

Exam trap

CompTIA often tests the distinction between pass-the-hash and NTLM relay, where candidates confuse the need for an active relay target versus simply using a captured hash to authenticate directly.

How to eliminate wrong answers

Option A is wrong because brute-forcing the password from the hash is computationally expensive and time-consuming, especially for strong passwords, and is not the most efficient method for immediate lateral movement. Option C is wrong because NTLM relay involves intercepting and forwarding an authentication attempt from a client to a server, not using a pre-captured hash to authenticate directly; it requires an active connection from another machine.

205
MCQmedium

During an internal penetration test, a tester discovers that the client's network uses ARP poisoning to intercept traffic for security monitoring. The tester wants to enumerate live hosts without being detected by network monitoring tools. Which of the following is the BEST approach?

A.Use passive network sniffing to capture broadcast traffic
B.Perform a UDP scan
C.Perform a SYN scan with decoys
D.Use ARP requests to discover hosts
AnswerA

Passive sniffing captures existing broadcast and multicast traffic without injecting any packets, so it generates no ARP requests that the monitoring sensors would flag. Active scanning would trigger the ARP-poisoning-based detection, so passive capture satisfies the stealth requirement.

Why this answer

Passive network sniffing (option A) is correct because it captures existing broadcast traffic such as ARP requests, DHCP, and NetBIOS announcements without sending any packets, making it invisible to the ARP-poisoning-based monitoring and other network detection tools. Since the tester only listens promiscuously, no active probes are generated that could trigger alerts or be correlated by the monitoring system. UDP scans (B) and SYN scans with decoys (C) both send packets that the monitoring infrastructure can detect, and decoys may still be flagged as anomalous.

ARP requests (D) are active probes that would be observed by the ARP-poisoning monitoring setup, defeating the goal of staying undetected.

206
MCQeasy

A penetration tester is conducting passive reconnaissance on a target organization. The tester wants to identify the technologies and frameworks used by the target's web application without making any requests to the target's servers. Which resource is BEST suited for this task?

A.Nmap service scan with -sV
B.Shodan.io
C.BuiltWith.com
D.Wappalyzer browser extension
AnswerC

BuiltWith.com is a passive reconnaissance service that maintains an extensive database of technology profiles harvested from public websites, DNS records, certificate transparency logs, and historical crawl data. By querying BuiltWith, a tester identifies the frameworks, libraries, and analytics tools a target website uses without sending a single packet to the target's servers. Because the information is aggregated from existing public sources, BuiltWith fully satisfies the requirement of passive, non-intrusive intelligence gathering.

Why this answer

BuiltWith.com is a passive reconnaissance resource that profiles web application technologies by analyzing publicly available data, such as JavaScript libraries, web frameworks, and analytics tools, without sending any requests to the target's servers. It aggregates information from various public sources and historical data, making it ideal for identifying technologies without direct interaction.

Exam trap

The trap here is that candidates often confuse Shodan.io's passive-looking interface with true passive reconnaissance, not realizing that Shodan's data is derived from active scanning, while BuiltWith.com relies on non-intrusive public data aggregation.

How to eliminate wrong answers

Option A is wrong because Nmap's -sV flag performs an active service scan that sends probes to the target's servers to determine service versions, which violates the passive reconnaissance requirement. Option B is wrong because Shodan.io is a search engine for internet-connected devices and services, but it primarily relies on active scanning data from its own crawlers and may not provide detailed web application technology stacks like frameworks or libraries without making requests to the target.

207
MCQhard

A penetration tester is attempting to exploit a server-side request forgery (SSRF) vulnerability in a cloud-hosted web application to access the cloud metadata service. Which IP address should the tester target?

A.192.168.1.1
B.169.254.169.254
C.127.0.0.1
D.10.0.0.1
AnswerB

169.254.169.254 is a link-local address within the 169.254.0.0/16 range, reserved by RFC 3927, and is the well-known metadata service endpoint used by major cloud providers (AWS, GCP, Azure). It is reachable only from inside the instance itself and does not require routing; an SSRF vulnerability can be leveraged to send authenticated requests to this IP to retrieve instance metadata such as IAM temporary credentials, user-data scripts, or security group configurations. This is why it is a prime target during penetration tests against web applications with server-side request forgery flaws.

Why this answer

The cloud metadata service for most cloud providers (AWS, GCP, Azure) is accessible via 169.254.169.254.

208
MCQmedium

During a penetration test of a large e-commerce platform, the client requests additional testing on a newly discovered microservice mid-engagement. The scope defined in the rules of engagement (ROE) explicitly lists all target systems. What should the penetration tester do FIRST?

A.Add the microservice to the test and include it in the final report as an unadvertised finding
B.Decline the request because the microservice was not part of the original scope
C.Inform the client that a scope amendment is needed and pause testing on the microservice until it is approved
D.Test the microservice only if it is using the same technology stack as other targets
AnswerC

This is the required professional response because the authorization to test is defined by the signed RoE or statement of work, and any new system falls outside that legal boundary. Pausing testing on the microservice until a formal scope amendment is approved protects both parties from legal exposure and ensures that any findings are defensible and actionable. The amendment process typically involves updating the contract with the new IP address/domain, explicit testing rules, and client sign-off, after which testing can resume safely.

Why this answer

The rules of engagement (ROE) are a legally binding document that defines the scope of testing. Adding a new microservice mid-engagement without an approved scope amendment violates the ROE and could lead to legal or contractual issues. The penetration tester must first pause testing on the microservice and formally request a scope amendment to ensure all activities remain authorized.

Exam trap

The trap here is that candidates may confuse 'professional flexibility' (Option A) with proper scope management, or think that declining outright (Option B) is safer, when the correct answer requires following formal change control procedures to maintain legal and ethical boundaries.

How to eliminate wrong answers

Option A is wrong because adding the microservice without amending the ROE constitutes unauthorized testing, which could breach the contract and expose the tester to liability; the final report should only include findings from authorized targets. Option B is wrong because outright declining the request without offering a path forward (scope amendment) is unprofessional and fails to address the client's evolving needs; the correct procedure is to pause testing and seek formal approval, not simply refuse.

209
MCQmedium

A penetration tester is using a vulnerability scanner to assess a web application. The scanner reports a 'SQL Injection' finding with a high confidence level. However, manual verification of the same payload does not trigger the vulnerability in a browser. Which of the following is the most likely reason for this discrepancy?

A.The scanner used a different HTTP method than the one used in manual testing
B.The scanner's payloads were URL-encoded differently
C.The vulnerability exists only in the scanner's simulated environment
D.The scanner might have generated a false positive due to a misinterpretation of the server's response
AnswerD

Automated vulnerability scanners frequently produce false positives because they rely on heuristic response pattern matching rather than full semantic analysis. For example, a scanner may see the injected payload reflected in the HTML body and flag it as cross-site scripting without checking whether the reflection occurs in a safe, encoded context that prevents execution. Manual testing, which examines the actual response context and confirms exploitability, revealed that the server is not actually vulnerable. This discrepancy is a classic demonstration of why every scanner finding must be verified manually before being reported.

Why this answer

The most likely reason is that the scanner generated a false positive due to a misinterpretation of the server's response. Vulnerability scanners often infer SQL injection based on response patterns (e.g., database error messages, timing differences) that may not actually be exploitable. Manual verification in a browser failed because the payload did not produce a true SQL error or data leak, confirming the scanner's alert was incorrect.

Exam trap

CompTIA often tests the concept that automated scanners can produce false positives due to response misinterpretation, and candidates mistakenly choose option C (simulated environment) because they confuse the scanner's internal test logic with an actual isolated environment.

How to eliminate wrong answers

Option A is wrong because HTTP method differences (e.g., GET vs POST) could cause the scanner to test a different endpoint, but the question states the same payload was used; if the scanner used a different method, manual testing with the same method would still match. Option B is wrong because URL encoding differences (e.g., %27 vs ') would be normalized by the browser or server; manual testing typically uses the same encoding as the scanner's output. Option C is wrong because the scanner does not create a simulated environment; it sends real HTTP requests to the live web application, so the vulnerability cannot exist only in a simulated environment.

210
MCQeasy

A penetration tester needs to perform an online brute-force attack against an SSH service. Which tool is most appropriate?

A.Hydra
B.John the Ripper
C.CrackMapExec
D.Hashcat
AnswerA

Hydra is a network authentication brute-force tool designed to perform online attacks against live services. It actively submits username and password guesses to a running protocol such as SSH, HTTP, or FTP over the network, making it the correct choice for an online SSH brute-force attempt. Hydra supports many protocols, can employ custom wordlists, and offers concurrency controls to speed up the attack while respecting service limitations.

Why this answer

Hydra is a versatile online brute-force tool supporting many protocols including SSH.

211
MCQmedium

A penetration tester has captured a WPA2 handshake. Which tool from the Aircrack-ng suite is used to crack the pre-shared key?

A.airmon-ng
B.airodump-ng
C.aireplay-ng
D.aircrack-ng
AnswerD

Aircrack-ng performs the actual offline cryptanalysis of the captured four-way handshake, deriving the WPA2 pre-shared key by testing candidate passphrases against the MIC. Other suite tools only capture, inject or deauthenticate; aircrack-ng is the cracking component the scenario requires.

Why this answer

Aircrack-ng (option D) is the tool in the Aircrack-ng suite specifically designed to crack WPA2 pre-shared keys (PSK) by performing an offline dictionary or brute-force attack against the captured four-way handshake. It uses the handshake data (specifically the EAPOL frames) to derive the Pairwise Master Key (PMK) and verify it against candidate passphrases, making it the correct choice for this task.

Exam trap

The trap here is that candidates often confuse the tool that captures the handshake (airodump-ng) or the tool that forces the handshake (aireplay-ng) with the tool that actually performs the cryptographic cracking (aircrack-ng), leading them to select a wrong option.

How to eliminate wrong answers

Option A (airmon-ng) is wrong because it is used to enable or disable monitor mode on wireless interfaces, not to crack captured handshakes. Option B (airodump-ng) is wrong because it captures packets and handshakes but does not perform any cracking; it only outputs the handshake for later use. Option C (aireplay-ng) is wrong because it injects packets (e.g., deauthentication frames) to force a client to reconnect and generate a handshake, but it does not crack the PSK.

212
MCQmedium

During a web application penetration test, a tester identifies a potential SQL injection vulnerability in a search field. The tester wants to extract data from the database without generating error messages that could trigger an alert. Which technique is most appropriate?

A.In-band SQL injection
B.Error-based SQL injection
C.Blind SQL injection (time-based)
D.Union-based SQL injection
AnswerC

Time-based blind SQL injection is a stealthy technique where the attacker injects a conditional expression that causes the database to pause for a defined period if a certain condition is true, such as using the IF() function or WAITFOR DELAY. The tester infers the answer to a yes/no question about the database by observing the response latency, and no error messages or query results are ever returned to the client. This makes it ideal for blind tests where output is suppressed, though it requires multiple requests and careful handling of network variability.

Why this answer

Blind SQL injection (time-based) allows data extraction without generating visible error messages or database output. By using conditional time delays (e.g., IF condition THEN WAITFOR DELAY '0:0:5' in SQL Server or SLEEP(5) in MySQL), the tester can infer true/false conditions based on response timing, avoiding any error-based alerts that might be monitored by a WAF or IDS.

Exam trap

The trap here is that candidates often choose error-based or union-based injection because they are more familiar, failing to recognize that the question explicitly requires avoiding error messages and alerts, which only time-based blind injection achieves.

How to eliminate wrong answers

Option A is wrong because in-band SQL injection relies on the same channel to both inject and retrieve data (e.g., via UNION or error messages), which would produce visible output or errors that could trigger alerts. Option B is wrong because error-based SQL injection deliberately forces database errors to extract information from error messages, directly generating alerts. Option D is wrong because union-based SQL injection requires the attacker to see the results of a UNION query in the application response, which would expose the attack and potentially trigger monitoring systems.

213
Multi-Selecthard

A penetration tester is preparing for a web application penetration test. The client application is hosted on a cloud platform that serves multiple tenants. Which THREE of the following are critical legal and scoping considerations?

Select 3 answers
A.Include a clause in the SOW that the tester is not liable for any data exposure
B.Understand how the client's data privacy policies affect handling of any discovered data
C.Define the types of attacks allowed (e.g., SQL injection, XSS) in the rules of engagement
D.Ensure the cloud provider has granted permission for the test
E.Test all tenant data to ensure comprehensive coverage
AnswersB, C, D

During testing, you may encounter PII, PHI, or other sensitive data. The client's data privacy policies and applicable regulations (GDPR, HIPAA, CCPA) dictate how that data must be handled, stored, and reported. Failure to comply can turn a routine pentest into a data breach with legal consequences. Therefore, understanding these policies is a crucial part of scoping and authorization.

Why this answer

Legal considerations include authorization from the cloud provider, handling sensitive data, and defining permissible testing methods.

214
MCQeasy

In a web application test, you find a parameter that directly references internal object IDs (e.g., user_id=123) and changing the ID allows access to another user's data. This vulnerability is known as:

A.Insecure Direct Object Reference (IDOR)
B.Cross-site scripting (XSS)
C.SQL injection
D.Cross-site request forgery (CSRF)
AnswerA

IDOR occurs when an application exposes internal object identifiers and fails to verify that the requester is authorised for the referenced object. Changing user_id=123 to another value returns another user's data, confirming missing authorisation checks on direct object references.

Why this answer

IDOR (Insecure Direct Object Reference) occurs when an application exposes internal object references without proper access control checks.

215
MCQmedium

A penetration tester wants to exploit a Windows system using a known vulnerability and gain a meterpreter session. Which tool is most appropriate?

A.CrackMapExec
B.Metasploit Framework
C.Impacket
D.Hydra
AnswerB

The Metasploit Framework is a comprehensive exploitation platform that ships with hundreds of ready-to-use exploits, payloads, encoders, and auxiliary modules. For Windows, it can target specific Common Vulnerabilities and Exposures (CVEs) such as MS17-010 EternalBlue or SMBv2 exploits and deliver a Meterpreter payload to establish a command-and-control session. It is purpose-built for the exploitation phase, directly triggering a vulnerability to gain initial code execution on the target.

Why this answer

Metasploit Framework (B) is the most appropriate tool because it provides a comprehensive exploit development and execution environment, including pre-built modules for known Windows vulnerabilities and seamless integration with Meterpreter payloads. Unlike the other options, Metasploit is specifically designed to deliver a Meterpreter session after exploitation, handling payload generation, staging, and post-exploitation tasks natively.

Exam trap

The trap here is that candidates confuse tools used for post-exploitation or credential attacks (CrackMapExec, Hydra) with the actual exploit delivery framework (Metasploit) required to gain a Meterpreter session from a known vulnerability.

How to eliminate wrong answers

Option A (CrackMapExec) is wrong because it is a post-exploitation and lateral movement tool that automates tasks like credential spraying and SMB enumeration, but it does not include exploit modules to trigger a known vulnerability or deliver a Meterpreter session. Option C (Impacket) is wrong because it is a collection of Python scripts for network protocol manipulation (e.g., SMB, Kerberos) and can be used for exploitation (e.g., PsExec), but it lacks a built-in exploit framework and does not natively generate or handle Meterpreter payloads. Option D (Hydra) is wrong because it is a network login cracker that performs brute-force attacks against authentication services (e.g., SSH, FTP, RDP) and has no capability to exploit software vulnerabilities or deliver a Meterpreter session.

216
MCQeasy

A penetration tester is planning a social engineering campaign against a corporation. The goal is to trick the CEO into revealing sensitive information. Which type of attack should the tester use?

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

Whaling is the established term for a spear-phishing attack aimed at high-level executives such as a CEO, CFO, or other senior officers. The attacker crafts pretexts like legal subpoenas, urgent board communications, or financial transaction requests that exploit the executive's authority, busy schedule, and access to critical systems or funds. In a pen-test scenario targeting a CEO, whaling is the correct label because it names both the technique and the specific victim class.

Why this answer

Whaling is a targeted form of phishing that specifically focuses on high-profile individuals, such as the CEO. In this scenario, the goal is to trick the CEO into revealing sensitive information, making whaling the correct choice because it is designed to impersonate trusted entities or create urgent scenarios to deceive senior executives.

Exam trap

CompTIA often tests the distinction between spear phishing and whaling, where the trap is that candidates choose spear phishing because it is a broader term, but the question's focus on a CEO specifically requires the more precise 'whaling' classification.

How to eliminate wrong answers

Option A is wrong because vishing (voice phishing) uses phone calls or voice messages, not email or other digital messages, and while it could target a CEO, the question implies a digital attack vector. Option B is wrong because spear phishing targets specific individuals or groups but is not exclusively reserved for high-level executives like a CEO; whaling is the more precise term for targeting C-suite personnel. Option C is wrong because pharming redirects users from legitimate websites to fraudulent ones by exploiting DNS vulnerabilities or local host file manipulation, and it does not involve directly tricking an individual via email or messaging.

217
MCQeasy

A tester is using the following Nmap command: nmap -sC -sV -p 1-65535 target_ip. What is the primary purpose of the -sC option?

A.Use default scripts
B.Scan all ports
C.Perform a version scan
D.Do a SYN scan
AnswerA

The -sC flag is shorthand for --script=default, which loads the default category of Nmap Scripting Engine (NSE) scripts. These scripts run automatically against open ports to enumerate service details, check for common misconfigurations, and report known vulnerabilities without sending aggressive payloads. The token 'sc' in the command corresponds to -sC, making this the correct interpretation of the intended option.

Why this answer

The -sC option in Nmap is equivalent to --script=default, which runs a collection of common, non-intrusive enumeration scripts against the target. These scripts perform tasks such as service banner grabbing, HTTP title extraction, and SSL/TLS certificate retrieval, providing valuable reconnaissance data without requiring manual script selection.

Exam trap

The trap here is that candidates confuse -sC with -sV or -sS, because all three options start with 's' and are commonly used together, but each has a distinct function that must be memorized for the exam.

How to eliminate wrong answers

Option B is wrong because scanning all ports is achieved by the -p 1-65535 argument, not by -sC. Option C is wrong because performing a version scan is the purpose of -sV, not -sC. Option D is wrong because a SYN scan is the default scan type when run as root, but it is explicitly invoked with -sS, not -sC.

218
Multi-Selecthard

During the scoping phase of a penetration test, the tester and client must define the rules of engagement (ROE). Which THREE of the following should be included in the ROE? (Select THREE.)

Select 3 answers
A.Contact information for the client to report issues during the test.
B.Types of attacks permitted (e.g., phishing, social engineering).
C.Specific vulnerabilities that will be exploited.
D.Post-test remediation steps.
E.Boundaries such as IP ranges and subnets to test.
AnswersA, B, E

The ROE must name who the tester contacts when a critical finding or accidental outage occurs mid-test, so the client can respond quickly. Without agreed escalation contacts, the tester may continue intrusive activity while the client is unaware, breaching the engagement's communication constraint.

Why this answer

Option A is correct because the ROE must include emergency and escalation contact information so the tester can immediately notify the client of critical findings, outages, or accidental impact during testing. Option B is correct because the ROE defines which attack types are authorized, such as phishing, social engineering, or physical intrusion, preventing the tester from exceeding the agreed scope. Option E is correct because the ROE must specify in-scope and out-of-scope boundaries, including exact IP ranges, subnets, domains, and excluded hosts, to avoid testing unauthorized systems.

Option C is not included because the ROE defines authorized activities and scope, not a predetermined list of specific vulnerabilities to exploit, which is discovered during the assessment. Option D is not included because remediation steps occur after the test and belong in the final report or a separate remediation plan, not in the rules of engagement.

219
MCQeasy

Which of the following is the primary purpose of a get-out-of-jail letter?

A.To outline the deliverables
B.To establish a communication plan
C.To provide legal authorization for the tester to perform the test
D.To define the rules of engagement
AnswerC

This letter is the formal 'get out of jail free' instrument that gives the penetration tester documented, lawful permission to perform activities that would otherwise constitute unauthorized access, intrusion, or computer crime under statutes such as the Computer Fraud and Abuse Act. It is signed by an authorized representative of the client organization and typically includes the tester's identity, authorized systems, and testing window to establish legal standing. Without it, even a benign network scan could expose the tester to civil liability or criminal prosecution.

Why this answer

A get-out-of-jail letter provides authorization and protects the tester from legal liability when performing authorized tests.

220
MCQmedium

A penetration tester writes a Python script to test an API for vulnerabilities. The script sends requests with multiple payloads and checks if the response contains an error message indicating a potential injection. Which of the following code snippets would BEST reduce false positives by verifying that the injected parameter is processed?

A.Check if the response status code is 500 for each payload
B.Compare the response time of the injected request to a baseline without injection
C.Check if the response contains a specific error message that is only triggered when the injection is successful
D.Compare the response of the injected request to the response of a benign request with the same parameter structure
AnswerD

Differential analysis compares the entire HTTP response—status, headers, body length, and content—of a benign request against an injected request that differs only in the payload. This isolates the variable of interest, so any observed difference that correlates with the payload confirms the parameter is processed. It is inherently robust to environmental noise and is the core technique used by modern DAST scanners to validate injection findings.

Why this answer

Comparing the response of an injected request to a benign request with the same parameter structure directly confirms that the injected parameter was processed and caused a different application behavior, thereby reducing false positives. This technique, often called differential analysis, isolates the effect of the injection from normal variations in the API response, such as dynamic content or session tokens. It is more reliable than checking for specific error messages or status codes, which may be suppressed or generic.

Exam trap

The trap here is that candidates often choose Option C because they assume error messages are reliable indicators of injection success, but in practice, modern APIs suppress detailed errors and may return the same generic error for both benign and malicious inputs, making differential analysis a more robust approach.

How to eliminate wrong answers

Option A is wrong because a 500 status code indicates a server error but does not confirm that the injected parameter was processed; it could be triggered by malformed requests, resource exhaustion, or unrelated bugs, leading to false positives. Option B is wrong because comparing response time can detect time-based injections (e.g., SQLi with SLEEP), but it is not a general method for verifying that the injected parameter is processed; many injections do not cause measurable time differences, and network latency can introduce false positives. Option C is wrong because checking for a specific error message assumes the application exposes detailed error information, which is often disabled in production; moreover, the same error message might appear for benign inputs or other issues, causing false positives or negatives.

221
MCQmedium

A penetration tester gains a low-privilege shell on a Linux server. The command 'sudo -l' reveals that the user can run /usr/bin/less as root without a password. Which tool would the tester likely use to escalate privileges?

A.Metasploit
B.Hashcat
C.Chisel
D.GTFOBins
AnswerD

GTFOBins is a curated database of Unix binaries that can be exploited to bypass local security restrictions, such as misconfigured sudo permissions, SUID bits, or Linux capabilities. When you have a low-privilege shell, you enumerate what commands you can run with sudo (via sudo -l) and then search GTFOBins for those binaries to find tested one-liners that spawn a root shell, read sensitive files, or perform other privileged actions. It is the authoritative reference for this scenario because it provides exact command sequences that leverage trusted system binaries.

Why this answer

GTFOBins documents that less can be used to escalate privileges via the ! command when run with sudo.

222
MCQhard

A penetration tester is engaged to test a web application that uses a third-party payment gateway. The client has not obtained permission from the payment gateway provider. Which of the following is the best course of action?

A.Proceed with testing but use only passive techniques on the gateway
B.Test the gateway without informing the client to avoid delays
C.Exclude the payment gateway from scope and notify the client that permission is required
D.Include the payment gateway in scope because it is part of the application
AnswerC

The payment gateway is a third-party system (e.g., Stripe, PayPal) that the client's application integrates with but does not own or operate, so it falls outside the contractual scope of the engagement. Explicitly excluding it and notifying the client ensures the tester operates solely within authorized boundaries, preventing legal liability under computer misuse laws and preserving the admissibility of findings. This approach also aligns with standard penetration testing frameworks (e.g., OWASP Testing Guide), which require validating scope with the client and documenting third-party dependencies as out-of-scope. If testing the gateway is necessary, the client must arrange a separate authorization or request an attestation from the gateway provider.

Why this answer

Third-party services require explicit permission from the provider; testing without it could violate terms or laws. The tester should add the service as out-of-scope until permission is obtained.

223
MCQhard

You are attacking a web application and notice that it makes requests to internal services. You attempt to access the cloud metadata endpoint at http://169.254.169.254/. Which vulnerability are you most likely exploiting?

A.SSRF (Server-Side Request Forgery)
B.XXE (XML External Entity)
C.Command injection
D.CSRF (Cross-Site Request Forgery)
AnswerA

SSRF is the correct answer because the web application is being manipulated into making server-side HTTP requests to a URL controlled by the attacker. In cloud environments, the metadata endpoint (e.g., http://169.254.169.254/latest/meta-data/) is reachable only from the host, so a successful SSRF lets the attacker read instance credentials or security tokens. This directly matches the scenario of the server fetching an internal resource, unlike the other options.

Why this answer

SSRF (Server-Side Request Forgery) allows an attacker to make requests from the server to internal resources, including cloud metadata endpoints.

224
MCQmedium

A penetration tester is exploiting a web application that stores session tokens in HTTP cookies without the HttpOnly flag. Which attack is most likely to succeed?

A.SQL injection
B.Session hijacking through cross-site scripting
C.Cross-site request forgery
D.Server-side request forgery
AnswerB

Session hijacking through cross-site scripting (XSS) is the correct explanation because reflected, stored, or DOM-based XSS allows an attacker to inject arbitrary JavaScript that executes in the victim's browser context. If the session cookie lacks the HttpOnly flag, the injected script can access document.cookie and send the session token to an attacker-controlled server, enabling session hijacking. This is a direct client-side attack that compromises the confidentiality of the session token.

Why this answer

The absence of the HttpOnly flag on session cookies allows client-side scripts (e.g., JavaScript) to access the cookie. An attacker can exploit a cross-site scripting (XSS) vulnerability to execute arbitrary JavaScript in the victim's browser, which then reads the session cookie and sends it to the attacker. This enables session hijacking without needing to guess or brute-force the token.

Exam trap

The trap here is that candidates often confuse session hijacking via XSS with CSRF, but CSRF does not steal the token—it only abuses the existing authenticated session to perform actions.

How to eliminate wrong answers

Option A is wrong because SQL injection targets the database layer by manipulating SQL queries, not the client-side storage of session tokens. Option C is wrong because cross-site request forgery (CSRF) forces the victim to perform unintended actions using their existing session, but it does not steal the session token itself. Option D is wrong because server-side request forgery (SSRF) tricks the server into making internal requests, not stealing client-side cookies.

225
MCQmedium

The penetration tester identifies that a web application is hosted on a server that also contains sensitive customer data unrelated to the test. The SOW clearly states that only the web application is in scope. The tester accidentally accesses the customer data. What should the tester do immediately?

A.Delete the data and continue as planned
B.Continue testing and ignore the data
C.Analyze the data to find vulnerabilities
D.Report the incident to the client and stop testing
AnswerD

Stopping the test and reporting the incident is the only action that preserves both the evidence and the tester's professional integrity while aligning with incident-response procedures and the rules of engagement. The client has an incident response plan or would expect to be notified as a point of contact, so the tester should immediately escalate the discovery, halt all further testing, and let the client decide whether to involve law enforcement or take other protective action. This approach avoids unauthorized access to out-of-scope data and keeps the engagement within the agreed scope, which is the standard expected for a PT0-003 certified professional.

Why this answer

When a penetration tester accesses data outside the scope defined in the SOW, the immediate action is to stop testing and report the incident to the client. This preserves the integrity of the engagement, allows the client to assess any regulatory or contractual implications, and prevents further unauthorized access. Continuing or deleting data would compound the scope violation.

Exam trap

PT0-003 often tests the misconception that a tester should handle an out-of-scope discovery quietly (delete, ignore, or investigate), when the exam expects immediate client notification and cessation of testing.

How to eliminate wrong answers

Option A is wrong because deleting data is itself an unauthorized modification of client data and destroys evidence the client may need for incident response or regulatory notification. Option B is wrong because continuing testing after discovering out-of-scope access ignores the scope violation and may deepen the breach. Option C is wrong because analyzing the out-of-scope data to find vulnerabilities is a further unauthorized access and use of data that the tester has no authorization to examine.

Page 2

Page 3 of 11

Page 4

All pages