Free PT0-003 Practice Test Questions and Answers (2026)

View Mode
Q: 1

[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}; do 3 ping -c 1 -W 1 $network_addr.$h > /dev/null 4 if [ $? -eq 0 ]; then 5 echo "Host $h is up" 6 else 7 echo "Host $h is down" 8 fi 9 done

Which of the following should the tester do to modify the script?

Options
30 comments in the community discussion
1
Option C, saw basically the same thing in a mock. Portability always comes up with these scripts.
1
C here. Using seq instead of brace expansion makes the script work in more shells, not just Bash. I saw a similar question in practice banks, always about portability. Pretty sure that's what they want but correct me if you think otherwise.
Q: 2
[Information Gathering and Vulnerability Scanning] A penetration tester is configuring a vulnerability management solution to perform credentialed scans of an Active Directory server. Which of the following account types should the tester provide to the scanner?
Options
27 comments in the community discussion
2
I thought A (read-only) since it's credentialed, and usually you want least privilege for scans. Not totally sure though.
2
B, is what you need for full credentialed scans on AD. Saw something similar in a practice test.
Q: 3
[Attacks and Exploits] Which of the following activities should be performed to prevent uploaded web shells from being exploited by others?
Options
39 comments in the community discussion
5
Makes sense to pick A here. Removing any persistence mechanisms stops others from exploiting the web shell. I've seen similar on other practice tests, so pretty confident that's what they're after in this question. Disagree?
2
Option A is the way to actually prevent further abuse. Removing persistence mechanisms like web shells will stop attackers from getting back in. Preserving artifacts (C) is about evidence, not prevention. Pretty sure the test wants A here, but open for discussion.
Q: 4
[Attacks and Exploits] During a security assessment, a penetration tester wants to compromise user accounts without triggering IDS/IPS detection rules. Which of the following is the most effective way for the tester to accomplish this task?
Options
26 comments in the community discussion
4
Option A
1
Seen similar in practice tests, pretty sure it's C for bypassing authentication without brute network attempts. The CompTIA book covers this strategy.
Q: 5
[Reporting and Communication] Which of the following components should a penetration tester include in the final assessment report?
Options
28 comments in the community discussion
2
D . The attack narrative connects the technical findings to real-world risks, showing how vulnerabilities were chained during the pentest. That’s pretty much standard for a complete final report. Customer remediation plan (B) might show up as an extra, but it’s not core in every assessment.
1
I don’t think it’s B. D fits since the attack narrative is always standard, while remediation plans are more variable.
Q: 6
[Attacks and Exploits] A penetration tester aims to exploit a vulnerability in a wireless network that lacks proper encryption. The lack of proper encryption allows malicious content to infiltrate the network. Which of the following techniques would most likely achieve the goal?
Options
27 comments in the community discussion
2
Its A, had something like this in a mock and packet injection was correct.
2
B
Q: 7
[Information Gathering and Vulnerability Scanning] During an assessment, a penetration tester plans to gather metadata from various online files, including pictures. Which of the following standards outlines the formats for pictures, audio, and additional tags that facilitate this type of reconnaissance?
Options
32 comments in the community discussion
1
B
A
Q: 8

[Information Gathering and Vulnerability Scanning] 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?

Options
27 comments in the community discussion
3
Option A saw this on a practice test. It collects user accounts, open ports, and config files so it's more complete.
2
A . It grabs user accounts (cat /etc/passwd), network services (netstat -tuln), and config files all in one go, which matches what you'd call comprehensive enumeration. B is good but misses key details like service listings. Open to pushback if someone thinks bash.bashrc isn't needed though.
Q: 9
[Reporting and Communication] Which of the following elements of a penetration test report can be used to most effectively prioritize the remediation efforts for all the findings?
Options
32 comments in the community discussion
6
C. risk score is always used for prioritization. Detailed findings list doesn't actually rank the issues.
6
Option C solid question clarity here. Risk score lets you tackle what matters first.
Q: 10
[Information Gathering and Vulnerability Scanning] A penetration tester completed OSINT work and needs to identify all subdomains for mydomain.com. Which of the following is the best command for the tester to use?
Options
27 comments in the community discussion
3
Option D B is tempting but crunch won't give realistic subdomains, D's wordlist method is how it's done on exams.
1
D imo. You want a real subdomain wordlist for best coverage, so piping through xargs to dig each entry is standard in recon. B could work but crunch spits out random chars instead of meaningful names. Not 100 percent sure if exam writers would ever expect C, but D just matches actual pentest workflow more closely. Agre
Q: 11

SIMULATION

-


A penetration tester has been provided with only the public domain name and must enumerate additional information for the public-facing assets.



INSTRUCTIONS

-


Select the appropriate answer(s), given the output from each section.


If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question

Your Answer
10 comments in the community discussion
8
Really like how direct this setup is!theharvester, dig/nslookup 8.8.8.8, amazon, LocalComputerPro's, 1993-09-22T04:00:38Z
5
Had something like this in a mock-Amazon for hosting, LocalComputerPro's as registrar, 1993-09-22T04:00:38Z for registration date.
Q: 12

[Attacks and Exploits] You are a penetration tester running port scans on a server. INSTRUCTIONS Part 1: Given the output, construct the command that was used to generate this output from the available options. Part 2: Once the command is appropriately constructed, use the given output to identify the potential attack vectors that should be investigated further. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question

Your Answer
8 comments in the community discussion
5
Shouldn't the command have -top-ports=100 instead of -top-ports=100? Also, with ports 139 and 445 open, I'd definitely look into SMB null sessions and weak file share permissions.
Nah, pretty sure it should be NMAP -sV -O -top-ports=100 192.168.2.2 for part 1, not the double dash version.
Q: 13

[Information Gathering and Vulnerability Scanning] A penetration tester performs several Nmap scans against the web application for a client. INSTRUCTIONS Click on the WAF and servers to review the results of the Nmap scans. Then click on each tab to select the appropriate vulnerability and remediation options. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question

Your Answer
9 comments in the community discussion
6
Did you check the official CompTIA Pentest+ objectives and run through scenario-based labs for this type of WAF bypass question?
4
Bypass the WAF to communicate directly with app server, then restrict direct access and require custom authentication header.
Q: 14

HOTSPOT [Information Gathering and Vulnerability Scanning] A penetration tester is performing reconnaissance for a web application assessment. Upon investigation, the tester reviews the robots.txt file for items of interest. INSTRUCTIONS Select the tool the penetration tester should use for further investigation. Select the two entries in the robots.txt file that the penetration tester should recommend for removal. CompTIA Pentest+ PT0-003 question

Your Answer
9 comments in the community discussion
4
WPScan is the way to go since it's tailored for WordPress stuff. For removal, I’d pick the ALLOW: /ADMIN and ALLOW: /WP-ADMIN entries because they give away admin paths. Pretty sure that’s right based on similar practice questions.
3
WPScan for the tool, and those ALLOW: /ADMIN and ALLOW: /WP-ADMIN entries should be out. Robots.txt exposing admin paths is a classic info disclosure. Pretty sure that's what CompTIA wants here, but open to other takes if I'm missing something.
Q: 15

HOTSPOT -You are a security analyst tasked with hardening a web server. You have been given a list of HTTP payloads that were flagged as malicious.

INSTRUCTION - Giving the following attack signatures, determine the attack type, and then identify the associated remediation to prevent the attack in the future. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. Hot Area:

Your Answer
10 comments in the community discussion
6
Kinda tricky if you miss that file inclusion and command injection both usually show up, but the right mitigation flips for each. For command injection, just sanitizing input isn't enough, so blocking external system calls is needed. Seen exam reports flag that mismatch a lot. Agree?
2
Makes sense, the match between each payload type and remediation lines up with standard hardening controls. Stuff like parameterized queries for SQLi and input sanitization for XSS are pretty much textbook. Saw similar groupings in practice sets so I think this is right.
Q: 16

[Attacks and Exploits] A previous penetration test report identified a host with vulnerabilities that was successfully exploited. Management has requested that an internal member of the security team reassess the host to determine if the vulnerability still exists. CompTIA Pentest+ PT0-003 question Part 1: . Analyze the output and select the command to exploit the vulnerable service. Part 2: . Analyze the output from each command. · Select the appropriate set of commands to escalate privileges. · Identify which remediation steps should be taken. CompTIA Pentest+ PT0-003 question

Your Answer
12 comments in the community discussion
6
Which command would you use first to attack the SSH service on 192.168.10.2 as lowpriv?
4
Yeah, that's the classic ssh brute with hydra against lowpriv, then privilege escalation through SUID cp to /etc/passwd. Tighten the lowpriv password and drop SUID on cp are the fixes. Pretty standard stuff.
Q: 17

[Attacks and Exploits] SIMULATION Using the output, identify potential attack vectors that should be further investigated. CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question

Your Answer
13 comments in the community discussion
6
Not FTP or SNMP here, those ports aren’t open based on the Nmap scan. Pretty sure it’s null session enumeration and weak SMB file permissions since SMB (139/445) is exposed. Wouldn’t focus on other vectors from these results.
5
Yeah, those ports (139/445) scream SMB risks to me. I'd say null session enumeration plus weak SMB file permissions should be looked at. That combo is classic for older systems based on the scan. Pretty sure that's what they're testing for but let me know if you see something else.
Q: 18

DRAG DROP [Tools and Code Analysis] You are a penetration tester reviewing a client’s website through a web browser. INSTRUCTIONS Review all components of the website through the browser to determine if vulnerabilities are present. Remediate ONLY the highest vulnerability from either the certificate, source, or cookies. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question CompTIA Pentest+ PT0-003 question

Drag & Drop
11 comments in the community discussion
6
Generate CSR, then Submit to CA, Install cert, finally Remove old cert. Had something like this in a mock and that mapping was correct.
5
I think the right order to fix the expired cert is:1. Generate a CSR2. Submit CSR to CA3. Install the re-issued cert4. Remove old certificate.I saw something similar in practice questions, but not 100 percent sure. Can someone confirm?
Q: 19
A penetration tester has discovered sensitive files on a system. Assuming exfiltration of the files is part of the scope of the test, which of the following is most likely to evade DLP systems?
Options
10 comments in the community discussion
1
Honestly I'd pick D here. Hashing before emailing might confuse some DLP tools.
1
Probably A. Seen similar in practice questions and official guide coverage, DNS tunneling with encoding flies under most DLP setups. Recommend checking the exam objectives and lab sim resources if you want extra context on exfil methods.
Q: 20

[Information Gathering and Vulnerability Scanning] During a penetration test, the tester uses a vulnerability scanner to collect information about any possible vulnerabilities that could be used to compromise the network. The tester receives the results and then executes the following command:

snmpwalk -v 2c -c public 192.168.1.23

Which of the following is the tester trying to do based on the command they used?

Options
8 comments in the community discussion
6
D . Running snmpwalk right after a scan is classic for checking if a vulnerability is legit, especially with that public community string. It's not exploiting, just confirming the finding. Makes sense to me-anyone see it differently?
4
Option D not C. Using snmpwalk here is about checking the vulnerability flagged in the scan, not exploiting it.
Question 1 of 20

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE