Free PT0-003 Exam Braindumps
CompTIA PenTest+ Questions 81–88 (page: 12)

Updated On: 20-Aug-2026

Which of the following post-exploitation activities allows a penetration tester to maintain persistent access in a compromised system?

  1. Creating registry keys
  2. Installing a bind shell
  3. Executing a process injection
  4. Setting up a reverse SSH connection

Answer(s): A

Explanation:

Creating registry keys is correct as it allows for persistent access on a compromised system by establishing modifications that survive reboots and user sessions.
From a technical perspective, registry keys in Windows are critical for system configuration, user preferences, and application settings. By manipulating these registry settings, a penetration tester can ensure that malicious payloads or access mechanisms (like scheduled tasks or service entries) are invoked during system startup, thus maintaining access even after the initial exploitation phase. This methodology aligns closely with tactics used by sophisticated adversaries seeking long-term footholds within target systems.
Evaluation of Incorrect Options:
B: Installing a bind shell: While effective for immediate access, a bind shell requires the tester to connect directly to the compromised system's listening port, which may not be feasible due to network firewall constraints or evolving defense mechanisms. Bind shells lack the persistence offered by registry modifications because they can easily be disrupted or removed.
C: Executing a process injection: This technique allows an attacker to run their code within the context of another process, providing access, but it typically does not ensure persistent access. Process injection is often ephemeral and can be remedied through system restarts or security software interventions that disrupt the injected process.
D: Setting up a reverse SSH connection: While this method enables an attacker to connect back to their own machine, it is mainly operational and can be interrupted by network changes or the reboot of the victim machine. The absence of modifications to system settings or structures makes this approach less stable for persistence compared to creating registry keys.
In summary, while various methods can facilitate access post-exploitation, creating registry keys stands out for ensuring that access mechanisms remain entrenched within the target system across sessions.
References:
https://www.sans.org/white-papers/39475/ https://www.redhat.com/sysadmin/registry-key-security https://www.csoonline.com/article/3304584/persistent-access-and-other-new-malware-tricks.html


Reference:

References:
https://www.sans.org/white-papers/39475/ https://www.redhat.com/sysadmin/registry-key-security https://www.csoonline.com/article/3304584/persistent-access-and-other-new-malware-tricks.html



A penetration tester compromises a Windows OS endpoint that is joined to an Active Directory local environment.
Which of the following tools should the tester use to manipulate authentication mechanisms to move laterally in the network?

  1. Rubeus
  2. WinPEAS
  3. NTLMRelayX
  4. Impacket

Answer(s): A

Explanation:

Rubeus is the most appropriate tool for manipulating authentication mechanisms to move laterally in a Windows Active Directory environment due to its comprehensive capabilities in ticket manipulation and Kerberos exploitation.
Rubeus excels in performing various Kerberos attacks, such as Pass-the-Ticket, Pass-the-Key, and ticket granting ticket (TGT) harvesting. Its ability to interact with existing tickets already present in memory, coupled with its functionality to request or renew Kerberos tickets, makes it highly effective for lateral movement scenarios specific to Active Directory environments. Additionally, Rubeus provides the capability to exploit weak configurations and elevate privileges, thereby enhancing the penetration tester's ability to navigate and manipulate the network effectively.
Evaluation of Other Options:
B: WinPEAS WinPEAS is primarily a privilege escalation tool focused on gathering information regarding potential vulnerabilities within the Windows environment.
While it assists in identifying misconfigurations and exposed sensitive information, it does not offer the direct authentication manipulation or lateral movement capabilities that Rubeus provides.
C: NTLMRelayX NTLMRelayX is specialized in NTLM relay attacks and is useful for exploiting vulnerabilities in systems that improperly handle NTLM authentication. However, its focus is predominantly on relaying authentication rather than directly manipulating Kerberos tickets or other advanced authentication methods, making it less suitable for broader lateral movement tasks, especially when Kerberos tickets are available.
D: Impacket Impacket is a versatile collection of libraries and scripts for working with various network protocols, including SMB and MSRPC. While it is valuable for lateral movement and executing commands remotely, it does not provide the same level of targeted manipulation and exploitation of Kerberos authentication mechanisms as Rubeus. Impacket is often used alongside Rubeus, but it does not specialize in the direct manipulations required for effective lateral movement via Kerberos.
In conclusion, Rubeus’s advanced capabilities directly align with the needs of a penetration tester in an Active Directory environment, making it the most viable option for manipulation of authentication mechanisms for lateral network movement.
References:
https://github.com/GhostPack/Rubeus https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite https://github.com/SecuraBV/CVE-2022-26923


Reference:

References:
https://github.com/GhostPack/Rubeus https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite https://github.com/SecuraBV/CVE-2022-26923



A penetration tester identifies the following open ports during a network enumeration scan:

Which of the following commands did the tester use to get this output?

  1. nmap -Pn -A 10.10.10.10
  2. nmap -sV 10.10.10.10
  3. nmap -Pn -vv 10.10.10.10
  4. nmap -sV -Pn -p- 10.10.10.10

Answer(s): D

Explanation:

The output shows detailed information about open ports, their states, and the associated services. To achieve this, the following Nmap options were likely used:
-sV: This option enables service version detection, which identifies the services running on the open ports (e.g., ssh, http, rpcbind, https, mongod, ms-rpc).
-Pn: This option skips the host discovery phase (ping sweep) and assumes the host is up, which is useful when ICMP is blocked.
-p-: This option scans all 65,535 TCP ports, not just the default 1,000 ports. The presence of higher-numbered ports like 27017 (MongoDB) and 50123 (MS-RPC) indicates that all ports were scanned.
10.10.10.10: This is the target IP address.



In a cloud environment, a security team discovers that an attacker accessed confidential information that was used to configure virtual machines during their initialization. Through which of the following features could this information have been accessed?

  1. IAM
  2. Block storage
  3. Virtual private cloud
  4. Metadata services

Answer(s): D

Explanation:

The correct answer is D, Metadata services, because they provide a direct pathway for attackers to access sensitive configuration information used during virtual machine (VM) initialization in a cloud environment.
Metadata services are APIs within cloud platforms (like AWS, Azure, and GCP) that provide information about the VM itself, such as its instance ID, networking details, IAM role, and, crucially, any user-defined metadata. This user-defined metadata, if improperly configured, can inadvertently contain sensitive data like passwords, API keys, database connection strings, or other secrets needed to configure the VM.
During VM initialization, automated scripts or configuration management tools might access this metadata to set up the VM. If the metadata service is publicly accessible or vulnerable to SSRF (Server-Side Request Forgery) attacks, an attacker can exploit it to retrieve this sensitive configuration data. IAM roles are for authorization, block storage holds persistent data, and VPCs are for network isolation; none of these directly expose initialization configuration like metadata services do.
The exploitation pathway is direct: an attacker, by gaining access to a VM or exploiting a vulnerability that allows them to make requests on behalf of the VM, can query the metadata service endpoint (e.g., http://169.254.169.254/latest/meta-data/ in AWS) to retrieve the configuration data. This data is then used to access other resources. The use of short-lived credentials and instance metadata protection mechanisms are designed to prevent this type of attack. This scenario is a well-known cloud security risk.Therefore, the attacker likely accessed confidential information via the vulnerable metadata services within the cloud environment.
For further research, consult the following resources:
AWS Instance Metadata: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html Azure Instance Metadata Service (IMDS): https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service Google Cloud Metadata Server: https://cloud.google.com/compute/docs/metadata/



A penetration tester conducts reconnaissance for a client's network and identifies the following system of interest:

The tester notices numerous open ports on the system of interest.
Which of the following best describes this system?

  1. A honeypot
  2. A Windows endpoint
  3. A Linux server
  4. An already-compromised system

Answer(s): A

Explanation:

A: a honeypot.
A honeypot is a decoy system or network used by cybersecurity professionals to attract and trap attackers. One common characteristic of a honeypot is that it intentionally has numerous open ports to appear like a vulnerable and interesting target. This is done to lure attackers away from real production systems, allowing security teams to observe their techniques and gather intelligence on new threats.



A penetration tester gains initial access to a target system by exploiting a recent RCE vulnerability. The patch for the vulnerability will be deployed at the end of the week.
Which of the following utilities would allow the tester to reenter the system remotely after the patch has been deployed? (Choose two.)

  1. schtasks.exe
  2. rundll.exe
  3. cmd.exe
  4. chgusr.exe
  5. sc.exe
  6. netsh.exe

Answer(s): A,E

Explanation:

The correct utilities are schtasks.exe and sc.exe .
schtasks.exe (Task Scheduler): This command-line utility in Windows allows a penetration tester to schedule tasks to run at specific times or events. After gaining initial access, the tester can use schtasks.exe to create a scheduled task that will execute a reverse shell or other backdoor code after the patch is deployed. The scheduled task will ensure persistence, allowing the tester to regain access even if the original vulnerability is closed. The task can be configured to run with elevated privileges to maintain control over the system. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks sc.exe (Service Control): The sc.exe utility is used to manage Windows services. A penetration tester could create a new Windows service or modify an existing one to execute a malicious payload upon system startup or during runtime. Even after the original vulnerability is patched, the newly created (or modified) service will persist, providing a backdoor for continued access to the system. The service can be configured to run with the SYSTEM account, providing extensive privileges. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sc-create
The other options are less suitable for persistent remote access after patching:
rundll.exe : While it can execute DLLs, it's less directly associated with establishing persistence mechanisms.
cmd.exe : It's a command interpreter, not a mechanism for persistence itself. It's useful for initial exploitation but doesn't create lasting backdoors like schtasks or sc .
chgusr.exe : Primarily used for managing Remote Desktop Services sessions, not typically used for persistence. netsh.exe : Used for network configuration; while useful for initial access or lateral movement, it's not the primary tool for creating persistent backdoors resilient to patching of a specific vulnerability.
Therefore, schtasks.exe and sc.exe are the most appropriate choices for establishing persistent remote access after a vulnerability patch is deployed, as they directly facilitate the creation and management of system-level tasks and services that can bypass the patched vulnerability.



A tester runs an Nmap scan against a Windows server and receives the following results:

Which of the following TCP ports should be prioritized for using hash-based relays?

  1. 53
  2. 161
  3. 445
  4. 3389

Answer(s): C

Explanation:

C: 445.
Hash-based relays, most notably NTLM Relay attacks, primarily target the Server Message Block (SMB) protocol, which operates on TCP port 445. This type of attack intercepts and relays a user's hashed credentials (specifically the NTLM hash) to another service or system, allowing an attacker to authenticate without ever needing to crack the password.



During an assessment, a penetration tester compromises some machines but finds that none of the accounts have sufficient access to the target HR database server. In order to enumerate accounts with sufficient permissions, the tester wants to model an attack path before taking further action.
Which of the following tools should the tester use to meet this objective?

  1. Responder
  2. Mimikatz
  3. Hydra
  4. BloodHound
  5. TruffleHog

Answer(s): D

Explanation:

The correct answer is D. BloodHound . Here's why:
BloodHound is a tool specifically designed for Active Directory (AD) environment analysis, focusing on mapping relationships and identifying attack paths. The scenario describes a situation where the penetration tester needs to find accounts with access to a specific target (the HR database server) within a potentially complex network.

A: Responder is a tool used for LLMNR/NBT-NS poisoning and SMB relay attacks, not for attack path modeling.B. Mimikatz is primarily used for credential harvesting and privilege escalation on compromised systems. It doesn't map out attack paths across an entire Active Directory environment.C. Hydra is a password-cracking tool used to brute-force login attempts.
While useful for gaining initial access, it doesn't help in mapping out existing privileges.E. TruffleHog scans repositories for exposed secrets and sensitive information. It doesn't assist in modeling attack paths within an Active Directory environment.
BloodHound ingests data about users, groups, computers, and their relationships within the AD environment. It then analyzes this data to visualize potential attack paths, showing how an attacker could move laterally from one compromised machine to gain access to high-value targets like the HR database server. By visualizing these paths, the tester can determine which accounts to target for privilege escalation or credential theft to reach the desired objective. This is essential in demonstrating the impact of vulnerabilities and weaknesses in the Active Directory configuration.
Further research:
BloodHound GitHub: https://github.com/BloodHoundAD/BloodHound BloodHound Documentation: https://bloodhound.readthedocs.io/en/latest/



Viewing page 12 of 44
Viewing questions 89 - 96 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!