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 Part1 | 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
[Information Gathering and Vulnerability Scanning]A tester performs a vulnerability scan and identifies several outdated libraries used within the customer SaaS product offering.Which of the following types of scans did the tester use to identify the libraries?
A. IAST
B. SBOM
C. DAST
D. SAST
View answer
Correct Answer: D
Question #2
[Information Gathering and Vulnerability Scanning]While conducting a reconnaissance activity, a penetration tester extracts the following information:Emails: - admin@acme.com - sales@acme.com - support@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 #3
[Tools and Code Analysis]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?
A. OpenVAS
B. Nessus
C. sqlmap
D. Nikto
View answer
Correct Answer: D
Question #4
A company hires a penetration tester to perform an external attack surface review as part of a security engagement. The company informs the tester that the main company domain to investigate is comptia.org. Which of the following should the tester do to accomplish the assessment objective?
A. Perform information-gathering techniques to review internet-facing assets for the company
B. Perform a phishing assessment to try to gain access to more resources and users' computers
C. Perform a physical security review to identify vulnerabilities that could affect the company
D. Perform a vulnerability assessment over the main domain address provided by the client
View answer
Correct Answer: A
Question #5
A penetration tester needs to test a very large number of URLs for public access. Given the following code snippet:Which of the following changes is required?
A. The condition on line 6
B. The method on line 5
C. The import on line 1
D. The delimiter in line 3
View answer
Correct Answer: A
Question #6
[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 #7
A penetration tester discovers a deprecated directory in which files are accessible to anyone. Which of the following would most likely assist the penetration tester in finding sensitive information without raising suspicion?
A. earching for vulnerabilities and potential exploits
B. numerating cached pages available on web pages
C. ooking for externally available services
D. canning for exposed ports associated with the domain
View answer
Correct Answer: B
Question #8
[Attacks and Exploits]A tester plans to perform an attack technique over a compromised host. The tester prepares apayload using the following command:msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.12.12.1 LPORT=10112 -f csharpThe tester then takes the shellcode from the msfvenom command and creates a file called evil.xml.Which of the following commands would most likely be used by the tester to continue with theattack on the host?
A. egsvr32 /s /n /u C:\evil
B. SBuild
C. shta
D. ppInstaller
View answer
Correct Answer: B
Question #9
A penetration tester is assessing the security of a web application. When the tester attempts to access the application, the tester receives an HTTP 403 response. Which of the following should the penetration tester do to overcome this issue?
A. poof the server's MAC address
B. eset file and folder permissions on the web server
C. se a legacy browser to access the page
D. btain a valid X
View answer
Correct Answer: D
Question #10
During a penetration test, the tester gains full access to the application's source code. The application repository includes thousands of code files. Given that the assessment timeline is very short, which of the following approaches would allow the tester to identify hard-coded credentials most effectively?
A. Run TruffleHog against a local clone of the application
B. Scan the live web application using Nikto
C. Perform a manual code review of the Git repository
D. Use SCA software to scan the application source code
View answer
Correct Answer: A
Question #11
[Attacks and Exploits]A penetration tester attempts to run an automated web application scanner against a target URL. The tester validates that the web page is accessible from a different device. The tester analyzes the following HTTP request header logging output:200; GET /login.aspx HTTP/1.1 Host: foo.com; User-Agent: Mozilla/5.0 200; GET /login.aspx HTTP/1.1 Host: foo.com; User-Agent: Mozilla/5.0 No response; POST /login.aspx HTTP/1.1 Host: foo.com; User-Agent: curl 200; POST /login.aspx HTTP/1.1 Host: foo.com; User-Agent: Mozilla/5.0 No response; GET /login.aspx HTTP/1.1 Host: foo.com; User-Agent: pythonWhich of the following actions should the tester take to get the scans to work properly?
A. Modify the scanner to slow down the scan
B. Change the source IP with a VPN
C. Modify the scanner to only use HTTP GET requests
D. Modify the scanner user agent
View answer
Correct Answer: D
Question #12
[Attacks and Exploits]A penetration tester needs to collect information over the network for further steps in an internalassessment. Which of the following would most likely accomplish this goal?
A. tlmrelayx
B. c -tulpn 1234 192
C. esponder
D. rackmapexec smb 192
View answer
Correct Answer: C
Question #13
Which of the following explains the reason a tester would opt to use DREAD over PTES during the planning phase of a penetration test?
A. he tester is conducting a web application test
B. he tester is assessing a mobile application
C. he tester is evaluating a thick client application
D. he tester is creating a threat model
View answer
Correct Answer: D
Question #14
A tester enumerated a firewall policy and now needs to stage and exfiltrate data captured from the engagement. Given the following firewall policy:Action | SRC| DEST| --Block | 192.168.10.0/24 : 1-65535 | 10.0.0.0/24 : 22 | TCP Allow | 0.0.0.0/0 : 1-65535 | 192.168.10.0/24:443 | TCP Allow | 192.168.10.0/24 : 1-65535 | 0.0.0.0/0:443 | TCP Block | . | . | *Which of the following commands should the tester try next?
A. tar -zcvf /tmp/data
B. gzip /path/to/data && cp data
C. gzip /path/to/data && nc -nvlk 443; cat data
D. tar -zcvf /tmp/data
View answer
Correct Answer: A
Question #15
[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 #16
A penetration tester reviews a SAST vulnerability scan report. The following lines of code have been reported as vulnerable:Issue 40 of 126Language: JavaSeverity: MediumCall:try {// ...} catch (SomeException e) {e.printStackTrace();}Which of the following is the best method to remediate this vulnerability?
A. Implementing a logging framework
B. Removing the five code lines reported with issues
C. Initiating a secure coding-awareness program with all the developers
D. Documenting the vulnerability as a false positive
View answer
Correct Answer: A
Question #17
A penetration tester conducts OSINT for a client and discovers the robots.txt file explicitly blocks a major search engine.
A. Modifying the WAF
B. Utilizing a CSRF attack
C. Changing the robots
D. Leveraging a competing provider
View answer
Correct Answer: D
Question #18
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 #19
[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 #20
[Attacks and Exploits]During a security assessment, a penetration tester gains access to an internal server and manipulates some data to hide its presence.Which of the following is the best way for the penetration tester to hide the activities performed?
A. Clear the Windows event logs
B. Modify the system time
C. Alter the log permissions
D. Reduce the log retention settings
View answer
Correct Answer: A
Question #21
A pentester assigned to a bank must ensure that sensitive information is kept confidential throughout the engagement; which contractual document enforces this requirement?
A. Non-disclosure Agreement (NDA)
B. Master Service Agreement (MSA)
C. Statement of Work (SoW)
D. Service Level Agreement (SLA)
View answer
Correct Answer: A
Question #22
A penetration testing team needs to determine whether it is possible to disrupt the wireless communications for PCs deployed in the client's offices. Which of the following techniques should the penetration tester leverage?
A. Port mirroring
B. Sidecar scanning
C. ARP poisoning
D. Channel scanning
View answer
Correct Answer: D
Question #23
[Attacks and Exploits]As part of a security audit, a penetration tester finds an internal application that accepts unexpected user inputs, leading to the execution of arbitrary commands.Which of the following techniques would the penetration tester most likely use to access the sensitive data?
A. Logic bomb
B. SQL injection
C. Brute-force attack
D. Cross-site scripting
View answer
Correct Answer: B
Question #24
[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 #25
[Attacks and Exploits]During a penetration test, a tester captures information about an SPN account. Which of thefollowing attacks requires this information as a prerequisite to proceed?
A. olden Ticket
B. erberoasting
C. CShadow
D. SASS dumping
View answer
Correct Answer: B
Question #26
While performing a penetration test, a tester executes the following command: PS c:\tools> c:\hacks\PsExec.exe \\server01.cor.ptia.org -accepteula cmd.exe Which of the following best explains what the tester is trying to do? PsExec is a Windows Sysinternals tool that allows users to execute commands on a remote system without needing an interactive login session. The command above is executing cmd.exe on a remote Windows Active Directory domain machine (server01.cor.ptia.org). Option A (Test connectivity using PsExec) : The command does not check connectivity; it executes a command remotely. Option B (Perform a lateral movement attack) : Correct. Lateral movement occurs when an attacker moves from one compromised machine to another within a network, using valid credentials. PsExec is often used for this purpose. Option C (Send the PsExec binary) : The command runs cmd.exe remotely, but it does not transfer PsExec itself. Option D (Enable cmd.exe) : cmd.exe is already enabled by default on most Windows systems. Reference: CompTIA PenTest+ PT0-003 Official Guide -- Lateral Movement with PsExec
A. Test connectivity using PsExec on the server01 using cmd
B. Perform a lateral movement attack using PsExec
C. Send the PsExec binary file to the server01 using cmd
D. Enable cmd
View answer
Correct Answer: B
Question #27
A penetration tester gained a foothold within a network. The penetration tester needs to enumerate all users within the domain. Which of the following is the best way to accomplish this task? Comprehensive and Detailed Explanation From Exact Extract: net.exe is the classic Windows networking utility that includes commands for enumerating domain resources and accounts from a compromised host where the tester has any authenticated domain context. Typical commands used by penetration testers to enumerate domain users with net.exe include: net user /domain --- lists domain user accounts (name and some properties). net group 'Domain Users' /domain --- lists members of the Domain Users group. net view /domain --- lists computers in the domain (useful to find targets for further enumeration). Why net.exe is the best option here: It is installed by default on Windows systems and works with the current authenticated domain credentials (common after gaining a foothold). It provides a quick, low-noise way to enumerate user accounts and groups without requiring additional tooling or elevated privileges beyond an authenticated domain user. Results can be scripted and parsed for further enumeration and pivoting. Why the other options are not appropriate: A . pwd.exe --- Not a standard Windows tool for domain enumeration (and not present by default). C . sc.exe --- Service Controller tool for managing services; not used to enumerate domain users. D . msconfig.exe --- System configuration GUI utility for startup/services; not for domain account enumeration. Related alternatives (contextual, commonly used in pentests): dsquery user -limit 0 (on systems with RSAT/AD tools) to query AD directly. Get-ADUser -Filter * (PowerShell, requires the ActiveDirectory module and appropriate rights). Tools like PowerView (PowerShell) or BloodHound (collection phase) can provide richer AD enumeration, but net.exe is the simplest built-in option to enumerate domain users from an authenticated foothold. CompTIA PT0-003 Objective Mapping (summary): Domain 2.0 Information Gathering and Vulnerability Scanning --- enumerate network and Active Directory objects using native tools and scripts (e.g., net.exe for domain user enumeration).
A. pwd
B. net
C. sc
D. msconfig
View answer
Correct Answer: B
Question #28
A penetration tester cannot find information on the target company's systems using common OSINT methods. The tester's attempts to do reconnaissance against internet-facing resources have been blocked by the company's WAF. Which of the following is the best way to avoid the WAF and gather information about the target company's systems?
A. HTML scraping
B. Code repository scanning
C. Directory enumeration
D. Port scanning
E. Reveal Answer
View answer
Correct Answer: B
Question #29
[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 #30
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. Preserving artifacts
B. Reverting configuration changes
C. Keeping chain of custody
D. Exporting credential data
View answer
Correct Answer: A
Question #31
[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 #32
During a penetration testing engagement, a tester targets the internet-facing services used by the client. Which of the following describes the type of assessment that should be considered in this scope of work?
A. Segmentation
B. Mobile
C. External
D. Web
E. Reveal Answer
View answer
Correct Answer: C
Question #33
A tester enumerated a firewall policy and now needs to stage and exfiltrate data captured from the engagement. Given the following firewall policy Action | SRC | DEST | - - Block | 192.168.10.0/24 1 - 65535 | 10.0.0.0/24 22 | TCP Allow | 0.0.0.0/0 1 - 65535 | 192.168.10.0/24443 | TCP Allow | 192.168.10.0/24 1 - 65535 | 0.0.0.0/0443 | TCP Block | . | . | * Which of the following commands should the tester try next?
A. tar - zcvf /tmp/data
B. gzip /path/to/data && cp data
C. gzip /path/to/data && nc - nvlk 443; cat data
D. tar - zcvf /tmp/data
View answer
Correct Answer: A
Question #34
[Tools and Code Analysis]Before starting an assessment, a penetration tester needs to scan a Class B IPv4 network for open ports in a short amount of time.Which of the following is the best tool for this task?
A. Burp Suite
B. masscan
C. Nmap
D. hping
View answer
Correct Answer: B
Question #35
[Attacks and Exploits]During an assessment, a penetration tester exploits an SQLi vulnerability.Which of the following commands would allow the penetration tester to enumerate password hashes?
A. sqlmap -u www
B. sqlmap -u www
C. sqlmap -u www
D. sqlmap -u www
View answer
Correct Answer: B
Question #36
During an internal penetration test, a tester compromises a Windows OS-based endpoint and bypasses the defensive mechanisms. The tester also discovers that the endpoint is part of an Active Directory (AD) local domain.The tester's main goal is to leverage credentials to authenticate into other systems within the Active Directory environment.Which of the following steps should the tester take to complete the goal?
A. Use Mimikatz to collect information about the accounts and try to authenticate in other systems
B. Use Hashcat to crack a password for the local user on the compromised endpoint
C. Use Evil-WinRM to access other systems in the network within the endpoint credentials
D. Use Metasploit to create and execute a payload and try to upload the payload into other systems
View answer
Correct Answer: A
Question #37
A penetration tester successfully phishes a user and compromises a domain-joined endpoint. The tester enumerates the domain controller and discovers that Group Policy Preferences are in use. The tester also finds that the version of the domain controllers is Windows Server 2012. The tester wants to use the fastest possible method of pivoting successfully to multiple production servers joined to the domain. Which of the following is the best way to achieve this goal?
A. un Hydra to password spray any dumped credentials from the initial host across subnets
B. can the domain controller and locate an RCE using a Metasploit module with a reverse shell
C. se BloodHound to look for escalation paths against the AD environment
D. ind the SYSVOL share for hashes with findstr /i and decrypt using the published key
View answer
Correct Answer: D
Question #38
[Attacks and Exploits]A penetration tester gains initial access to an endpoint and needs to execute a payload to obtain additional access.Which of the following commands should the penetration tester use?
A. powershell
B. certutil
C. powershell
D. rundll32
View answer
Correct Answer: B
Question #39
[Attacks and Exploits]A penetration tester gains initial access to an endpoint and needs to execute a payload to obtain additional access.Which of the following commands should the penetration tester use?
A. powershell
B. certutil
C. powershell
D. rundll32
View answer
Correct Answer: B
Question #40
A penetration tester wants to create a malicious QR code to assist with a physical security assessment.
A. BeEF
B. John the Ripper
C. ZAP
D. Evilginx
View answer
Correct Answer: A
Question #41
A penetration tester wants to send a specific network packet with custom flags and sequence numbers to a vulnerable target. Which of the following should the tester use?
A. tcprelay
B. Bluecrack
C. Scapy
D. tcpdump
View answer
Correct Answer: C
Question #42
Which of the following elements in a lock should be aligned to a specific level to allow the key cylinder to turn?
A. Latches
B. Pins
C. Shackle
D. Plug
View answer
Correct Answer: B
Question #43
A penetration tester is performing network reconnaissance. The tester wants to gather information about the network without causing detection mechanisms to flag the reconnaissance activities. Which of the following techniques should the tester use?
A. Sniffing
B. Banner grabbing
C. TCP/UDP scanning
D. Ping sweeps
View answer
Correct Answer: A
Question #44
[Attacks and Exploits]A penetration tester gains initial access to an endpoint and needs to execute a payload to obtain additional access.Which of the following commands should the penetration tester use?
A. powershell
B. certutil
C. powershell
D. rundll32
View answer
Correct Answer: B
Question #45
During a security assessment, a penetration tester gains access to an internal server and manipulates some data to hide its presence. Which of the following is the best way for the penetration tester to hide the activities performed?
A. Clear the Windows event logs
B. Modify the system time
C. Alter the log permissions
D. Reduce the log retention settings
View answer
Correct Answer: A
Question #46
[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 #47
A penetration testing team needs to determine whether it is possible to disrupt the wireless communications for PCs deployed in the client's offices. Which of the following techniques should the penetration tester leverage?
A. ort mirroring
B. idecar scanning
C. RP poisoning
D. hannel scanning
View answer
Correct Answer: D
Question #48
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 #49
[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 #50
A penetration tester is authorized to perform a DoS attack against a host on a network.
A. MDK4
B. Smurf attack
C. FragAttack
D. SYN flood
View answer
Correct Answer: D

View The Updated CompTIA Exam Questions

SPOTO Provides 100% Real CompTIA Exam Questions for You to Pass Your CompTIA Exam!

View Answers after Submission

Please submit your email and WhatsApp to get the answers of questions.

Note: Please make sure your email ID and Whatsapp are valid so that you can get the correct exam results.

Email:
Whatsapp/phone number:
Contact Us