PT0-002 Exam Details

  • Exam Code
    :PT0-002
  • Exam Name
    :CompTIA PenTest+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :455 Q&As
  • Last Updated
    :May 31, 2026

CompTIA PT0-002 Online Questions & Answers

  • Question 251:

    A company has hired a penetration tester to deploy and set up a rogue access point on the network.

    Which of the following is the BEST tool to use to accomplish this goal?

    A. Wireshark
    B. Aircrack-ng
    C. Kismet
    D. Wifite

  • Question 252:

    Which of the following tools would help a penetration tester locate a file that was uploaded to a content management system?

    A. DirBuster
    B. Open VAS
    C. Scout Suite
    D. CeWL

  • Question 253:

    After obtaining a reverse shell connection, a penetration tester runs the following command: www-data@server!2:sudo -1

    User www-data may run the following commands on serverl2: (root) NOPASSWD: /usr/bin/vi

    Which of the following is the fastest way to escalate privileges on this server?

    A. Editing the file /etc/passwd to add a new user with uid0
    B. Creating a Bash script, saving it on the /tmp folder, andthen running it
    C. Executing the command sudo vi -c ' Jbash'
    D. Editing the file/etc/sudoers to allow any command

  • Question 254:

    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. Output 1

    A. Check the answer in explanation.
    B. PlaceHolder
    C. PlaceHolder
    D. PlaceHolder

  • Question 255:

    A penetration tester who is performing a physical assessment of a company's security practices notices the company does not have any shredders inside the office building. Which of the following techniques would be BEST to use to gain confidential information?

    A. Badge cloning
    B. Dumpster diving
    C. Tailgating
    D. Shoulder surfing

  • Question 256:

    A penetration tester wants to scan a target network without being detected by the client's IDS. Which of the following scans is MOST likely to avoid detection?

    A. nmap -P0 -T0 -sS 192.168.1.10
    B. nmap -sA -sV --host-timeout 60 192.168.1.10
    C. nmap -f --badsum 192.168.1.10
    D. nmap -A -n 192.168.1.10

  • Question 257:

    A penetration tester is validating whether input validation mechanisms have been implemented in a web application. Which of the following should the tester use to determine whether the application is vulnerable to path traversal attacks?

    A. GET /image?filename-..%2f..%2f..%2f..%2f..%2f..%2fetc%2fhosts
    B. GET /image?filename=lefitfe;pwd
    C. POST /image?filename -
    D. POST /image?filename =yhtak;ncat --ssl 192.168.0.1 2222

  • Question 258:

    Which of the following BEST describe the OWASP Top 10? (Choose two.)

    A. The most critical risks of web applications
    B. A list of all the risks of web applications
    C. The risks defined in order of importance
    D. A web-application security standard
    E. A risk-governance and compliance framework
    F. A checklist of Apache vulnerabilities

  • Question 259:

    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 260:

    An exploit developer is coding a script that submits a very large number of small requests to a web server until the server is compromised. The script must examine each response received and compare the data to a large number of strings to determine which data to submit next.

    Which of the following data structures should the exploit developer use to make the string comparison and determination as efficient as possible?

    A. A list
    B. A tree
    C. A dictionary
    D. An array

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.