CompTIA PenTest+

Free PT0-003 practice test Page 5

Free PT0 003 practice questions, each with the answer and an explanation. No sign-up needed.

  • 361Answers explainedWhy each answer is right
  • Real exam styleScenario-based questions
  • 5Study by topicFocus on your weak areas
  • Updated23-Nov-2026
Topic · 44 of 148 questions freeAttacks and Exploits
Question 41 Choose 2
Which of the following technologies is most likely used with badge cloning? (Select two).
Question 42 Choose 1
A penetration tester finds that an application responds with the contents of the /etc/passwd file when the following payload is sent:

xml
Copy code


]>
&foo;

Which of the following should the tester recommend in the report to best prevent this type of vulnerability?
Question 43 Choose 1
During a red-team exercise, a penetration tester obtains an employee's access badge. The tester uses the badge’s information to create a duplicate for unauthorized entry. Which of the following best describes this action?
Question 44 Choose 1
A penetration tester gains access to the target network and observes a running SSH server. Which of the following techniques should the tester use to obtain the version of SSH running on the target server?
Question 45 Choose 1
During an assessment, a penetration tester sends the following request: POST /services/v1/users/create HTTP/1.1 Host: target-application.com Content-Type: application/json Content-Length: [dynamic] Authorization: Bearer (FUZZ) Which of the following attacks is the penetration tester performing?
Question 46 Choose 1
1) #!/bin/bash

2) for i in {1..254}; do

3) ping -c1 192.168.1.$i

4) done

The 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?
Question 47 Choose 1
A penetration testing team wants to conduct DNS lookups for a set of targets provided by the client. The team crafts a Bash script for this task. However, they find a minor error in one line of the script:

1) #!/bin/bash
2) for i in $(cat example.txt); do
3) curl $i
4) done

Which of the following changes should the team make to line 3 of the script?
Topic · 23 of 78 questions freeInformation Gathering and Vulnerability Scanning
Question 48 Choose 1
A penetration tester observes the following output from an Nmap command while attempting to troubleshoot connectivity to a Linux server:
Starting Nmap 7.91 ( https://nmap.org ) at 2024-01-10 12:00 UTC
Nmap scan report for example.com (192.168.1.10)
Host is up (0.001s latency).
Not shown: 9999 closed ports
PORT STATE SERVICE
21/tcp open ftp
80/tcp open http
135/tcp open msrpc
139/tcp open netbios-ssn
443/tcp open https
2222/tcp open ssh
444/tcp open microsoft-ds
Nmap done: 1 IP address (1 host up) scanned in 0.23 seconds

Which of the following is the most likely reason for the connectivity issue?
Question 49 Choose 1
A penetration tester runs a vulnerability scan that identifies several issues across numerous customer hosts. The executive report outlines the following:

The client is concerned about the availability of its consumer-facing production application. Which of the following hosts should the penetration tester select for additional manual testing?
Question 50 Choose 1
A penetration tester runs a vulnerability scan that identifies several issues across numerous customer hosts. The executive report outlines the following information:

Server High-severity vulnerabilities

1. Development sandbox server 32
2. Back office file transfer server 51
3. Perimeter network web server 14
4. Developer QA server 92

The client is con ble monitoring mode using Aircrack-ng ch of the following hosts should the penetration tester select for additional manual testing?

Practice Like It's Exam Day

Get exam-ready with a timed PT0 003 CompTIA PenTest+ mock exam designed to match the official exam's question format, question count, and time limit.

Take CompTIA PenTest+ Mock Exam
  • Build Exam Endurance Stay focused and perform confidently under exam conditions.
  • Improve Time Management Practice pacing yourself to finish within the time limit.
  • Fresh Questions Every Attempt Experience randomized questions from our extensive question bank.
  • Unlimited Practice Attempts Retake mock exams and improve your score at your own pace.