DON'T WANT TO MISS A THING?

Certification Exam Passing Tips

Latest exam news and discount info

Curated and up-to-date by our experts

Yes, send me the newsletter

Free CompTIA PT0-003 Practice Questions & Answers 2026 Part4 | CompTIA PenTest+

Are you preparing for the CompTIA PT0-003 certification exam? SPOTO offers the CompTIA PT0-003 Premium File; all questions are aligned with the latest exam content and come with expert-provided answers. Our question banks cover the latest question types, core concepts, and detailed explanations, helping you familiarize yourself with the exam format and difficulty level. Whether you are reviewing core concepts or simulating a real exam environment, these resources will rapidly boost your confidence and readiness.
For over two decades, SPOTO has successfully helped numerous IT professionals secure their ideal positions at Fortune 500 companies. Download now to start practicing efficiently and ensure a high score on the actual exam. Don't miss this opportunity to pass your certification exam with ease!
Take other online exams

Question #1
[Attacks and Exploits]During a web application assessment, a penetration tester identifies an input field that allows JavaScript injection. The tester inserts a line of JavaScript that results in a prompt, presenting a text box when browsing to the page going forward.Which of the following types of attacks is this an example of?
A. SQL injection
B. SSRF
C. XSS
D. Server-side template injection
View answer
Correct Answer: C
Question #2
[Attacks and Exploits]During a penetration test, the tester identifies several unused services that are listening on all targeted internal laptops.Which of the following technical controls should the tester recommend to reduce the risk of compromise?
A. Multifactor authentication
B. Patch management
C. System hardening
D. Network segmentation
View answer
Correct Answer: C
Question #3
During a penetration test, a junior tester uses Hunter.io for an assessment and plans to review the information that will be collected. Which of the following describes the information the junior tester will receive from the Hunter.io tool?
A. A collection of email addresses for the target domain that is available on multiple sources on the internet
B. DNS records for the target domain and subdomains that could be used to increase the external attack surface
C. Data breach information about the organization that could be used for additional enumeration
D. Information from the target's main web page that collects usernames, metadata, and possible data exposures
View answer
Correct Answer: A
Question #4
A penetration tester has just started a new engagement. The tester is using a framework that breaks the life cycle into 14 components.Which of the following frameworks is the tester using?
A. OWASP MASVS
B. OSSTMM
C. MITRE ATT&CK
D. CREST
View answer
Correct Answer: B
Question #5
[Attacks and Exploits]A penetration tester writes the following script to enumerate a 1724 network:1 #!/bin/bash2 for i in {1..254}; do3 ping -c1 192.168.1.$i4 doneThe tester executes the script, but it fails with the following error:-bash: syntax error near unexpected token `ping'Which of the following should the tester do to fix the error?
A. Add do after line 2
B. Replace {1
C. Replace bash with tsh
D. Replace $i with ${i}
View answer
Correct Answer: B
Question #6
A penetration tester is working on an engagement in which a main objective is to collect confidential information that could be used to exfiltrate data and perform a ransomware attack. During the engagement, the tester is able to obtain an internal foothold on the target network.Which of the following is the next task the tester should complete to accomplish the objective?
A. Initiate a social engineering campaign
B. Perform credential dumping
C. Compromise an endpoint
D. Share enumeration
View answer
Correct Answer: D
Question #7
While conducting a reconnaissance activity, a penetration tester extracts the following information:Emails:admin@acme.comsales@acme.comsupport@acme.comWhich of the following risks should the tester use to leverage an attack as the next step in the security assessment?
A. Unauthorized access to the network
B. Exposure of sensitive servers to the internet
C. Likelihood of SQL injection attacks
D. Indication of a data breach in the company
View answer
Correct Answer: A
Question #8
[Attacks and Exploits]A penetration tester wants to use the following Bash script to identify active servers on a network:1 network_addr="192.168.1"2 for h in {1..254}; do3 ping -c 1 -W 1 $network_addr.$h > /dev/null4 if [ $? -eq 0 ]; then5 echo "Host $h is up"6 else7 echo "Host $h is down"8 fi9 doneWhich of the following should the tester do to modify the script?
A. Change the condition on line 4
B. Add 2>&1 at the end of line 3
C. Use seq on the loop on line 2
D. Replace $h with ${h} on line 3
View answer
Correct Answer: C
Question #9
[Information Gathering and Vulnerability Scanning]A penetration tester needs to launch an Nmap scan to find the state of the port for both TCP and UDPservices.Which of the following commands should the tester use?
A. nmap -sU -sW -p 1-65535 example
B. nmap -sU -sY -p 1-65535 example
C. nmap -sU -sT -p 1-65535 example
D. nmap -sU -sN -p 1-65535 example
View answer
Correct Answer: C
Question #10
[Attacks and Exploits]During a web application assessment, a penetration tester identifies an input field that allows JavaScript injection. The tester inserts a line of JavaScript that results in a prompt, presenting a text box when browsing to the page going forward.Which of the following types of attacks is this an example of?
A. SQL injection
B. SSRF
C. XSS
D. Server-side template injection
View answer
Correct Answer: C
Question #11
While performing an internal assessment, a tester uses the following command:crackmapexec smb 192.168.1.0/24 -u user.txt -p Summer123@Which of the following is the main purpose of the command?
A. To perform a pass-the-hash attack over multiple endpoints within the internal network
B. To perform common protocol scanning within the internal network
C. To perform password spraying on internal systems
D. To execute a command in multiple endpoints at the same time
View answer
Correct Answer: C
Question #12
During a pre-engagement activity with a new customer, a penetration tester looks for assets to test.
A. API
B. HTTP
C. IPA
D. ICMP
View answer
Correct Answer: A
Question #13
[Reporting and Communication]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?
A. A generative AI assistant
B. The customer's designated contact
C. A cybersecurity industry peer
D. A team member
View answer
Correct Answer: B
Question #14
[Attacks and Exploits]A penetration tester assesses an application allow list and has limited command-line access on the Windows system.Which of the following would give the penetration tester information that could aid in continuing the test?
A. mmc
B. icacls
C. nltest
D. rundll
View answer
Correct Answer: C
Question #15
[Attacks and Exploits]During a web application assessment, a penetration tester identifies an input field that allows JavaScript injection. The tester inserts a line of JavaScript that results in a prompt, presenting a text box when browsing to the page going forward.Which of the following types of attacks is this an example of?
A. SQL injection
B. SSRF
C. XSS
D. Server-side template injection
View answer
Correct Answer: C
Question #16
[Attacks and Exploits]A penetration tester writes the following script to enumerate a 1724 network:1 #!/bin/bash2 for i in {1..254}; do3 ping -c1 192.168.1.$i4 doneThe tester executes the script, but it fails with the following error:-bash: syntax error near unexpected token `ping'Which of the following should the tester do to fix the error?
A. Add do after line 2
B. Replace {1
C. Replace bash with tsh
D. Replace $i with ${i}
View answer
Correct Answer: B
Question #17
Which tool is best suited for mapping attack paths and enumerating privileges within an Active Directory environment?
A. Grype
B. Tenable Nessus
C. Nikto
D. BloodHound
View answer
Correct Answer: D
Question #18
Which of the following tasks would ensure the key outputs from a penetration test are not lost as part of the cleanup and restoration activities?
A. reserving artifacts
B. everting configuration changes
C. eeping chain of custody
D. xporting credential data
View answer
Correct Answer: A
Question #19
A penetration tester is enumerating a Linux system. The goal is to modify the following script to provide more comprehensive system information: #!/bin/bash ps aux >> linux_enum.txt Which of the following lines would provide the most comprehensive enumeration of the system? This command gathers: /etc/passwd -- lists all local user accounts. netstat -tuln -- lists listening ports and associated services. /etc/bash.bashrc -- contains environment variables and configurations that could reveal system behaviors or hidden persistence mechanisms. This provides a much broader and deeper enumeration compared to other options.
A. cat /etc/passwd >> linux_enum
B. whoami >> linux_enum
C. hostname >> linux_enum
D. lsof -i >> linux_enum
View answer
Correct Answer: A
Question #20
[Attacks and Exploits]During a penetration test, the tester identifies several unused services that are listening on all targeted internal laptops.Which of the following technical controls should the tester recommend to reduce the risk of compromise?
A. Multifactor authentication
B. Patch management
C. System hardening
D. Network segmentation
View answer
Correct Answer: C
Question #21
[Attacks and Exploits] A penetration tester assesses an application allow list and has limited command-line access on the Windows system. Which of the following would give the penetration tester information that could aid in continuing the test? When a penetration tester has limited command-line access on a Windows system, the choice of tool is critical for gathering information to aid in furthering the test. Here's an explanation for each option: mmc.exe (Microsoft Management Console): Primarily used for managing Windows and its services. It's not typically useful for gathering information about the system from the command line in a limited access scenario. icacls.exe: This tool is used for modifying file and folder permissions. While useful for modifying security settings, it does not directly aid in gathering system information or enumeration. nltest.exe: This is a powerful command-line utility for network testing and gathering information about domain controllers, trusts, and replication status. Key functionalities include: Listing domain controllers: nltest /dclist: Querying domain trusts: nltest /domain_trusts Checking secure channel: nltest /sc_query: These capabilities make nltest very useful for understanding the network environment, especially in a domain context, which is essential for penetration testing. rundll.exe: This utility is used to run DLLs as programs. While it can be used for executing code, it does not provide direct information about the system or network environment. Conclusion: nltest.exe is the best choice among the given options as it provides valuable information about the network, domain controllers, and trust relationships. This information is crucial for a penetration tester to plan further actions and understand the domain environment.
A. mmc
B. icacls
C. nltest
D. rundll
View answer
Correct Answer: C
Question #22
[Tools and Code Analysis]A penetration tester is attempting to discover vulnerabilities in a company's web application. Whichof the following tools would most likely assist with testing the security of the web application?
A. penVAS
B. essus
C. qlmap
D. ikto
View answer
Correct Answer: D
Question #23
You have identified a vulnerability in a system and want to confirm its validity. Which method could you use to validate the results using an exploit?
A. False negative analysis
B. Public exploit selection
C. Troubleshooting scan configurations
D. Scan completeness
View answer
Correct Answer: B
Question #24
[Attacks and Exploits]A penetration tester is performing an authorized physical assessment. During the test, the tester observes an access control vestibule and on-site security guards near the entry door in the lobby.Which of the following is the best attack plan for the tester to use in order to gain access to the facility?
A. Clone badge information in public areas of the facility to gain access to restricted areas
B. Tailgate into the facility during a very busy time to gain initial access
C. Pick the lock on the rear entrance to gain access to the facility and try to gain access
D. Drop USB devices with malware outside of the facility in order to gain access to internal machines
View answer
Correct Answer: B
Question #25
[Attacks and Exploits]A penetration tester is evaluating a SCADA system. The tester receives local access to a workstation that is running a single application.While navigating through the application, the tester opens a terminal window and gains access to the underlying operating system.Which of the following attacks is the tester performing?
A. Kiosk escape
B. Arbitrary code execution
C. Process hollowing
D. Library injection
View answer
Correct Answer: A
Question #26
A penetration tester is working on an engagement in which a main objective is to collect confidential information that could be used to exfiltrate data and perform a ransomware attack. During the engagement, the tester is able to obtain an internal foothold on the target network.Which of the following is the next task the tester should complete to accomplish the objective?
A. Initiate a social engineering campaign
B. Perform credential dumping
C. Compromise an endpoint
D. Share enumeration
View answer
Correct Answer: D
Question #27
A penetration tester is working on an engagement in which a main objective is to collect confidential information that could be used to exfiltrate data and perform a ransomware attack. During the engagement, the tester is able to obtain an internal foothold on the target network.Which of the following is the next task the tester should complete to accomplish the objective?
A. Initiate a social engineering campaign
B. Perform credential dumping
C. Compromise an endpoint
D. Share enumeration
View answer
Correct Answer: D
Question #28
[Attacks and Exploits]During a penetration test, a tester captures information about an SPN account.Which of the following attacks requires this information as a prerequisite to proceed?
A. Golden Ticket
B. Kerberoasting
C. DCShadow
D. LSASS dumping
View answer
Correct Answer: B
Question #29
During cleanup, you restore altered firewall rules and system settings to their original state. Which activity does this describe?
A. Remove persistence mechanisms
B. Revert configuration changes
C. Spin down infrastructure
D. Preserve artifacts
View answer
Correct Answer: B
Question #30
[Information Gathering and Vulnerability Scanning]A penetration tester has found a web application that is running on a cloud virtual machine instance. Vulnerability scans show a potential SSRF for the same application URL path with an injectable parameter.Which of the following commands should the tester run to successfully test for secrets exposure exploitability?
A. curl ?param=http://169
B. curl '?param=http://127
C. curl '?param=