Free PT0-002 Exam Braindumps (page: 28)

Page 28 of 93

A penetration tester downloaded the following Perl script that can be used to identify vulnerabilities in network switches. However, the script is not working properly.



Which of the following changes should the tester apply to make the script work as intended?

  1. Change line 2 to $ip= ג€10.192.168.254ג€;
  2. Remove lines 3, 5, and 6.
  3. Remove line 6.
  4. Move all the lines below line 7 to the top of the script.

Answer(s): B



A penetration tester finds a PHP script used by a web application in an unprotected internal source code repository. After reviewing the code, the tester identifies the following:



Which of the following combinations of tools would the penetration tester use to exploit this script?

  1. Hydra and crunch
  2. Netcat and cURL
  3. Burp Suite and DIRB
  4. Nmap and OWASP ZAP

Answer(s): B



A penetration tester has obtained root access to a Linux-based file server and would like to maintain persistence after reboot. Which of the following techniques would BEST support this objective?

  1. Create a one-shot system service to establish a reverse shell
  2. Obtain /etc/shadow and brute force the root password.
  3. Run the ncג€"e /bin/sh<ג€¦> command
  4. Move laterally to create a user account on LDAP

Answer(s): A



A penetration tester is conducting a penetration test. The tester obtains a root-level shell on a Linux server and discovers the following data in a file named password.txt in the /home/svsacct directory:

U3VQZXIkM2NyZXQhCg==

Which of the following commands should the tester use NEXT to decode the contents of the file?

  1. echo U3VQZXIkM2NyZXQhCg== | base64 ג€"d
  2. tar zxvf password.txt
  3. hydra ג€"lsvsacctג€"p U3VQZXIkM2NyZXQhCg== ssh://192.168.1.0/24
  4. john --wordlist /usr/share/seclists/rockyou.txt password.txt

Answer(s): A



Page 28 of 93



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

Evan Couture commented on December 03, 2024
These questions are exactly what you will see on exam day, but they are good study. The exam may have questions covering similar objectives, but you will still need to study the material and perform hands on labs to be fully prepared. I used certmaster learn, infosec labs, pentest+ for dummies, pluralsight, wordwall user(markutree has some useful matching exercises), quizlet, and of course this resource. Hope this helps.
Anonymous
upvote

Nate commented on October 04, 2024
I worked really hard to pass this exam. It is a very hard exam. These questions are you best buddy. So use them.
UNITED STATES
upvote

Anon commented on August 01, 2024
Good content and useful practice questions. However I run some of the content against ChatGPT and the accuracy was around 90%. I know ChatGPT is not always correct but 90% match is pretty good to me.
UNITED STATES
upvote

Briyan commented on June 18, 2024
Good for passing the exam with a high mark but not ideal for deep learning. This helped me pass the exam and I got the high mark but I learned very little as they are all questions from the real exam.
UNITED STATES
upvote

anon commented on June 05, 2024
Question 20 regarding SSHD nmap scan doesnt add up. why would you do -sA ack scan?? why not a script or something?
UNITED STATES
upvote

SAJI commented on July 20, 2023
56 question correct answer a,b
Anonymous
upvote

Summer commented on October 04, 2023
looking forward to the real exam
Anonymous
upvote

Summer commented on October 04, 2023
looking forward to the real exam
Anonymous
upvote

Wale commented on August 19, 2023
I am new here , just started going through the questions
EUROPEAN UNION
upvote

Doddy commented on July 31, 2023
I have passed PT0-002, thanks!
Anonymous
upvote

SAJI commented on July 20, 2023
56 question correct answer A,B
Anonymous
upvote

Danny commented on August 12, 2021
Well worth... cheap and very helpful.
UNITED STATES
upvote

Frank commented on July 22, 2021
Focus on these questions and your are going to pass. That is what I did. Good luck guys.
SOUTH AFRICA
upvote