Free PT0-003 Exam Braindumps
CompTIA PenTest+ Questions 97–104 (page: 14)

Updated On: 20-Aug-2026

A penetration tester is testing a power plant's network and needs to avoid disruption to the grid.
Which of the following methods is most appropriate to identify vulnerabilities in the network?

  1. Configure a network scanner engine and execute the scan.
  2. Execute a testing framework to validate vulnerabilities on the devices.
  3. Configure a port mirror and review the network traffic.
  4. Run a network mapper tool to get an understanding of the devices.

Answer(s): C

Explanation:

The correct answer is C: Configure a port mirror and review the network traffic. This approach is the most appropriate because it allows the penetration tester to passively observe network traffic without actively injecting traffic or interacting directly with the power plant's critical systems. This minimizes the risk of disrupting the power grid's operations.
Option A (Configure a network scanner engine and execute the scan) involves actively sending packets to the network, which could potentially overwhelm or destabilize sensitive systems, especially in an operational technology (OT) environment like a power plant. Network scanning can cause denial-of-service conditions if not carefully managed.
Option B (Execute a testing framework to validate vulnerabilities on the devices) also carries a significant risk of disruption. Testing frameworks often exploit vulnerabilities, which could lead to system crashes or unexpected behavior, making it unsuitable for a sensitive industrial control system (ICS).
Option D (Run a network mapper tool to get an understanding of the devices) involves active probing of the network to discover devices.
While less intrusive than a full vulnerability scan, it can still disrupt the network and should be avoided in environments where stability is paramount.
Port mirroring, also known as switch port analyzer (SPAN), allows the tester to passively capture and analyze network traffic without interfering with the normal operation of the network. This collected data can then be analyzed offline to identify potential vulnerabilities. The penetration tester can use tools like Wireshark or tcpdump to analyze the mirrored traffic and identify vulnerabilities such as unencrypted protocols, weak authentication mechanisms, or data leakage. This passive approach ensures that the penetration test is non-disruptive, which is crucial in a critical infrastructure environment.
Wireshark Documentationtcpdump Documentation



During a security audit, a penetration tester wants to run a process to gather information about a target network's domain structure and associated IP addresses.
Which of the following tools should the tester use?

  1. Dnsenum
  2. Nmap
  3. Netcat
  4. Wireshark

Answer(s): A

Explanation:

The correct tool is Dnsenum . Here's why:
Dnsenum is specifically designed for reconnaissance, and excels at gathering DNS information about a domain. It can enumerate DNS servers, hostnames, IP addresses, and perform zone transfers if allowed. This information is crucial for understanding a target network's infrastructure and planning subsequent penetration testing activities. Gathering this domain structure and associated IP addresses gives a pen tester a map to then probe further.
Nmap, while a powerful network scanner, is primarily used for port scanning, service discovery, and OS fingerprinting. It can perform some DNS resolution, but isn't its primary function. Netcat is a versatile networking utility used for reading from and writing to network connections, often used for port scanning, transferring data, or establishing backdoors. Wireshark is a packet analyzer used to capture and analyze network traffic; it's passive and observes traffic rather than actively gathering DNS information.
While useful for traffic analysis later, Wireshark isn't the right tool for initial domain reconnaissance.
Dnsenum directly fulfills the requirement of gathering domain structure and IP addresses, making it the most appropriate tool.
Authoritative Links:
Dnsenum: Many resources are available online. A general web search for "Dnsenum usage" will provide numerous tutorials and examples.
While not from a single authoritative source like a formal standard, the tool's widespread use and documentation across various cybersecurity websites establish its functionality. Nmap: https://nmap.org/ Netcat: https://eternallybored.org/misc/netcat/ Wireshark: https://www.wireshark.org/



A penetration tester enumerates a legacy Windows host on the same subnet. The tester needs to select exploit methods that will have the least impact on the host's operating stability.
Which of the following commands should the tester try first?

  1. responder -I eth0 john responder_output.txt
  2. hydra -L administrator -P /path/to/pwlist.txt -t 100 rdp://
  3. msf > use msf > set msf > set PAYLOAD windows/meterpreter/reverse_tcp msf > run
  4. python3 ./buffer_overflow_with_shellcode.py 445

Answer(s): A

Explanation:

The best approach for a penetration tester aiming to minimize impact on a legacy Windows host while enumerating vulnerabilities is to prioritize passive and less intrusive techniques. Responder is a Local Area Network (LAN) segment poisoning and LLMNR/NBT-NS spoofing tool. It essentially listens for authentication attempts made by the host and captures the NTLMv2 hashes. It is a passive approach to gain credentials which doesn't directly target any specific service or exploit a known vulnerability. This makes it less likely to cause instability. Hydra, on the other hand, is a brute-force password cracking tool. Repeatedly attempting to authenticate with different passwords can strain the host's resources and potentially trigger account lockout policies or cause denial-of-service conditions. Metasploit, particularly using a payload like Meterpreter, often involves exploiting vulnerabilities and injecting code, which can certainly cause instability, especially on legacy systems. A buffer overflow exploit, by its very nature, directly targets a vulnerability in the software, and is also likely to cause instability or a crash. Therefore, Responder is the safest initial option because it passively collects information without actively attacking the host, lowering the risk of impacting the system's stability.
Supporting resources:
Responder: https://github.com/lgandx/Responder Hydra: https://github.com/vanhauser-thc/thc-hydra Metasploit: https://www.metasploit.com/



During an assessment, a penetration tester runs the following command: dnscmd.exe /config /serverlevelplugindll C:\users\netadm\Documents\addusr.dll Which of the following is the penetration tester trying to achieve?

  1. DNS enumeration
  2. Privilege escalation
  3. Command injection
  4. A list of available users

Answer(s): B

Explanation:

The correct answer is B. Privilege escalation. Here's why:
The dnscmd.exe utility is a command-line tool used for managing DNS servers in Windows environments. The specific command dnscmd.exe /config /serverlevelplugindll C:\users\netadm\Documents\addusr.dll attempts to configure the DNS server to load a custom DLL ( addusr.dll ) as a server-level plugin.
This is a classic privilege escalation technique because DNS servers typically run with SYSTEM privileges, which are the highest level of privileges in Windows. By configuring the DNS server to load a custom DLL, the attacker can execute arbitrary code with SYSTEM privileges. If the addusr.dll is crafted maliciously, it can be used to add new users with administrative rights, install backdoors, or perform other actions that would otherwise be restricted. The attacker is exploiting the DNS server's trust and high-privilege context to execute their own code.
Option A is incorrect because DNS enumeration is a different process involving querying DNS servers for information about domain names, hostnames, and other DNS records. Option C is incorrect because command injection typically involves injecting malicious commands into an existing application's input or parameters to execute them with the application's privileges, not by loading a DLL. Option D is incorrect as the command does not directly return a list of available users. Instead, privilege escalation attempts to create or elevate the permissions of a user.
For further reading on DNS and privilege escalation, you can consult these resources:
Microsoft's documentation on Dnscmd.exe: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/dnscmd General Privilege Escalation Techniques: Search for "Windows privilege escalation techniques" to find various resources and articles detailing common methods and vulnerabilities.



A penetration tester wants to use multiple TTPs to assess the reactions (alerted, blocked, and others) by the client's current security tools. The threat-modeling team indicates the TTPs in the list might effect their internal systems and servers.
Which of the following actions would the tester most likely take?

  1. Use a BAS tool to test multiple TTPs based on the input from the threat-modeling team.
  2. Perform an internal vulnerability assessment with credentials to review the internal attack surface.
  3. Use a generic vulnerability scanner to test the TTPs and review the results with the threat-modeling team.
  4. Perform a full internal penetration test to review all the possible exploits that could affect the systems.

Answer(s): A

Explanation:

The best course of action for the penetration tester is to use a Breach and Attack Simulation (BAS) tool (Option A). Here's why:
1. Controlled Environment: BAS tools are designed to simulate various attack techniques and tactics (TTPs) in a controlled and automated manner. This minimizes the risk of causing unintended damage to the client's production systems. This is especially important given the threat-modeling team's concerns about the impact of certain TTPs.
2. Real-World Simulation: BAS provides a more realistic simulation of real-world attacks compared to generic vulnerability scanners or vulnerability assessments. These tools allow the penetration tester to observe how the client's security tools react to specific attack patterns, mimicking adversary behavior.
3. Targeted Testing: The input from the threat-modeling team can be directly incorporated into the BAS tool configuration. This allows the tester to focus on the TTPs that are most relevant to the client's specific threat landscape and internal systems, mitigating risk.
4. Efficiency and Automation: BAS tools automate the process of executing multiple TTPs and analyzing the results. This saves time and resources compared to manual testing methods, allowing for more comprehensive coverage.
5. Detailed Reporting: BAS tools typically provide detailed reports on the effectiveness of the client's security controls, including which TTPs were detected, blocked, or bypassed. This information is valuable for identifying areas for improvement and strengthening the client's security posture.
Options B, C, and D are less suitable:
Option B (Internal Vulnerability Assessment): While a vulnerability assessment identifies weaknesses, it doesn't actively test the effectiveness of security controls against specific TTPs. It focuses on identifying vulnerabilities, not simulating attacks and observing reactions.
Option C (Generic Vulnerability Scanner): Vulnerability scanners primarily identify vulnerabilities and do not effectively simulate the complex attack patterns associated with TTPs. They also may not capture the nuanced reactions of security tools.
Option D (Full Internal Penetration Test): A full penetration test, while comprehensive, carries a higher risk of disrupting or damaging the client's systems. Given the threat-modeling team's concerns, a full penetration test might be too aggressive at this stage. BAS offers a safer and more controlled way to achieve the tester's objectives.
Authoritative links for further research:
Gartner - Breach and Attack Simulation: https://www.gartner.com/en/information-technology/glossary/breach-and-attack-simulation-bas MITRE ATT&CK Framework: https://attack.mitre.org/ - Provides a comprehensive framework of TTPs used by adversaries.



A penetration tester is conducting a vulnerability scan. The tester wants to see any vulnerabilities that may be visible from outside of the organization.
Which of the following scans should the penetration tester perform?

  1. SAST
  2. Sidecar
  3. Unauthenticated
  4. Host-based

Answer(s): C

Explanation:

C: unauthenticated.
An unauthenticated scan simulates the perspective of an external attacker with no prior knowledge or credentials for the target system. This type of scan focuses on vulnerabilities that are publicly visible and exploitable without privileged access. It's the ideal way to assess the security posture of an organization's perimeter from the outside, which is exactly what the tester wants to do.



During a penetration testing engagement, a tester targets the internet-facing services used by the client.
Which of the following describes the type of assessment that should be considered in this scope of work?

  1. Segmentation
  2. Mobile
  3. External
  4. Web

Answer(s): C

Explanation:

External .
An external is a cybersecurity assessment that simulates an attack from an outside perspective, like that of an attacker on the internet. The scope of this test is specifically focused on the internet-facing services and assets of an organization.



A tester wants to pivot from a compromised host to another network with encryption and the least amount of interaction with the compromised host.
Which of the following is the best way to accomplish this objective?

  1. Create a SSH tunnel using sshuttle to forward all the traffic to the compromised computer.
  2. Configure a VNC server on the target network and access the VNC server from the compromised computer.
  3. Set up a Metasploit listener on the compromised computer and create a reverse shell on the target network.
  4. Create a Netcat connection to the compromised computer and forward all the traffic to the target network.

Answer(s): A

Explanation:

The best way to pivot from a compromised host to another network with encryption and minimal interaction on the compromised host is option A: Creating an SSH tunnel using sshuttle to forward all traffic. Here's why:
Encryption: SSH inherently provides encryption for all traffic passing through the tunnel. This protects the data in transit from eavesdropping, a crucial aspect of maintaining security during a penetration test. sshuttle leverages SSH, thus benefiting from its encryption capabilities.
Minimal Interaction on Compromised Host: sshuttle requires minimal configuration on the compromised host itself. Typically, you only need to execute the sshuttle command, which then handles routing the traffic through the SSH tunnel. This is preferable as it limits the "footprint" or trace of the pentester's activities on the compromised system, which is helpful for covert operations.
Full Network Access: sshuttle allows for transparent forwarding of all traffic from the tester's machine to the target network, as if the tester's machine was directly connected to that network. This gives complete access to services and resources within the target network that would normally be inaccessible.
Why other options are less suitable:
B (VNC): Configuring a VNC server requires installing software on the target network and opening ports, increasing the attack surface. Also, VNC might not always be encrypted by default, requiring extra configuration and may introduce vulnerabilities. C (Metasploit Reverse Shell): Setting up a Metasploit reverse shell involves more direct interaction with both the compromised and target systems.
While powerful, it's a more complex process than sshuttle and potentially leaves a larger forensic footprint. D (Netcat): Netcat connections, by themselves, are not encrypted. This makes the traffic vulnerable to interception, which is unacceptable in a professional penetration testing scenario.
While Netcat can be used with some form of encryption (like using it in conjunction with stunnel), that requires more complex setup and increases the attack surface on the compromised host as opposed to using built-in functionality and encryption with sshuttle .
In summary, sshuttle provides a secure, efficient, and relatively low-impact way to pivot from a compromised host to an internal network. The encryption provided by SSH, coupled with the ease of use and minimal interaction requirements, make it the preferred solution.
Further Research:
sshuttle: https://github.com/sshuttle/sshuttle (GitHub repository) SSH Tunneling: https://www.ssh.com/academy/ssh/tunneling-example (SSH.com Academy)



Viewing page 14 of 44
Viewing questions 105 - 112 out of 372 questions


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

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