CompTIA certification · Exam PT0-003

PT0-003 Mock Exam Page 9

CompTIA PenTest+

Free PT0-003 mock exam questions 81–90, each with the answer and an explanation.

20 questions · 37 minutes · free, no sign-up

Free PT0-003 questions

81–90 of 106 free
Question 81 Choose 1
A consultant starts a network penetration test. The consultant uses a laptop that is hardwired to the network to try to assess the network with the appropriate tools. Which of the following should the consultant engage first?
Show answerHide answer

Correct answer: C Host discovery

Explanation

Explanation:
A network penetration test follows a logical, phased methodology. The initial phase after connecting to the network is to understand what you are connected to. The consultant needs to map the attack surface before targeting specific systems or services.
Host discovery (also known as host enumeration or network scanning) is the absolute first step. Its goal is to answer the fundamental question: "Which IP addresses on this network are active and have live hosts?"
This is typically done using tools like ping sweeps or more advanced techniques with nmap (e.g., nmap -sn 192.168.1.0/24). This step identifies active devices but does not probe them for details. It creates the initial target list for all subsequent, more invasive steps.
Engaging in any other step before host discovery would be inefficient and illogical, as you would be probing IP addresses that might not even exist.

Analysis of Incorrect Options
A. Service discovery:
This is the step that follows host discovery. Once you know which hosts are alive, you then probe them to find out which ports are open and what services are running on those ports (e.g., nmap -sS -sV 192.168.1.10). Performing service discovery on the entire network range without first finding live hosts would be extremely slow and generate unnecessary network noise.
B. OS fingerprinting:
This is a more advanced form of service discovery. It involves analyzing the specific responses from a host to determine its underlying operating system (e.g., Windows 11 vs. Linux Ubuntu). This requires a live host to target and is performed after both host and service discovery have identified a viable target.
D. DNS enumeration:
This is a valuable information-gathering technique, but it is not the first step when you are already connected to the internal network. DNS enumeration (using tools like nslookup, dig, or dnsrecon) is often part of the external reconnaissance phase before gaining network access, or it is used internally to map hostnames to the IP addresses you discovered during the host discovery phase. It relies on knowing what to look for, which is informed by the list of live hosts.

Reference
This question aligns with the CompTIA PenTest+ (PT0-003) Domain 2.0: Information Gathering and Vulnerability Scanning and the general penetration testing methodology.
The standard sequence for network reconnaissance is:
1.Host Discovery: Find live hosts.
2.Port Scanning / Service Discovery: Find open ports and services on live hosts.
3.Version Detection & OS Fingerprinting: Interrogate the discovered services for specific versions and OS data.
4.Vulnerability Scanning: Use tools like Nessus or Nexpose to check services against a database of known vulnerabilities.
Question 82 Choose 1
During an assessment, a penetration tester obtains an NTLM hash from a legacy Windows machine. Which of the following tools should the penetration tester use to continue the attack?
Show answerHide answer

Correct answer: D CrackMapExec

Explanation

Explanation:

Once an NTLM hash is obtained from a legacy Windows machine, a penetration tester can leverage CrackMapExec (CME)—now widely succeeded by NetExec—to perform a Pass-the-Hash (PtH) attack. Unlike standard authentication which requires a plaintext password, the NTLM hash itself is sufficient for authenticating over the Server Message Block (SMB) protocol.

Incorrect Options Analysis

Responder (A):
This tool is used for poisoning LLMNR, NBT-NS, and MDNS requests to capture hashes in the first place. It is a "man-in-the-middle" tool used for credential harvesting, not for utilizing a hash after it has already been obtained.

Hydra (B):
This is a parallelized network login cracker used for brute-forcing or dictionary attacks against plaintext passwords. While it supports many protocols, it is not the primary tool for Pass-the-Hash maneuvers in a Windows environment.

BloodHound (C):
This is a graphical tool used to map complex attack paths and relationships within Active Directory (AD). While it helps a tester identify where to go, it does not natively perform the authentication or command execution required to continue the attack with a hash.

References
CompTIA PenTest+ (PT0-003) Objective 3.2: Given a scenario, perform network-based attacks.
MITRE ATT&CK Framework: Technique T1550.002 (Use Alternate Authentication Material: Pass the Hash).
Question 83 Choose 1
A penetration tester exports the following CSV data from a scanner. The tester wants to parse the data using Bash and input it into another tool. CSV data before parsing:

cat data.csv
Host, IP, Username, Password
WINS212, 10.111.41.74, admin, Spring11
HRDB, 10.13.9.212, hradmin, HRForTheWin
WAS01, 192.168.23.13, admin, Snowfall97
Intended output:

admin Spring11
hradmin HRForTheWin
admin Snowfall97
Which of the following will provide the intended output?
Show answerHide answer

Correct answer: A cat data.csv | grep -v "IP" | cut -d"," -f 3,4 | sed -e 's/,/ /'

Explanation

Explanation:

The provided solution uses a combination of core Linux utilities—grep, cut, and sed—to transform raw CSV data into a specific space-delimited format. Each command in the pipeline performs a critical transformation step:

grep -v "IP": This filters out the header row. The -v flag stands for "invert-match," meaning it excludes any line containing the string "IP". This prevents the column headers ("Username, Password") from appearing in the final output.

cut -d"," -f 3,4: This command extracts specific columns. The -d"," flag sets the delimiter to a comma, and -f 3,4 tells the utility to keep only the third and fourth fields (Username and Password). At this stage, the output still contains commas (e.g., admin, Spring11).

sed -e 's/,/ /': The Stream Editor (sed) performs a substitution. The expression 's/,/ /' searches for the first comma on each line and replaces it with a space. This results in the final intended format: admin Spring11.

This pipeline is a standard approach in penetration testing for "data wrangling," allowing the tester to quickly reformat scan results for input into brute-forcing tools or credential stuffing scripts.

Incorrect Options Analysis

Option B (find . -iname):
The find command is used for searching the file system for filenames and directories. It cannot parse the internal contents of a CSV file.

Option C (grep 'username|Password'):
This command simply searches for lines containing those specific strings. It does not perform any field extraction or character replacement, and the syntax for the OR operator (|) would require the -E (Extended Regex) flag to function as intended.

Option D:
While this attempts to use grep -v to exclude hostnames and IPs, it is highly inefficient and manual. It relies on knowing every single value in the Host and IP columns beforehand, which is not practical for large datasets.

References

CompTIA PenTest+ (PT0-003) Objective 5.1: Given a scenario, use basic scripting concepts (Bash).

GNU Coreutils: Documentation for grep, cut, and sed.
Question 84 Choose 1
Which of the following is the most likely LOLBin to be used to perform an exfiltration on a Microsoft Windows environment?
Show answerHide answer

Correct answer: C bitsadmin.exe

Explanation

Explanation:

bitsadmin.exe is a legitimate Windows command-line tool used to create and manage Background Intelligent Transfer Service (BITS) jobs. BITS transfers files in the background using idle network bandwidth, supports resumption of interrupted transfers, and can blend in with normal Windows traffic. Attackers abuse it for stealthy exfiltration because BITS jobs are persistent, use HTTP/HTTPS, and are less monitored than standard file copies.

Why other options are incorrect

A. procdump.exe
– A Sysinternals tool for dumping process memory (e.g., LSASS for credentials). It is not used for exfiltration; it captures memory locally.

B. msbuild.exe
– A build tool for .NET applications. Often abused for inline execution of C# code (bypassing application whitelisting), but not typically for exfiltration of files.

D. cscript.exe
– Executes VBScript or JScript scripts. Can be used for many malicious actions (downloaders, keyloggers), but BITS is specifically designed for file transfer and is the most likely LOLBin for exfiltration due to its native background transfer capabilities.

References:

CompTIA PenTest+ PT0-003 – Domain 3.5 (Post-Exploitation): “Data exfiltration using native Windows tools (LOLBins).”

LOLBAS (Living Off the Land Binaries, Scripts, and Libraries) – bitsadmin.exe listed as a file transfer and exfiltration tool.
Question 85 Choose 1
Which of the following techniques is the best way to avoid detection by Data Loss Prevention (DLP) tools?
Show answerHide answer

Correct answer: C Encryption

Explanation

Explanation:

Encryption transforms data into an unreadable format without the proper decryption key. Most DLP tools rely on content inspection (e.g., regex patterns, fingerprints, keywords) to detect sensitive data like credit card numbers, SSNs, or trade secrets. Encrypted data appears as high-entropy, random binary, which DLP cannot inspect or match against policies. Properly encrypted exfiltration bypasses DLP entirely unless the DLP has the decryption key or performs SSL/TLS interception.

Why other options are incorrect

A. Encoding (e.g., Base64, hex)
– Easily reversible and not secret. DLP tools trivially decode and inspect the original content. Encoding offers zero security.

B. Compression (e.g., ZIP, GZIP)
– Reduces size but does not hide content. DLP tools can decompress and inspect the original data. Some DLP even recursively unpacks archives.

D. Obfuscation (e.g., XOR with known key, ROT13)
– Weak, often reversible without a secret key. DLP can be configured to de-obfuscate common patterns. Not cryptographically secure.

References

CompTIA PenTest+ PT0-003 – Domain 3.5 (Post-Exploitation Data Exfiltration): “Bypassing DLP using encryption.”

NIST SP 800-175B – Encryption provides confidentiality; DLP cannot inspect encrypted payloads without keys.
Question 86 Choose 1
A penetration tester is attempting to discover vulnerabilities in a company's web application. Which of the following tools would most likely assist with testing the security of the web application?
Show answerHide answer

Correct answer: C sqlmap

Explanation

Explanation:

sqlmap is an open-source tool specifically designed to automate the detection and exploitation of SQL injection vulnerabilities in web applications. It supports multiple database backends (MySQL, MSSQL, Oracle, PostgreSQL), can extract data, bypass WAF rules, and even gain OS shell access. For testing a web application's security, SQL injection remains one of the most critical and common flaws, and sqlmap is the industry-standard tool for this purpose.

Why other options are incorrect

A. OpenVAS – A full-featured vulnerability scanner for networks and hosts (e.g., missing patches, weak configs). It is not specialized for web application logic flaws like SQLi or XSS.

B. Nessus – Another network vulnerability scanner. While it includes some web application checks, it is not as deep or flexible as dedicated web app testing tools like sqlmap or Burp Suite.

D. Nikto – A web server scanner that checks for outdated server versions, dangerous files, and common misconfigurations. It does not actively exploit SQL injection or deeply test application logic.

References:

CompTIA PenTest+ PT0-003 – Domain 2.4 (Web Application Scanning): "Use sqlmap to detect and exploit SQL injection vulnerabilities."

OWASP Top 10 – A1:2021 – Broken Access Control / A3:2021 – Injection (SQLi). sqlmap is the referenced tool for SQLi automation.
Question 87 Choose 1
A penetration tester discovers evidence of an advanced persistent threat on the network that is being tested. Which of the following should the tester do next?
Show answerHide answer

Correct answer: A Report the finding.

Explanation

Explanation
The discovery of an actual, ongoing malicious presence (an Advanced Persistent Threat or APT) during a penetration test is a serious incident that requires immediate and specific action. The penetration tester's role is to simulate an attack, not to respond to real ones.

The primary and immediate next step is to report the finding directly to the appropriate client contact (e.g., the point of contact for the engagement, the CISO, or the SOC manager).

This should be done verbally and immediately, not just saved for the final written report. The client needs to be informed right away so their incident response team can take over containment and eradication.

The tester should provide all relevant evidence (e.g., suspicious files, IP addresses, timestamps) to the client.

Continuing the test without informing the client could interfere with the client's incident response, potentially cause damage, and violate the rules of engagement.

Why the Other Options Are Incorrect

B. Analyze the finding.
While some initial analysis may occur to confirm the finding is indeed malicious and not a false positive, the tester should not conduct a deep forensic analysis. This is the responsibility of the client's incident response team. The tester's role is to identify and report the threat, not to investigate it extensively.

C. Remove the threat.
A penetration tester should never take action to remove a threat. This is outside the scope of a penetration testing engagement and could be considered unauthorized system modification. It could also destroy forensic evidence needed for the client's investigation and potentially disrupt business operations.

D. Document the finding and continue testing.
This is incorrect because it delays the critical communication to the client. The client has a right to know immediately about a live threat on their network. Continuing testing in an environment with an active APT can also skew results and is ethically questionable.

Reference
This scenario is a key part of the Rules of Engagement and professional conduct covered in the PenTest+ exam objectives (Domain 5.0: Reporting and Communication). Professional penetration testing standards, such as those from organizations like CREST and the EC-Council, mandate that the discovery of previously unknown malicious activity must be reported to the client immediately. The tester's job is to assess security, not to act as an incident responder.
Question 88 Choose 1
Given the following statements: Implement a web application firewall Upgrade end-of-life operating systems.Implement a secure software development life cycle.In which of the following sections of a penetration test report would the above statements be found?
Show answerHide answer

Correct answer: D Recommendations

Explanation

Explanation:
The statements provided—"Implement a web application firewall," "Upgrade end-of-life operating systems," and "Implement a secure software development life cycle"—are actionable suggestions aimed at addressing security vulnerabilities or improving the overall security posture of an organization. In a penetration test report, such suggestions are typically included in the Recommendations section, as they provide guidance on how to remediate identified issues or mitigate risks uncovered during the penetration test.

Why Recommendations?
The Recommendations section of a penetration test report is designed to offer practical, actionable steps to address vulnerabilities, misconfigurations, or weaknesses found during the test. These statements directly align with that purpose:

Implement a web application firewall:
This addresses potential web application vulnerabilities (e.g., SQL injection, XSS) by adding a protective layer.

Upgrade end-of-life operating systems:
This mitigates risks associated with unsupported systems that no longer receive security patches.

Implement a secure software development life cycle:
This improves long-term security by integrating security practices into software development processes.

Recommendations are typically tailored to the findings of the penetration test and aim to help the organization strengthen its defenses.

Why not the other options?

A. Executive Summary:
This section provides a high-level overview of the penetration test, including objectives, scope, key findings, and overall risk assessment. It is written for non-technical stakeholders and does not typically include specific technical recommendations like those listed.

B. Attack Narrative:
This section details the step-by-step process of how the penetration tester exploited vulnerabilities or gained access to systems. It focuses on the methodology and techniques used during the test, not on remediation steps.

C. Detailed Findings:
This section lists specific vulnerabilities, misconfigurations, or weaknesses discovered during the test, often with evidence (e.g., screenshots, logs) and their potential impact. While it may describe issues like end-of-life systems, it does not include the remediation steps, which are reserved for the Recommendations section.

References:
CompTIA PenTest+ (PT0-003) objectives, specifically Domain 5: Reporting and Communication, emphasize the structure of a penetration test report, including the Recommendations section for actionable remediation steps.

Industry standards like the Penetration Testing Execution Standard (PTES) and OWASP Testing Guide highlight the importance of providing clear recommendations in penetration test reports to guide organizations in addressing vulnerabilities.
Question 89 Choose 1
Which of the following is most important when communicating the need for vulnerability remediation to a client at the conclusion of a penetration test?
Show answerHide answer

Correct answer: B Articulation of impact

Explanation

Explanation
The correct answer is B. Articulation of impact. At the conclusion of a penetration test, the primary goal of the report and communication is to drive action—specifically, remediation. For a client (especially management and business stakeholders who may not be technical), understanding the technical "cause" of a vulnerability is less compelling than understanding its business impact.

What it means:
"Articulation of impact" means clearly explaining what the vulnerability allows an attacker to do and how that action negatively affects the business. This translates technical findings into business risks. For example, instead of just stating "SQL Injection was found," the report should explain, "This SQL Injection vulnerability could allow an attacker to steal the entire customer database, leading to regulatory fines, reputational damage, and loss of customer trust."

Why it's most important:
Business leaders prioritize risks based on potential damage and cost. By clearly articulating the impact, you help the client understand why they should allocate resources (time, money, personnel) to fix a particular finding. This prioritization is the cornerstone of an effective remediation plan.

Reference to Exam Objective:
This question falls squarely under the "Reporting and Communication" domain of the PenTest+. A key objective is the ability to effectively communicate findings and recommendations to various audiences, including executive stakeholders, to facilitate remediation.

Analysis of Incorrect Options

A. Articulation of cause:
While explaining the root cause of a vulnerability (e.g., "the application does not sanitize user input") is crucial for the technical team that will fix the issue, it is not the most important factor for communicating the need for remediation to the client overall. The "cause" is a technical detail; the "impact" is the business consequence.

C. Articulation of escalation:
This refers to the process or path for escalating issues. While a penetration testing report may include an escalation path for the client's internal use, explaining this process is not the primary method for communicating the need to fix a vulnerability. The focus is on justifying the remediation, not on the procedural steps after the decision is made.

D. Articulation of alignment:
This could refer to aligning the findings with compliance frameworks (like PCI DSS, HIPAA) or business objectives. This is a very important supporting factor, as it adds weight to the recommendation. However, it is often a subset of articulating impact. The ultimate "impact" of non-compliance is a fine or loss of business, which is still a consequence. Directly explaining the exploitative impact of the vulnerability itself is the most fundamental and persuasive element.

In summary, while all options have a place in a comprehensive report, the articulation of impact is the most critical for motivating the client to act, as it directly answers the question, "Why should we care?"
Question 90 Choose 1
A tester completed a report for a new client. Prior to sharing the report with the client, which of the following should the tester request to complete a review?
Show answerHide answer

Correct answer: B The customer's designated contact

Explanation

Explanation: Before sharing a penetration test report, the tester should request a review from the customer’s designated contact. This person is authorized to receive sensitive findings and validate that the report aligns with the agreed scope, expectations, and communication protocols. It ensures confidentiality, proper handling of vulnerabilities, and avoids premature or unauthorized disclosure.
According to NIST SP 800-115, “All findings should be communicated through the designated point of contact to ensure proper coordination and response” (Section 5.5). The OWASP Testing Guide v4 also emphasizes that “the report should be reviewed and validated with the client before final delivery to ensure accuracy and relevance.”

This step is critical for:
Confirming technical accuracy and business impact
Ensuring findings are not misinterpreted or miscommunicated
Respecting contractual and legal boundaries

❌ A. A generative AI assistant
AI tools are not suitable for reviewing sensitive client data due to privacy, confidentiality, and data handling risks. They are not authorized parties and may inadvertently expose or misuse proprietary information.
Reference:
OWASP Top 10 Privacy Risks – “Unintended data exposure through third-party tools and services.”

❌ C. A cybersecurity industry peer
External peers are not part of the engagement and lack authorization to view client-specific findings. Sharing the report with them may violate non-disclosure agreements (NDAs) and breach client trust.
Reference:
NIST SP 800-115 – “All communications must be coordinated through the client’s designated contact to avoid unauthorized disclosure.”

❌ D. A team member
Internal peer review is useful during report drafting, but final review must be done by the client’s designated contact. Only the client can validate whether the findings are accurate, relevant, and appropriately scoped.
Reference:
OWASP Testing Guide – “The client should validate the report before it is finalized and distributed.”

Summary:
The penetration tester must prioritize client confidentiality and coordination. The designated contact ensures findings are reviewed securely, accurately, and in line with contractual obligations. This protects both the tester and the client from miscommunication, legal exposure, and operational risk.

References:
NIST SP 800-115 – Technical Guide to Information Security Testing and Assessment
OWASP Web Security Testing Guide – Reporting
OWASP Privacy Risks
Full mock exam

Sit the PT0-003 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real PT0-003 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full PT0-003 mock exam
  • 90questions per mock
  • 165 mintime limit
  • 361questions in the bank
  • Newmock on every attempt