Free PT0-003 Exam Braindumps
CompTIA PenTest+ Questions 89–96 (page: 13)

Updated On: 20-Aug-2026

A penetration tester plans to conduct reconnaissance during an engagement using readily available resources.
Which of the following resources would most likely identify hardware and software being utilized by the client?

  1. Cryptographic flaws
  2. Protocol scanning
  3. Cached pages
  4. Job boards

Answer(s): C

Explanation:

Cached pages, option C, are the most likely resource among the provided options to reveal hardware and software details utilized by a client during reconnaissance. Search engine caches, archive.org (the Wayback Machine), and even local browser caches store historical snapshots of a website. These snapshots often contain details indirectly revealing server software (e.g., version banners), specific Javascript libraries used, and sometimes even the underlying operating system due to telltale signs in HTML comments or error messages. For instance, specific Javascript implementations might suggest the use of a particular framework. Examining the server headers revealed in the cached content can provide clues regarding the web server software being used.
Options A, B, and D are less directly useful for this particular objective. Cryptographic flaws (A) are related to vulnerabilities in encryption and decryption mechanisms, not the identification of hardware or software. Protocol scanning (B) identifies open ports and services, but doesn't necessarily reveal the specific hardware or software behind them without deeper analysis.
While port scanning can find services like HTTP or SSH, cached data gives version information. Job boards (D), while helpful for identifying employee skillsets and potentially the technologies the client uses, are less reliable than cached pages because job postings can be outdated, aspirational, or not reflect current infrastructure. Examining cached pages is a quick, low-impact way to glean valuable information for reconnaissance.
Resource:
OWASP Testing Guide: https://owasp.org/www-project-web-security-testing-guide/ (Specifically the section on Information Gathering)



A company wants to perform a BAS to measure the efficiency of the corporate security controls.
Which of the following would most likely help the tester with simple command examples?

  1. Infection Monkey
  2. Exploit-DB
  3. Atomic Red Team
  4. Mimikatz

Answer(s): C

Explanation:

Atomic Red Team is the best answer because it's a library of simple, automatable tests mapped to the MITRE ATT&CK framework. These tests are designed to quickly and easily validate security controls against common attack techniques. A BAS (Breach and Attack Simulation) aims to simulate real-world attacks to identify weaknesses and gaps in security posture. Atomic Red Team excels at providing simple command examples for these simulations.
Here's why the other options are less suitable:
Infection Monkey: While a BAS tool, Infection Monkey focuses more on automated breach and attack simulation across a network. It doesn't necessarily offer readily available simple command examples for individual techniques. It provides more complex, orchestrated attack simulations.
Exploit-DB: Exploit-DB is a database of exploits.
While useful for penetration testing, it doesn't directly provide examples of how to execute attacks to test defenses in a BAS scenario. It is for discovering vulnerabilities, not for systematically testing existing security controls.
Mimikatz: Mimikatz is a post-exploitation tool used to extract credentials from memory.
While it can be incorporated into a BAS, it's a specific tool for credential harvesting and doesn't offer a broader set of simple command examples for testing a wide range of security controls.
Atomic Red Team aligns most closely with the requirement of helping a tester with simple command examples within the context of a BAS, enabling the measurement of security control efficiency.
Authoritative Links:
Atomic Red Team: https://atomicredteam.io/ MITRE ATT&CK Framework: https://attack.mitre.org/



A tester needs to begin capturing WLAN credentials for cracking during an on-site engagement.
Which of the following is the best command to capture handshakes?

  1. tcpdump -n -s0 -w -i
  2. airserv-ng -d
  3. aireplay-ng -0 1000 -a
  4. airodump-ng -c 6 --bssid

Answer(s): D

Explanation:

D: airodump-ng -c 6 --bssid <BSSID> -w <filename>
This command uses airodump-ng, a tool from the Aircrack-ng suite specifically designed for sniffing and capturing wireless packets. Let's break down the command's components:
airodump-ng: This is the primary tool for wireless packet capture. It puts a wireless card into monitor mode and displays information about nearby access points and clients.
-c 6: This option locks airodump-ng to a specific channel, in this case, channel 6. Channel hopping is the default behavior, but it can cause you to miss parts of a handshake. Locking the channel ensures all handshake packets are captured.
--bssid <BSSID>: This option filters the capture to only show the target Access Point (AP) with the specified BSSID (Basic Service Set Identifier), which is the MAC address of the AP. This helps to declutter the output and focus on the target.
-w <filename>: This flag writes the captured packets to a file, which is essential for offline cracking. The file will be in a format that can be used by aircrack-ng or other cracking tools like Hashcat.



A penetration tester is conducting an assessment of a web application's log-in page. The tester needs to determine whether there are any hidden form fields of interest.
Which of following is the most effective technique?

  1. XSS
  2. On-path attack
  3. SQL injection
  4. HTML scraping

Answer(s): D

Explanation:

The correct answer is D. HTML scraping . Here's a detailed justification:
HTML scraping involves extracting data from HTML source code.
When assessing a web application's login page for hidden form fields, the penetration tester needs to examine the HTML structure. Hidden form fields are elements included in the HTML code but are not visible on the rendered web page. These fields can contain sensitive information, such as session tokens, internal application state, or parameters that could be manipulated.
Techniques like XSS (Cross-Site Scripting) target vulnerabilities that allow attackers to inject malicious scripts into web pages viewed by other users. SQL injection focuses on exploiting vulnerabilities in database queries. An on-path attack, formerly known as a man-in-the-middle attack, involves intercepting communication between a client and a server.
While these techniques are valuable in other penetration testing scenarios, they aren't directly relevant to discovering hidden HTML form fields.
HTML scraping enables the tester to analyze the complete HTML source, including hidden elements that would not be immediately apparent through visual inspection of the webpage. By parsing the HTML, the tester can identify input fields ( <input> tags) with the type="hidden" attribute or other elements that are not displayed but may contain important values. The goal isn't to exploit a vulnerability directly at this stage, but rather to gather information about the application's structure and potential attack vectors. Other methods to check are using the developer tools of your browser to view the page's source code or using a tool like Burp Suite to intercept and analyze the HTML response from the server.
Therefore, HTML scraping is the most effective technique to uncover hidden form fields during a web application login page assessment.
Here are some authoritative resources for more information:
OWASP (Open Web Application Security Project): This website provides comprehensive information on web application security, including HTML scraping techniques and common web vulnerabilities. ( https://owasp.org/ ) PortSwigger Web Security Academy: This resource offers in-depth training and materials on web application penetration testing, covering topics such as HTML injection and other security best practices. ( https://portswigger.net/web-security )



A penetration tester finds it is possible to downgrade a web application's HTTPS connections to HTTP while performing on-path attacks on the local network. The tester reviews the output of the server response to curl -s -I https://internalapp/. HTTP/2 302 -date: Thu, 11 Jan 2024 15:56:24 GMT content-type: text/html; charset=iso-8859-l location: /login x-content-type-options: nosniff server: Prod Which of the following recommendations should the penetration tester include in the report?

  1. Add the HSTS header to the server.
  2. Attach the httponly flag to cookies.
  3. Front the web application with a firewall rule to block access to port 80.
  4. Remove the x-content-type-options header.

Answer(s): A

Explanation:

A: Adding the HSTS header to the server is essential for securing HTTPS connections.
The HTTP Strict Transport Security (HSTS) header enhances web application security by instructing browsers to only interact with the server over HTTPS, preventing downgrade attacks that exploit user interactions with HTTP. By mandating secure connections, HSTS effectively mitigates the risk of man-in-the-middle attacks where malicious entities could intercept or modify data in transit.
Evaluation of Alternatives:
B: Attaching the HttpOnly flag to cookies.
While this measure prevents client-side scripts from accessing the cookies, and thus protects against certain cross-site scripting (XSS) attacks, it does not address the core vulnerability of HTTP to HTTPS downgrading. Since the primary issue arises from unencrypted data being transmitted over HTTP, this recommendation does not effectively mitigate the downgrade risk.
C: Fronting the web application with a firewall rule to block access to port 80. Blocking port 80 may reduce the attack surface; however, it does not directly enforce secure connections from the user's perspective. If an attacker manages to find alternative pathways or exploits other ports, the application could still be vulnerable to downgrade attacks. HSTS is a more robust approach, as it ensures that compliant browsers will only use secure connections.
D: Removing the X-Content-Type-Options header. This header is a security feature that prevents browsers from interpreting files as a different MIME type than what is declared. Removing it would expose the application to content-type misinterpretation attacks, thereby weakening the overall security posture without addressing the downgrade vulnerability.
In summary, implementing HSTS is the most effective recommendation to prevent HTTPS to HTTP downgrading and enhance overall web application security.
References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security https://owasp.org/www-project-secure-coding-practices-20-quick-reference-guide https://www.acs.com.hk/en/products/1343/acr38-smart-card-reader/


Reference:

References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security https://owasp.org/www-project-secure-coding-practices-20-quick-reference-guide https://www.acs.com.hk/en/products/1343/acr38-smart-card-reader/



Which of the following can an access control vestibule help deter?

  1. USB drops
  2. Badge cloning
  3. Lock picking
  4. Tailgating

Answer(s): D

Explanation:

D is correct because an access control vestibule effectively minimizes the risk of tailgating by creating a controlled area that requires proper authentication before entry.
Access control vestibules serve as a physical barrier to enhance security protocols, ensuring that only authorized personnel can enter secure areas. This structured entry system limits the chance of individuals following closely behind a legitimate user without their consent. By requiring a swipe or badge check before entering a secondary door, vestibules effectively eliminate the opportunity for unauthorized individuals to gain access stealthily.
Evaluation of Incorrect Options:

A: USB drops: This refers to malicious USB devices left in public areas to exploit unsuspecting individuals. An access control vestibule does not address this threat as it focuses on physical access, not the manipulation of human behavior or electronic vulnerabilities.
B: Badge cloning: While vestibules enforce badge authentication, they cannot prevent sophisticated attacks such as badge cloning, where copies of legitimate badges are created for unauthorized access. Security measures such as RFID encryption or biometric systems would be necessary to combat this issue.
C: Lock picking: Although vestibules provide additional security, they do not directly mitigate lock picking, which targets the physical locking mechanisms of doors. Secure locks and advanced locking mechanisms are required to counteract this specific threat.
In summary, access control vestibules are primarily effective against tailgating by enforcing a stringent two-step access protocol, while the other options require different countermeasures for effective risk mitigation.
References:
https://www.schneider-electric.com/en/work/solutions/buildings/secure-buildings/access-control/ https://www.cabinetmagazine.org/issues/23/joel_snyder_on_public_spaces.php https://www.securitymagazine.com/articles/92069-creating-physical-security-in-a-digital-world


Reference:

References:
https://www.schneider-electric.com/en/work/solutions/buildings/secure-buildings/access-control/ https://www.cabinetmagazine.org/issues/23/joel_snyder_on_public_spaces.php https://www.securitymagazine.com/articles/92069-creating-physical-security-in-a-digital-world



Which of the following is the most efficient way to exfiltrate a file containing data that could be sensitive?

  1. Use steganography and send the file over FTP.
  2. Compress the file and send it using TFTP.
  3. Split the file in tiny pieces and send it over dnscat.
  4. Encrypt and send the file over HTTPS.

Answer(s): D

Explanation:

The most efficient and secure method to exfiltrate sensitive data among the options is encrypting the file and sending it over HTTPS. HTTPS provides encryption in transit, ensuring confidentiality during the exfiltration process. This prevents eavesdroppers from intercepting and reading the sensitive data. Encrypting the file adds another layer of security, protecting the data even if the HTTPS connection is compromised.
Option A, using steganography and FTP, hides the file but FTP doesn't encrypt the data in transit, making it vulnerable to interception. Option B, compressing and sending via TFTP, is insecure because TFTP lacks authentication and encryption. Option C, splitting the file and sending over dnscat, is slow and unreliable, as DNS is not designed for large data transfers.
While dnscat can bypass some firewalls, it's detectable and inefficient. Furthermore, none of these options offer robust encryption of the data itself, leaving it exposed if intercepted.
HTTPS, combined with file encryption (using algorithms like AES), provides both confidentiality and integrity, making it the most suitable choice for safely extracting sensitive information. This approach minimizes the risk of exposure and maintains the integrity of the data during transit. The efficiency stems from the widely available HTTPS infrastructure and standard encryption protocols. Other methods may be more stealthy in some niche scenarios, but for a generally applicable and effective approach, HTTPS with encryption is preferable.


Reference:

HTTPS: https://www.cloudflare.com/learning/ssl/what-is-https/



A penetration tester has discovered sensitive files on a system. Assuming exfiltration of the files is part of the scope of the test, which of the following is most likely to evade DLP systems?

  1. Encoding the data and pushing through DNS to the tester's controlled server
  2. Padding the data and uploading the files through an external cloud storage service
  3. Obfuscating the data and pushing through FTP to the tester's controlled server
  4. Hashing the data and emailing the files to the tester's company inbox

Answer(s): D

Explanation:

D is correct because hashing the data renders it as a non-readable format, allowing transmission without triggering Data Loss Prevention (DLP) systems focused on content analysis.
The hashing process converts sensitive information into a fixed-size string of characters, which can be sent without revealing the original content. DLP systems typically inspect data patterns, keywords, and formats to identify sensitive information, and hashed data does not match these identifiable signatures. Thus, this method effectively evades such systems while preserving the integrity of the file's significance.
Evaluation of Other Options:

A: Encoding the data and pushing through DNS to the tester's controlled server
While encoding can obfuscate data to some extent, DLP systems often detect DNS queries associated with sensitive information. Encoded data may still retain recognizable patterns, making it susceptible to analysis by DLP tools. Additionally, using DNS tunneling can be highly volatile and may trigger alerts.
B: Padding the data and uploading the files through an external cloud storage service
Uploading sensitive files to an external service would likely raise flags within DLP infrastructures. DLP systems can monitor data transfers to unapproved or external cloud services, leading to detection during traffic analysis or metadata inspection.
C: Obfuscating the data and pushing through FTP to the tester's controlled server
Similar to encoding, obfuscation changes the appearance of the data but does not change its underlying structure. DLP systems may employ deep packet inspection and are designed to analyze FTP traffic, making this method less reliable for complete evasion.
In summary, while other methods involve varying techniques of masking data, only the hashing approach fundamentally alters the data format to ensure DLP systems cannot detect the sensitive content effectively.
References:
https://www.ispeech.org/technology/data-loss-prevention-dlp https://www.csoonline.com/article/3574116/the-5-types-of-data-loss-prevention-solutions.html https://www.cyber.gov.au/acsc/view-all-content/publications/data-loss-prevention-dlp


Reference:

References:
https://www.ispeech.org/technology/data-loss-prevention-dlp https://www.csoonline.com/article/3574116/the-5-types-of-data-loss-prevention-solutions.html https://www.cyber.gov.au/acsc/view-all-content/publications/data-loss-prevention-dlp



Viewing page 13 of 44
Viewing questions 97 - 104 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!