Practice PT0-002 Questions With Certification guide Q&A from Training Expert [Q59-Q77]

Share

Practice PT0-002 Questions With Certification guide Q&A from Training Expert TestkingPDF

Free CompTIA PT0-002 Test Practice Test Questions Exam Dumps

NEW QUESTION # 59
For a penetration test engagement, a security engineer decides to impersonate the IT help desk. The security engineer sends a phishing email containing an urgent request for users to change their passwords and a link to
https://example.com/index.html. The engineer has designed the attack so that once the users enter the credentials, the index.html page takes the credentials and then forwards them to another server that the security engineer is controlling. Given the following information:

Which of the following lines of code should the security engineer add to make the attack successful?

  • A. geturlparameter ('username')
  • B. crossDomain: true
  • C. redirectUrl = 'https://example.com'
  • D. window.location.= 'https://evilcorp.com'

Answer: B


NEW QUESTION # 60
The following PowerShell snippet was extracted from a log of an attacker machine:

A penetration tester would like to identify the presence of an array. Which of the following line numbers would define the array?

  • A. Line 19
  • B. Line 13
  • C. Line 8
  • D. Line 20

Answer: C

Explanation:
Explanation
$X=2,4,6,8,9,20,5
$y=[System.Collections.ArrayList]$X
$y.RemoveRange(1,2) As you can see the arrat has no brackets and no periods. IT HAS SEMICOLLINS TO SEPERATE THE LISTED ITEMS OR VALUES.


NEW QUESTION # 61
A security analyst is conducting an unknown environment test from 192.168.3.3. The analyst wants to limit observation of the penetration tester's activities and lower the probability of detection by intrusion protection and detection systems. Which of the following Nmap commands should the analyst use to achieve this objective?

  • A. nmap -F 192.168.5.5
  • B. nmap -D 10.5.2.2 192.168.5.5
  • C. nmap -scanflags SYNFIN 192.168.5.5
  • D. nmap -datalength 2 192.168.5.5

Answer: B


NEW QUESTION # 62
Which of the following tools provides Python classes for interacting with network protocols?

  • A. Impacket
  • B. PowerSploit
  • C. Responder
  • D. Empire

Answer: A

Explanation:
Impacket is a collection of Python classes focused on providing access to network protocols. It is designed for low-level protocol access and crafted to perform various networking tasks from Python scripts. This toolkit is widely used in penetration testing for creating and decoding network protocols and for crafting and injecting packets into the network. Impacket supports a myriad of protocols like IP, TCP, UDP, ICMP, SMB, MSRPC, NTP, and more. With its vast array of functionalities, Impacket is very useful in protocol testing and attacks, like the ones a penetration tester would conduct.
Responder, on the other hand, is a LLMNR, NBT-NS, and MDNS poisoner that can be used for capturing NetNTLM hashes. Empire is a post-exploitation framework that allows the use of PowerShell for offensive security and PowerSploit is a collection of Microsoft PowerShell modules that can be used to aid penetration testers during all phases of an assessment.
Given these descriptions, Impacket is the tool that fits the context of the question due to its direct interaction with network protocols through Python.


NEW QUESTION # 63
A company hired a penetration-testing team to review the cyber-physical systems in a manufacturing plant.
The team immediately discovered the supervisory systems and PLCs are both connected to the company intranet. Which of the following assumptions, if made by the penetration-testing team, is MOST likely to be valid?

  • A. Supervisory systems will detect a malicious injection of code/commands.
  • B. PLCs will not act upon commands injected over the network.
  • C. Supervisors and controllers are on a separate virtual network by default.
  • D. Controllers will not validate the origin of commands.

Answer: D


NEW QUESTION # 64
A client would like to have a penetration test performed that leverages a continuously updated TTPs framework and covers a wide variety of enterprise systems and networks. Which of the following methodologies should be used to BEST meet the client's expectations?

  • A. MITRE ATT&CK framework
  • B. OWASP Top 10
  • C. NIST Cybersecurity Framework
  • D. The Diamond Model of Intrusion Analysis

Answer: A

Explanation:
The MITRE ATT&CK framework is a methodology that should be used to best meet the client's expectations.
The MITRE ATT&CK framework is a knowledge base of adversary tactics, techniques, and procedures (TTPs) that are continuously updated based on real-world observations. The framework covers a wide variety of enterprise systems and networks, such as Windows, Linux, macOS, cloud, mobile, and network devices.
The framework can help the penetration tester to emulate realistic threats and identify gaps in defenses.


NEW QUESTION # 65
A penetration tester fuzzes an internal server looking for hidden services and applications and obtains the following output:

Which of the following is the most likely explanation for the output?

  • A. The tester does not have credentials to access the server-status page.
  • B. The admin, test, and db directories redirect to the log-in page.
  • C. The robots.txt file has six entries in it.
  • D. The admin directory cannot be fuzzed because it is forbidden.

Answer: B

Explanation:
The output of the fuzzing tool shows that the admin, test, and db directories have the same size, words, and lines as the login page, which indicates that they are redirecting to the login page. This means that the tester cannot access these directories without valid credentials. The server-status page returns a 403 Forbidden status code, which means that the tester does not have permission to access it. The robots.txt file returns a 404 Not Found status code, which means that the file does not exist on the server. References:
*The Official CompTIA PenTest+ Study Guide (Exam PT0-002), Chapter 2: Conducting Passive Reconnaissance, page 77-78.
*101 Labs - CompTIA PenTest+: Hands-on Labs for the PT0-002 Exam, Lab 2.3: Fuzzing Web Applications, page 69-70.


NEW QUESTION # 66
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





Answer:

Explanation:
See all the solutions below in Explanation.
Explanation:
A screenshot of a computer Description automatically generated



NEW QUESTION # 67
Given the following code:

Which of the following data structures is systems?

  • A. A dictionary
  • B. A tuple
  • C. A tree
  • D. An array

Answer: A

Explanation:
A dictionary is a data structure in Python that stores key-value pairs, where each key is associated with a value. A dictionary is created by enclosing the key-value pairs in curly braces and separating them by commas.
A dictionary can be accessed by using the keys as indexes or by using methods such as keys(), values(), or items(). In the code, systems is a dictionary that has four key-value pairs, each representing an IP address and its corresponding operating system. A tuple is a data structure in Python that stores an ordered sequence of immutable values, enclosed in parentheses and separated by commas. A tree is a data structure that consists of nodes connected by edges, forming a hierarchical structure with a root node and leaf nodes. An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.


NEW QUESTION # 68
A penetration tester has gained access to part of an internal network and wants to exploit on a different network segment. Using Scapy, the tester runs the following command:

Which of the following represents what the penetration tester is attempting to accomplish?

  • A. Double-tagging attack
  • B. MAC spoofing
  • C. DNS cache poisoning
  • D. ARP poisoning

Answer: A

Explanation:
https://scapy.readthedocs.io/en/latest/usage.html


NEW QUESTION # 69
During an assessment, a penetration tester found a suspicious script that could indicate a prior compromise.
While reading the script, the penetration tester noticed the following lines of code:

Which of the following was the script author trying to do?

  • A. List processes.
  • B. Spawn a local shell.
  • C. Disable NIC.
  • D. Change the MAC address

Answer: B

Explanation:
The script author was trying to spawn a local shell by using the os.system() function, which executes a command in a subshell. The command being executed is "/bin/bash", which is the path to the bash shell, a common shell program on Linux systems. The script author may have wanted to spawn a local shell to gain more control or access over the compromised system, or to execute other commands that are not possible in the original shell. The other options are not plausible explanations for what the script author was trying to do.


NEW QUESTION # 70
During a penetration test, you gain access to a system with a limited user interface. This machine appears to have access to an isolated network that you would like to port scan.
INSTRUCTIONS
Analyze the code segments to determine which sections are needed to complete a port scanning script.
Drag the appropriate elements into the correct locations to complete the script.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Answer:

Explanation:

Explanation
A picture containing shape Description automatically generated

A picture containing treemap chart Description automatically generated

Text Description automatically generated

Graphical user interface Description automatically generated


NEW QUESTION # 71
After running the enum4linux.pl command, a penetration tester received the following output:

Which of the following commands should the penetration tester run NEXT?

  • A. net rpc share -S 192.168.100.56 -U ''
  • B. smbget //192.168.100.56/web -U ''
  • C. smbspool //192.160.100.56/print$
  • D. smbclient //192.168.100.56/web -U '' -N

Answer: D

Explanation:
A vulnerability scan is a type of assessment that helps to identify vulnerabilities in a network or system. It scans systems for potential vulnerabilities, misconfigurations, and outdated software. Based on the output from a vulnerability scan, a penetration tester can identify vulnerabilities that may be exploited to gain access to a system. In this scenario, the output from the penetration testing tool shows that 100 hosts contained findings due to improper patch management. This indicates that the vulnerability scan detected vulnerabilities that could have been prevented through proper patch management. Therefore, the most likely test performed by the penetration tester is a vulnerability scan.


NEW QUESTION # 72
A penetration tester ran a ping -A command during an unknown environment test, and it returned a 128 TTL packet. Which of the following OSs would MOST likely return a packet of this type?

  • A. Linux
  • B. Android
  • C. Apple
  • D. Windows

Answer: D


NEW QUESTION # 73
A Chief Information Security Officer wants to evaluate the security of the company's e-commerce application. Which of the following tools should a penetration tester use FIRST to obtain relevant information from the application without triggering alarms?

  • A. OWASP ZAP
  • B. SQLmap
  • C. DirBuster
  • D. w3af

Answer: A


NEW QUESTION # 74
During an engagement, a penetration tester was able to upload to a server a PHP file with the following content:
<? php system ($_POST['cmd']) ?>
Which of the following commands should the penetration tester run to successfully achieve RCE?

  • A. python3 -c "import requests;print (requests.get (url='http://172.16.200.10/uploads/shell.php', params= ('cmd':'id'}) .text) "
  • B. python3 -c "import requests;print (requests.post (url='http://172.16.200.10/uploads/shell.php', data={'cmd=id'}))"
  • C. python3 -c "import requests;print (requests.post(url='http://172.16.200.10/uploads/shell.php', data= ('cmd':'id') ) .text) "
  • D. python3 -c "import requests;print (requests.get (url='http://172.16.200.10/uploads/shell.php', params=
    {'cmd':'id'}) )"

Answer: B

Explanation:
The PHP file uploaded by the penetration tester allows for Remote Code Execution (RCE) by executing the command supplied through the cmd POST parameter. To exploit this, the penetration tester needs to send a POST request to the PHP file with the command they want to execute.
Among the given options, Option A is the most suitable for achieving RCE:
* It uses Python's requests library to send a POST request, which is appropriate because the PHP script expects data through the POST method.
* The data parameter in the requests.post function is correctly formatted as a dictionary, which is the expected format for sending form data in POST requests. It includes the key cmd with the value id, which is a common command used to display the current user ID and group ID.
* The only minor issue with Option A is that it prints the entire response object, which includes not just the response content but also metadata like status code and headers. To print just the response content (which would include the output of the id command), appending .text to the requests.post call would be more precise, but this is a small detail and does not affect the execution of the command.
The other options have various issues:
* Option B is close but has a syntax error in the data argument. It uses parentheses () instead of curly braces {} for the dictionary, and also lacks the .text at the end to print the response content.
* Options C and D use the requests.get method, which is not suitable in this scenario because the PHP script is expecting data through the POST method, not the GET method. Additionally, Option D has a
* syntax error similar to Option B.


NEW QUESTION # 75
A penetration tester who is doing a company-requested assessment would like to send traffic to another system using double tagging. Which of the following techniques would BEST accomplish this goal?

  • A. Tag nesting
  • B. RFID tagging
  • C. Meta tagging
  • D. RFID cloning

Answer: A

Explanation:
Explanation
since vlan hopping requires 2 vlans to be nested in a single packet. Double tagging occurs when an attacker adds and modifies tags on an Ethernet frame to allow the sending of packets through any VLAN. This attack takes advantage of how many switches process tags. Most switches will only remove the outer tag and forward the frame to all native VLAN ports. With that said, this exploit is only successful if the attacker belongs to the native VLAN of the trunk link.
https://cybersecurity.att.com/blogs/security-essentials/vlan-hopping-and-mitigation


NEW QUESTION # 76
During the assessment of a client's cloud and on-premises environments, a penetration tester was able to gain ownership of a storage object within the cloud environment using the..... premises credentials. Which of the following best describes why the tester was able to gain access?

  • A. laaS failure at the provider
  • B. Container listed in the public domain
  • C. Key mismanagement between the environments
  • D. Federation misconfiguration of the container

Answer: D

Explanation:
The best explanation for why the tester was able to gain access to the storage object within the cloud environment using the on-premises credentials is federation misconfiguration of the container. Federation is a process that allows users to access multiple systems or services with a single set of credentials, by using a trusted third-party service that authenticates and authorizes the users. Federation can enable seamless integration between cloud and on-premises environments, but it can also introduce security risks if not configured properly. Federation misconfiguration of the container can allow an attacker to access the storage object with the on-premises credentials, if the container trusts the on-premises identity provider without verifying its identity or scope. The other options are not valid explanations for why the tester was able to gain access to the storage object within the cloud environment using the on-premises credentials. Key mismanagement between the environments is not relevant to this issue, as it refers to a different scenario involving encryption keys or access keys that are used to protect or access data or resources in cloud or on-premises environments. IaaS failure at the provider is not relevant to this issue, as it refers to a different scenario involving infrastructure as a service (IaaS), which is a cloud service model that provides virtualized computing resources over the internet. Container listed in the public domain is not relevant to this issue, as it refers to a different scenario involving container visibility or accessibility from public networks or users.


NEW QUESTION # 77
......


CompTIA PT0-002, also known as the CompTIA PenTest+ Certification Exam, is a globally recognized certification exam that validates an individual's skills in conducting penetration testing and vulnerability management. PT0-002 exam is designed to measure the candidate's knowledge and practical skills in performing penetration testing, identifying vulnerabilities, exploiting security weaknesses, and managing risks in IT environments. CompTIA PenTest+ Certification certification is ideal for network and security professionals who want to specialize in penetration testing and vulnerability assessment.


CompTIA PT0-002 certification exam covers topics such as planning and scoping penetration tests, performing reconnaissance and enumeration, exploiting vulnerabilities, and post-exploitation techniques. It also includes sections on analyzing data and identifying patterns and anomalies, conducting social engineering attacks, and generating reports. PT0-002 exam covers both theoretical concepts and practical skills to ensure that candidates have all the tools they need to be effective in their roles as Penetration Testers.


CompTIA PenTest+ certification exam (PT0-002) is an industry-recognized certification exam that validates the skills and knowledge of a cybersecurity professional in the field of penetration testing. PT0-002 examination assesses the candidate's ability to plan, conduct, and report on penetration testing projects. PT0-002 exam aims to evaluate a candidate's expertise in vulnerability scanning, enumeration, exploitation, and post-exploitation techniques. The CompTIA PT0-002 certification exam is designed for cybersecurity professionals who want to showcase their skills in penetration testing, network and application security and demonstrate their expertise in ethical hacking.

 

Prepare Top CompTIA PT0-002 Exam Audio Study Guide Practice Questions Edition: https://www.testkingpdf.com/PT0-002-testking-pdf-torrent.html

Dumps Practice Exam Questions Study Guide for the PT0-002 Exam: https://drive.google.com/open?id=13lLMIpigGtI8sA7uDK_jXggmnsr6svFP