PT0-003 Exam Details

  • Exam Code
    :PT0-003
  • Exam Name
    :CompTIA PenTest+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :404 Q&As
  • Last Updated
    :Jun 09, 2026

CompTIA PT0-003 Online Questions & Answers

  • Question 181:

    A penetration tester needs to test a very large number of URLs for public access. Given the following code snippet:

    1 import requests

    2 import pathlib

    4 for url in pathlib.Path("urls.txt").read_text().split("\n"):

    5 response = requests.get(url)

    6 if response.status == 401:

    7 print("URL accessible")

    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

  • Question 182:

    Which of the following describes the process of determining why a vulnerability scanner is not providing results?

    A. Root cause analysis
    B. Secure distribution
    C. Peer review
    D. Goal reprioritization

  • Question 183:

    A penetration tester successfully clones a source code repository and then runs the following command:

    find . -type f -exec egrep -i "token|key|login" {} \;

    Which of the following is the penetration tester conducting?

    A. Data tokenization
    B. Secrets scanning
    C. Password spraying
    D. Source code analysis

  • Question 184:

    A penetration tester has gained access to the Chief Executive Officer's (CEO's) internal, corporate email.

    The next objective is to gain access to the network.

    Which of the following methods will MOST likely work?

    A. Try to obtain the private key used for S/MIME from the CEO's account.
    B. Send an email from the CEO's account, requesting a new account.
    C. Move laterally from the mail server to the domain controller.
    D. Attempt to escalate privileges on the mail server to gain root access.

  • Question 185:

    During an assessment on a client that uses virtual desktop infrastructure in the cloud, a penetration tester gains access to a host and runs commands. The penetration tester receives the following output:

    -rw-r--r-- 1 comptiauser comptiauser 807 Apr 6 05:32 .profile drwxr-xr-x 2 comptiauser comptiauser 4096 Apr 6 05:32 .ssh

    -rw-r--r-- 1 comptiauser comptiauser 3526 Apr 6 05:32 .bashrc drwxr-xr-x 4 comptiauser comptiauser 4096 May 12 11:05 .aws

    -rw-r--r-- 1 comptiauser comptiauser 1325 Aug 21 19:54 .

    zsh_history drwxr-xr-x 12 comptiauser comptiauser 4096 Aug 27 14:10 Documents drwxr-xr-x 16 comptiauser comptiauser 4096 Aug 27 14:10 Desktop drwxr-xr-x 2 comptiauser comptiauser 4096 Aug 27 14:10 Downloads Which of the following should the penetration tester investigate first?

    A. Documents
    B. .zsh_history
    C. .aws
    D. .ssh

  • Question 186:

    During a security audit, a penetration tester wants to run a process to gather information about a target network's domain structure and associated IP addresses.

    Which of the following tools should the tester use?

    A. Dnsenum
    B. Nmap
    C. Netcat
    D. Wireshark

  • Question 187:

    A tester runs an Nmap scan against a Windows server and receives the following results:

    Nmap scan report for win_dns.local (10.0.0.5) Host is up (0.014s latency) Port State Service 53/tcp open domain 161/tcp open snmp 445/tcp open smb-ds

    3389/tcp open rdp

    Which of the following TCP ports should be prioritized for using hash-based relays?

    A. 53
    B. 161
    C. 445
    D. 3389

  • Question 188:

    A penetration tester performs an assessment on the target company's Kubernetes cluster using kube-hunter.

    Which of the following types of vulnerabilities could be detected with the tool?

    A. Network configuration errors in Kubernetes services
    B. Weaknesses and misconfigurations in the Kubernetes cluster
    C. Application deployment issues in Kubernetes
    D. Security vulnerabilities specific to Docker containers

  • Question 189:

    A penetration tester is researching a path to escalate privileges. While enumerating current user privileges, the tester observes the following output:

    Which of the following privileges should the tester use to achieve the goal?

    A. SeImpersonatePrivilege
    B. SeCreateGlobalPrivilege
    C. SeChangeNotifyPrivilege
    D. SeManageVolumePrivilege

  • Question 190:

    A tester obtains access to an endpoint subnet and wants to move laterally in the network. Given the following output:

    Nmap scan report for some_host

    Host is up (0.01s latency).

    PORT STATE SERVICE

    445/tcp open microsoft-ds

    Host script results:

    smb2-security-mode:

    Message signing disabled

    Which of the following command and attack methods is the most appropriate for reducing the chances of being detected?

    A. responder -I eth0 -dwv && ntlmrelayx.py -smb2support -tf <target>
    B. msf > use exploit/windows/smb/ms17_010_psexec msf > set <options> msf > run
    C. hydra -L administrator -P /path/to/passwdlist smb://<target>
    D. nmap --script smb-brute.nse -p 445 <target>

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PT0-003 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.