Updated Dec-2024 PT0-002 Exam Practice Test Questions [Q184-Q200]

Share

Updated Dec-2024 PT0-002 Exam Practice Test Questions

Verified PT0-002 dumps Q&As 100% Pass in First Attempt Guaranteed Updated Dump


CompTIA PT0-002 exam focuses on various domains of penetration testing, including planning and scoping, information gathering and vulnerability identification, attacks, and exploits, and reporting and communication. The test-takers must have in-depth knowledge of different testing tools, techniques, and methodologies used to identify and exploit vulnerabilities in the target systems. They should have good communication and interpersonal skills to interact with the stakeholders regarding the vulnerabilities detected and provide guidance on remediation and mitigation plans.

 

NEW QUESTION # 184
A penetration tester captured the following traffic during a web-application test:

Which of the following methods should the tester use to visualize the authorization information being transmitted?

  • A. Decrypt the authorization header using bcrypt.
  • B. Decode the authorization header using UTF-8.
  • C. Decrypt the authorization header using AES.
  • D. Decode the authorization header using Base64.

Answer: D


NEW QUESTION # 185
During a vulnerability scanning phase, a penetration tester wants to execute an Nmap scan using custom NSE scripts stored in the following folder:
/home/user/scripts

Which of the following commands should the penetration tester use to perform this scan?

  • A. nmap script default safe
  • B. nmap -load /home/user/scripts
  • C. nmap resume "not intrusive"
  • D. nmap script /home/user/scripts

Answer: D

Explanation:
The Nmap command in the question aims to use custom NSE scripts stored in a specific folder. The correct syntax for this option is to use the script argument followed by the path to the folder. The other commands are either invalid, use the wrong argument, or do not specify the folder path. Reference: Best PenTest+ certification study resources and training materials, CompTIA PenTest+ PT0-002 Cert Guide, 101 Labs - CompTIA PenTest+: Hands-on Labs for the PT0-002 Exam


NEW QUESTION # 186
When preparing for an engagement with an enterprise organization, which of the following is one of the MOST important items to develop fully prior to beginning the penetration testing activities?

  • A. Interview all stakeholders.
  • B. Identify all third parties involved.
  • C. Obtain an asset inventory from the client.
  • D. Clarify the statement of work.

Answer: D

Explanation:
Explanation
Clarifying the statement of work is one of the most important items to develop fully prior to beginning the penetration testing activities, as it defines the scope, objectives, deliverables, and expectations of the engagement. The statement of work is a formal document that outlines the agreement between the penetration tester and the client and serves as a reference for both parties throughout the engagement. It should include details such as the type, duration, and frequency of testing, the target systems and networks, the authorized methods and tools, the reporting format and schedule, and any legal or ethical considerations.


NEW QUESTION # 187
A CentOS computer was exploited during a penetration test. During initial reconnaissance, the penetration tester discovered that port 25 was open on an internal Sendmail server. To remain stealthy, the tester ran the following command from the attack machine:

Which of the following would be the BEST command to use for further progress into the targeted network?

  • A. ssh 127.0.0.1 5555
  • B. nc 127.0.0.1 5555
  • C. ssh 10.10.1.2
  • D. nc 10.10.1.2

Answer: B


NEW QUESTION # 188
A penetration tester ran a simple Python-based scanner. The following is a snippet of the code:

Which of the following BEST describes why this script triggered a `probable port scan` alert in the organization's IDS?

  • A. Line 6 uses socket.SOCK_STREAM instead of socket.SOCK_DGRAM
  • B. sock.settimeout(20) on line 7 caused each next socket to be created every 20 milliseconds.
  • C. The remoteSvr variable has neither been type-hinted nor initialized.
  • D. *range(1, 1025) on line 1 populated the portList list in numerical order.

Answer: D

Explanation:
Explanation
Port randomization is widely used in port scanners. By default, Nmap randomizes the scanned port order (except that certain commonly accessible ports are moved near the beginning for efficiency reasons)
https://nmap.org/book/man-port-specification.html


NEW QUESTION # 189
A CentOS computer was exploited during a penetration test. During initial reconnaissance, the penetration tester discovered that port 25 was open on an internal Sendmail server. To remain stealthy, the tester ran the following command from the attack machine:

Which of the following would be the BEST command to use for further progress into the targeted network?

  • A. ssh 127.0.0.1 5555
  • B. nc 127.0.0.1 5555
  • C. ssh 10.10.1.2
  • D. nc 10.10.1.2

Answer: B


NEW QUESTION # 190
A company is concerned that its cloud service provider is not adequately protecting the VMs housing its software development. The VMs are housed in a datacenter with other companies sharing physical resources. Which of the following attack types is MOST concerning to the company?

  • A. Data flooding
  • B. Cybersquatting
  • C. Side channel
  • D. Session riding

Answer: D


NEW QUESTION # 191
In Java and C/C++, variable initialization is critical because:

  • A. the compiler will assign null to the variable, which will cause warnings and errors.
  • B. the initial state of the variable creates a race condition.
  • C. the unknown value, when used later, will cause unexpected behavior.
  • D. the variable will not have an object type assigned to it.

Answer: C

Explanation:
Variable initialization is the process of assigning a value to a variable at the time of declaration. In Java and C/C++, variable initialization is critical because if a variable is not initialized, it may contain a garbage value that is unpredictable and may lead to erroneous results or runtime errors when the variable is used later in the program. For example, if a variable is used in a mathematical expression or a conditional statement, the outcome may depend on the value of the variable. If the variable is not initialized, the outcome may be different each time the program is run, or the program may crash due to an invalid operation. Therefore, it is a good practice to always initialize variables before using them, or to check if they have been initialized before using them123. References:
*Different Ways to Initialize a Variable in C++, GeeksforGeeks article by Anshul Aggarwal
*Static variable initialization?, Stack Overflow answer by Pawe Hajdan
*A Guide to Java Initialization, Baeldung article by Eugen Paraschiv


NEW QUESTION # 192
A security engineer is trying to bypass a network IPS that isolates the source when the scan exceeds 100 packets per minute. The scope of the scan is to identify web servers in the 10.0.0.0/16 subnet.
Which of the following commands should the engineer use to achieve the objective in the least amount of time?

  • A. nmap -T3 -p 80 10.0.0.0/16 -- max-hostgroup 100
  • B. nmap -T4 -p 80 10.0.0.0/16 -- max-rate 60
  • C. nmap -T5 -p 80 10.0.0.0/16 -- min-rate 80
  • D. nmap -TO -p 80 10.0.0.0/16

Answer: B

Explanation:
The nmap -T4 -p 80 10.0.0.0/16 -- max-rate 60 command is used to scan the 10.0.0.0/16 subnet for web servers (port 80) at a maximum rate of 60 packets per minute. The -T4 option sets the timing template to
"aggressive", which speeds up the scan. The --max-rate option limits the number of packets sent per second, helping to bypass the network IPS that isolates the source when the scan exceeds 100 packets per minute12.
References: Nmap commands


NEW QUESTION # 193
A penetration tester attempted a DNS poisoning attack. After the attempt, no traffic was seen from the target machine. Which of the following MOST likely caused the attack to fail?

  • A. The injection was too slow.
  • B. The DNS cache was not refreshed.
  • C. The client did not receive a trusted response.
  • D. The DNS information was incorrect.

Answer: B

Explanation:
Explanation
A DNS poisoning attack is an attack that exploits a vulnerability in the DNS protocol or system to redirect traffic from legitimate websites to malicious ones. A DNS poisoning attack works by injecting false DNS records into a DNS server or resolver's cache, which is a temporary storage of DNS information. However, if the DNS cache was not refreshed, then the attack would fail, as the target machine would still use the old and valid DNS records from its cache. The other options are not likely causes of the attack failure.


NEW QUESTION # 194
Which of the following is a regulatory compliance standard that focuses on user privacy by implementing the right to be forgotten?

  • A. NIST SP 800-53
  • B. GDPR
  • C. ISO 27001

Answer: B

Explanation:
GDPR is a regulatory compliance standard that focuses on user privacy by implementing the right to be forgotten. GDPR stands for General Data Protection Regulation, and it is a law that applies to the European Union and the United Kingdom. GDPR gives individuals the right to request their personal data be deleted by data controllers and processors under certain circumstances, such as when the data is no longer necessary, when the consent is withdrawn, or when the data was unlawfully processed. GDPR also imposes other obligations and rights related to data protection, such as data minimization, data portability, data breach notification, and consent management. The other options are not regulatory compliance standards that focus on user privacy by implementing the right to be forgotten. NIST SP 800-53 is a set of security and privacy controls for federal information systems and organizations in the United States. ISO 27001 is an international standard that specifies the requirements for an information security management system.


NEW QUESTION # 195
Which of the following provides an exploitation suite with payload modules that cover the broadest range of target system types?

  • A. Ethercap
  • B. Metasploit
  • C. Nessus
  • D. Burp Suite

Answer: B


NEW QUESTION # 196
A penetration tester will be performing a vulnerability scan as part of the penetration test on a client's website. The tester plans to run several Nmap scripts that probe for vulnerabilities while avoiding detection. Which of the following Nmap options will the penetration tester MOST likely utilize?

  • A. -sn
  • B. --script "http*vuln*"
  • C. -O -A
  • D. -a8 -T0

Answer: B


NEW QUESTION # 197
A penetration tester approaches a company employee in the smoking area and starts a conversation about the company's recent social event. After a few minutes, the employee holds the badge-protected door open for the penetration tester and both enter the company's building. Which of the following attacks did the penetration tester perform?

  • A. Tailgating
  • B. Dumpster diving
  • C. Badge cloning
  • D. Phishing

Answer: A

Explanation:
In this scenario, the penetration tester performed a "Tailgating" attack (D), where the tester follows closely behind a legitimate employee to gain unauthorized access to a secure area without being noticed. This social engineering technique relies on exploiting human tendencies to be polite or avoid confrontation, rather than using technical hacking methods. The tester engaged the employee in casual conversation to appear less suspicious and took advantage of the situation when the employee, perhaps distracted or feeling socially obliged, held the door open for them.


NEW QUESTION # 198
A consulting company is completing the ROE during scoping.
Which of the following should be included in the ROE?

  • A. Cost ofthe assessment
  • B. Liability
  • C. Testing restrictions
  • D. Report distribution

Answer: D


NEW QUESTION # 199
A penetration tester wants to accomplish ARP poisoning as part of an attack. Which of the following tools will the tester most likely utilize?

  • A. Netcat
  • B. Nmap
  • C. Wireshark
  • D. Ettercap

Answer: D

Explanation:
ARP poisoning is a technique that exploits the weakness of the ARP protocol to redirect network traffic to a malicious host. Ettercap is a tool that can perform ARP poisoning and other network attacks, such as DNS spoofing, SSL stripping, and password sniffing. Wireshark, Netcat, and Nmap are not designed for ARP poisoning, although they can be used for other purposes, such as packet analysis, network communication, and port scanning. Reference: The Official CompTIA PenTest+ Student Guide (Exam PT0-002) eBook, Chapter 5, Section 5.2.1: ARP Poisoning; Best PenTest+ certification study resources and training materials, Section 2: ARP Poisoning.


NEW QUESTION # 200
......


CompTIA PenTest+ Certification Exam (PT0-002) is an advanced-level certification that demonstrates a candidate's proficiency in penetration testing. CompTIA PenTest+ Certification certification exam focuses on network and web application testing, vulnerability analysis, and reporting. It validates the knowledge and skills required to perform successful penetration testing, identify vulnerabilities, and generate comprehensive reports for clients.


CompTIA PT0-002 (CompTIA PenTest+ Certification) Certification Exam is designed to measure the knowledge and skills of candidates when it comes to penetration testing. This is a critical aspect of information security that involves identifying and exploiting vulnerabilities in computer systems and software solutions. PT0-002 exam is ideal for individuals who want to solidify their understanding of penetration testing methodologies and practices, and who want to demonstrate their expertise in this area to potential employers.

 

Ultimate Guide to Prepare Free PT0-002 Exam Questions and Answer: https://drive.google.com/open?id=18ZfE6eZFy4c7RVOOSQDcAjaAnm-KR0ia

Pass CompTIA PenTest+ PT0-002 Exam With 434 Questions: https://www.pass4suresvce.com/PT0-002-pass4sure-vce-dumps.html