During a vulnerability scan a penetration tester enters the following Nmap command against all of the non- Windows clients: nmap -sX -T4 -p 21-25, 67, 80, 139, 8080 192.168.11.191 The penetration tester reviews the packet capture in Wireshark and notices that the target responds with an RST packet flag set for all of the targeted ports. Which of the following does this information most likely indicate?
-
A
All of the ports in the target range are closed.
-
B
Nmap needs more time to scan the ports in the target range.
-
C
The ports in the target range cannot be scanned because they are common UDP ports.
-
D
All of the ports in the target range are open
Reveal answer details
Close answer details
Correct answerA
ExplanationThe Nmap command uses the Xmas scan technique, which sends packets with the FIN, PSH, and URG flags set. This is an attempt to bypass firewall rules and elicit a response from open ports. However, if the target responds with an RST packet, it means that the port is closed. Open ports will either ignore the Xmas scan packets or send back an ACK packet. Therefore, the information most likely indicates that all of the ports in the target range are closed. References: [Nmap Scan Types], [Nmap Port Scanning Techniques], [CompTIA PenTest+ Study Guide: Exam PT0- 002, Chapter 4: Conducting Passive Reconnaissance, page 127]
A penetration tester ran an Nmap scan on an Internet-facing network device with the -F option and found a few open ports. To further enumerate, the tester ran another scan using the following command: nmap -O -A -sS -p- 100.100.100.50 Nmap returned that all 65,535 ports were filtered. Which of the following MOST likely occurred on the second scan?
-
A
A firewall or IPS blocked the scan.
-
B
The penetration tester used unsupported flags.
-
C
The edge network device was disconnected.
-
D
The scan returned ICMP echo replies.
Reveal answer details
Close answer details
Correct answerA
ExplanationReferences: https://phoenixnap.com/kb/nmap-scan-open-ports
Given the following script: while True: print ("Hello World") Which of the following describes True?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerC
ExplanationTrue is a Boolean operator in Python, which is an operator that returns either True or False values based on logical conditions. Boolean operators can be used in expressions or statements that evaluate to True or False values, such as comparisons, assignments, or loops. In the code, True is used as the condition for a while loop, which is a loop that repeats a block of code as long as the condition is True. The code will print "Hello World" indefinitely because True will always be True and the loop will never end. The other options are not valid descriptions of True.
A penetration tester is working to enumerate the PLC devices on the 10.88.88.76/24 network. Which of the following commands should the tester use to achieve the objective in a way that minimizes the risk of affecting the PLCs?
-
A
nmap --script=s7-info -p 102 10.88.88.76/24 -T3
-
B
nmap --script=wsdd-discover -p 3702 -sUlO.88.88.76/24
-
C
nmap --script=iax2-version -p 4569 -sU -V 10.88.88.76/24 -T2
-
D
nmap --script=xll-access -p 6000-6009 10.88.88.76/24
Reveal answer details
Close answer details
Correct answerA
ExplanationThe nmap command with the --script=s7-info is specifically designed to interact with Siemens S7 PLCs, which are common industrial control systems. The -p 102 specifies the port associated with Siemens S7 communications. The -T3 timing option is chosen to minimize the risk of impacting the PLCs by not being overly aggressive in the scan timing, which is important in operational technology environments where PLCs can be sensitive to high network traffic. The other options listed do not specifically target PLC devices or use appropriate timing to minimize risk.
A penetration tester uncovered a flaw in an online banking web application that allows arbitrary requests to other internal network assets through a server-side request forgery. Which of the following would BEST reduce the risk of attack?
-
A
Implement multifactor authentication on the web application to prevent unauthorized access of the application.
-
B
Configure a secret management solution to ensure attackers are not able to gain access to confidential information.
-
C
Ensure a patch management system is in place to ensure the web server system is hardened.
-
D
Sanitize and validate all input within the web application to prevent internal resources from being accessed.
-
E
Ensure that enhanced logging is enabled on the web application to detect the attack.
Reveal answer details
Close answer details
Which of the following tools would help a penetration tester locate a file that was uploaded to a content management system?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationDirBuster is a tool that can brute-force directories and filenames on web servers. It can help a penetration tester locate a file that was uploaded to a content management system by trying different combinations of paths and names until it finds a match. DirBuster can also use wordlists to speed up the process and discover hidden files or directories. References: The Official CompTIA PenTest+ Instructor Guide (Exam PT0- 002) eBook, page 156
A penetration tester wants to accomplish ARP poisoning as part of an attack. Which of the following tools will the tester most likely utilize?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerD
ExplanationARP poisoning is a technique that exploits the weakness of the ARP protocol to redirect network traffic to a malicious host. Ettercap is a tool that can perform ARP poisoning and other network attacks, such as DNS spoofing, SSL stripping, and password sniffing. Wireshark, Netcat, and Nmap are not designed for ARP poisoning, although they can be used for other purposes, such as packet analysis, network communication, and port scanning. References: The Official CompTIA PenTest+ Student Guide (Exam PT0-002) eBook, Chapter 5, Section 5.2.1: ARP Poisoning; Best PenTest+ certification study resources and training materials, Section 2: ARP Poisoning.
A consultant just performed a SYN scan of all the open ports on a remote host and now needs to remotely identify the type of services that are running on the host. Which of the following is an active reconnaissance tool that would be BEST to use to accomplish this task?
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
A penetration tester has established an on-path position between a target host and local network services but has not been able to establish an on-path position between the target host and the Internet. Regardless, the tester would like to subtly redirect HTTP connections to a spoofed server IP. Which of the following methods would BEST support the objective?
-
A
Gain access to the target host and implant malware specially crafted for this purpose.
-
B
Exploit the local DNS server and add/update the zone records with a spoofed A record.
-
C
Use the Scapy utility to overwrite name resolution fields in the DNS query response.
-
D
Proxy HTTP connections from the target host to that of the spoofed host.
Reveal answer details
Close answer details
Question 10
Single choice
A penetration tester was contracted to test a proprietary application for buffer overflow vulnerabilities. Which of the following tools would be BEST suited for this task?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationGDB is a debugging tool that can be used to analyze and manipulate the memory of a running process, which is useful for finding and exploiting buffer overflow vulnerabilities. Burp Suite is a web application testing tool that does not directly test for buffer overflows. SearchSpliot is a database of known exploits that does not test for new vulnerabilities. Netcat is a network utility that can be used to send and receive data, but not to test for buffer overflows.
Question 11
Single choice
A penetration tester gains access to a system and establishes persistence, and then runs the following commands: cat /dev/null > temp touch -r .bash_history temp mv temp . bash_history Which of the following actions is the tester MOST likely performing?
-
A
Redirecting Bash history to /dev/null
-
B
Making a copy of the user's Bash history for further enumeration
-
C
Covering tracks by clearing the Bash history
-
D
Making decoy files on the system to confuse incident responders
Reveal answer details
Close answer details
Correct answerC
ExplanationThe commands are used to clear the Bash history file of the current user, which records the commands entered in the terminal. The first command redirects /dev/null (a special file that discards any data written to it) to temp, which creates an empty file named temp. The second command changes the timestamp of temp to match that of .bash_history (the hidden file that stores the Bash history). The third command renames temp to .bash_history, which overwrites the original file with an empty one. This effectively erases any trace of the commands executed by the user. References: https://null-byte.wonderhowto.com/how-to/clear-logs-bash-history-hacked-linux- systems-cover- your-tracks-remain-undetected-0244768/
Question 12
Single choice
A penetration tester would like to crack a hash using a list of hashes and a predefined set of rules. The tester runs the following command: hashcat.exe -a 0 .\hash.txt .\rockyou.txt -r . \rules\replace.rule Which of the following is the penetration tester using to crack the hash?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationThe command hashcat.exe -a 0 .\hash.txt .\rockyou.txt -r .\rules\replace.rule indicates that the penetration tester is using a dictionary attack combined with rule-based modifications. The -a 0 option specifies a dictionary attack mode, where . \rockyou.txt is the dictionary file containing potential passwords, and -r . \rules\replace.rule applies predefined rules to mutate these passwords. This method leverages a known list of potential passwords and augments them with additional variations based on the rules provided. References: Hashcat Dictionary Attack Hashcat Rule-based Attack
Question 13
Single choice
A penetration tester is performing an assessment of an application that allows users to upload documents to a cloud-based file server for easy access anywhere in the world. Which of the following would most likely allow a tester to access unintentionally exposed documents?
-
A
Directory traversal attack
-
B
Cross-site request forgery
-
C
Cross-site scripting attack
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationA directory traversal attack, also known as a path traversal attack, is a method used to exploit insufficient security validation or sanitization of user-supplied input file names. The goal of this attack is to access directories and files that are stored outside the web root folder. By manipulating variables that reference files with "../" sequences and its variations, attackers can access restricted directories and execute commands outside of the web server's root directory. In the context of an application that allows users to upload documents to a cloud-based file server, an attacker might exploit a directory traversal vulnerability to navigate to directories that contain sensitive documents. If the file upload functionality is not properly secured, an attacker could upload a file with a payload designed to perform directory traversal. This could allow access to confidential files that are otherwise protected by the application's access control mechanisms. References: OWASP Directory Traversal Cheat Sheet: OWASP Directory Traversal Practical example from HTB Writeups like Forge and Anubis which demonstrate similar enumeration techniques leading to sensitive file disclosures.
Question 14
Single choice
A penetration tester learned that when users request password resets, help desk analysts change users' passwords to 123change. The penetration tester decides to brute force an internet-facing webmail to check which users are still using the temporary password. The tester configures the brute-force tool to test usernames found on a text file and the... Which of the following techniques is the penetration tester using?
-
A
Password brute force attack
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationThe penetration tester is using a password brute force attack, which is a type of password guessing attack that involves trying many possible combinations of passwords against a single username or account. A password brute force attack can be effective when the password is known to be weak, simple, or predictable, such as a default or temporary password. In this case, the penetration tester knows that the help desk analysts change users' passwords to 123change when they request password resets, and decides to brute force the webmail with this password and a list of usernames. A password brute force attack can be done by using tools such as Hydra, which can perform parallelized login attacks against various protocols and services 1. The other options are not techniques that the penetration tester is using. SQL injection is a type of attack that exploits a vulnerability in a web application that allows an attacker to execute malicious SQL statements on a database server. Password spraying is a type of password guessing attack that involves trying one or a few common passwords against many usernames or accounts. Kerberoasting is a type of attack that exploits a vulnerability in the Kerberos authentication protocol that allows an attacker to request and crack service tickets for service accounts with weak passwords.
Question 15
Single choice
Which of the following should a penetration tester attack to gain control of the state in the HTTP protocol after the user is logged in?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Question 16
Single choice
Which of the following would MOST likely be included in the final report of a static application-security test that was written with a team of application developers as the intended audience?
-
A
Executive summary of the penetration-testing methods used
-
B
Bill of materials including supplies, subcontracts, and costs incurred during assessment
-
C
Quantitative impact assessments given a successful software compromise
-
D
Code context for instances of unsafe type-casting operations
Reveal answer details
Close answer details
Correct answerD
ExplanationCode context for instances of unsafe type-casting operations would most likely be included in the final report of a static application-security test that was written with a team of application developers as the intended audience, as it would provide relevant and actionable information for the developers to fix the vulnerabilities. Type-casting is the process of converting one data type to another, such as an integer to a string. Unsafe type-casting can lead to errors, crashes, or security issues, such as buffer overflows or code injection.
Question 17
Single choice
A penetration tester is able to use a command injection vulnerability in a web application to get a reverse shell on a system After running a few commands, the tester runs the following: python -c 'import pty; pty.spawn("/bin/bash")' Which of the following actions Is the penetration tester performing?
-
A
-
B
-
C
Writing a script for persistence
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationThe penetration tester is performing an action called upgrading the shell, which means improving the functionality and interactivity of the shell. By running the python command, the penetration tester is spawning a new bash shell that has features such as tab completion, command history, and job control. This can help the penetration tester to execute commands more easily and efficiently.
Question 18
Single choice
A red team gained access to the internal network of a client during an engagement and used the Responder tool to capture important data. Which of the following was captured by the testing team?
-
A
-
B
-
C
-
D
User hashes sent over SMB
Reveal answer details
Close answer details
Question 19
Single choice
Which of the following practices ensures that vulnerabilities are detected and addressed during the development process, helping to reduce the accumulation of issues over time in a DevSecOps environment?
-
A
Perform penetration testing regularly.
-
B
Perform a security evaluation based on the OWASP Top 10.
-
C
Implement a peer review process during the coding phase.
-
D
Implement security scanning during the pipeline for the CI/CD flow.
Reveal answer details
Close answer details
Correct answerD
ExplanationIntegrating security scanning in the CI/CD pipeline ensures that vulnerabilities are detected and addressed during the development process, reducing the accumulation of issues over time. This aligns with CompTIA Pentest+ objectives related to secure software development and DevSecOps principles. uk.co.certification.simulator.questionpool.PList@23e1f38d
Question 20
Single choice
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
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationThe ping -A command sends an ICMP echo request with a specified TTL value and displays the response. The TTL value indicates how many hops the packet can traverse before being discarded. Different OSs have different default TTL values for their packets. Windows uses 128, Apple uses 64, Linux uses 64 or 255, and Android uses 64. Therefore, a packet with a TTL of 128 is most likely from a Windows OS. References: https://www.freecodecamp.org/news/how-to-identify-basic-internet-problems-with-ping/
Question 21
Single choice
A penetration tester is conducting an Nmap scan and wants to scan for ports without establishing a connection. The tester also wants to find version data information for services running on Projects. Which of the following Nmap commands should the tester use?
-
A
..nmap -sU -sV -T4 -F target.company.com
-
B
..nmap -sS -sV -F target.company.com
-
C
..nmap -sT -v -T5 target.company.com
-
D
..nmap -sX -sC target.company.com
Reveal answer details
Close answer details
Correct answerB
ExplanationThe Nmap command that the tester should use to scan for ports without establishing a connection and to find version data information for services running on open ports is nmap -sS -sV -F target.company.com. This command has the following options: -sS performs a TCP SYN scan, which is a scan technique that sends TCP packets with the SYN flag set to the target ports and analyzes the responses. A TCP SYN scan does not establish a full TCP connection, as it only completes the first step of the three-way handshake. A TCP SYN scan can stealthily scan for open ports without alerting the target system or application. -sV performs version detection, which is a feature that probes open ports to determine the service and version information of the applications running on them. Version detection can provide useful information for identifying vulnerabilities or exploits that affect specific versions of services or applications. -F performs a fast scan, which is a scan option that only scans the 100 most common ports according to the nmap-services file. A fast scan can speed up the scan process by avoiding scanning less likely or less interesting ports. target.company.com specifies the domain name of the target system or network to be scanned. The other options are not valid Nmap commands that meet the requirements of the question. Option A performs a UDP scan (-sU), which is a scan technique that sends UDP packets to the target ports and analyzes the responses. A UDP scan can scan for open ports that use UDP protocol, such as DNS, SNMP, or DHCP. However, a UDP scan does establish a connection with the target system or application, unlike a TCP SYN scan. Option C performs a TCP connect scan (- sT), which is a scan technique that sends TCP packets with the SYN flag set to the target ports and completes the three-way handshake with an ACK packet if a SYN/ACK packet is received. A TCP connect scan can scan for open ports that use TCP protocol, such as HTTP, FTP, or SSH. However, a TCP connect scan does establish a full TCP connection with the target system or application, unlike a TCP SYN scan. Option D performs an Xmas scan (-sX), which is a scan technique that sends TCP packets with the FIN, PSH, and URG flags set to the target ports and analyzes the responses. An Xmas scan can stealthily scan for open ports without alerting the target system or application, similar to a TCP SYN scan. However, option D does not perform version detection (-sV), which is one of the requirements of the question.
Question 22
Single choice
A compliance-based penetration test is primarily concerned with:
-
A
obtaining Pll from the protected network.
-
B
bypassing protection on edge devices.
-
C
determining the efficacy of a specific set of security standards.
-
D
obtaining specific information from the protected network.
Reveal answer details
Close answer details
Question 23
Single choice
A penetration tester obtained the following results after scanning a web server using the dirb utility: ... GENERATED WORDS: 4612 ---- Scanning URL: http://10.2.10.13/ ---- + http://10.2.10.13/about (CODE:200|SIZE:1520) + http://10.2.10.13/home.html (CODE:200|SIZE:214) + http://10.2.10.13/index.html (CODE:200|SIZE:214) + http://10.2.10.13/info (CODE:200|SIZE:214) ... DOWNLOADED: 4612 ?FOUND: 4 Which of the following elements is MOST likely to contain useful information for the penetration tester?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationThe element /about is most likely to contain useful information for the penetration tester, as it may reveal details about the website's owner, purpose, history, contact information, etc. This information can be used for further reconnaissance, social engineering, or identifying potential vulnerabilities.
Question 24
Single choice
A penetration tester noticed that an employee was using a wireless headset with a smartphone. Which of the following methods would be best to use to intercept the communications?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationTo intercept the communications between an employee's wireless headset and smartphone, the penetration tester would likely use "Bluejacking". Bluejacking involves sending unsolicited messages to Bluetooth-enabled devices, but in the context of penetration testing and security, it can also encompass techniques for intercepting or hijacking Bluetooth connections. This could allow the tester to eavesdrop on communications or even take control of the headset.
Question 25
Single choice
A penetration-testing team is conducting a physical penetration test to gain entry to a building. Which of the following is the reason why the penetration testers should carry copies of the engagement documents with them?
-
A
As backup in case the original documents are lost
-
B
To guide them through the building entrances
-
C
To validate the billing information with the client
-
D
As proof in case they are discovered
Reveal answer details
Close answer details
Correct answerD
ExplanationThe penetration testers should carry copies of the engagement documents with them as proof in case they are discovered by security guards, employees, or law enforcement officials. The engagement documents should include the scope, objectives, authorization, and contact information of the penetration testing team and the client. This will help avoid any legal or ethical issues that may arise from trespassing, breaking and entering, or unauthorized access. The other options are not valid reasons for carrying the engagement documents with them. References: https://hub.packtpub.com/penetration-testing-rules-of-engagement/
Question 26
Lab simulation
Reveal model answer
Close model answer
1: Null session enumeration Weak SMB file permissions Fragmentation attack 2: nmap -sV -p 1-1023 192.168.2.2 3: #!/usr/bin/python export $PORTS = 21,22 for $PORT in $PORTS: try: s.connect((ip, port)) print("%s:%s ?OPEN" % (ip, port)) except socket.timeout print("%:%s ?TIMEOUT" % (ip, port)) except socket.error as e: print("%:%s ?CLOSED" % (ip, port)) finally s.close() port_scan(sys.argv[1], ports)
Question 27
Single choice
A tester who is performing a penetration test discovers an older firewall that is known to have serious vulnerabilities to remote attacks but is not part of the original list of IP addresses for the engagement. Which of the following is the BEST option for the tester to take?
-
A
Segment the firewall from the cloud.
-
B
Scan the firewall for vulnerabilities.
-
C
Notify the client about the firewall.
-
D
Apply patches to the firewall.
Reveal answer details
Close answer details
Correct answerC
ExplanationThe best option for the tester to take is to notify the client about the firewall. The firewall is not part of the original list of IP addresses for the engagement, which means it is out of scope and should not be tested without permission. The tester should inform the client about the existence and potential risks of the firewall, and ask if they want to include it in the scope or not.
Question 28
Single choice
Which of the following is the most appropriate action to take when a client requests a penetration testing report that may be subject to confidentiality agreements?
-
A
Provide an example report from a prior penetration test engagement.
-
B
Allow the client to only view the information while in secure spaces.
-
C
Determine which reports are no longer under a period of confidentiality.
-
D
Provide raw output from penetration testing tools.
Reveal answer details
Close answer details
Correct answerC
ExplanationSharing reports that are no longer under a confidentiality agreement ensures compliance with legal and ethical obligations while satisfying the client's request. This aligns with CompTIA Pentest+ objectives under legal and ethical considerations for penetration testers. uk.co.certification.simulator.questionpool.PList@77fe2208
Question 29
Single choice
A penetration tester is taking screen captures of hashes obtained from a domain controller. Which of the following best explains why the penetration tester should immediately obscure portions of the images before saving?
-
A
To maintain confidentiality of data/information
-
B
To avoid disclosure of how the hashes were obtained
-
C
To make the hashes appear shorter and easier to crack
-
D
To prevent analysis based on the type of hash
Reveal answer details
Close answer details
Correct answerA
ExplanationWhen a penetration tester captures screen images that include hashes from a domain controller, obscuring parts of these images before saving is crucial to maintain the confidentiality of sensitive data. Hashes can be considered sensitive information as they represent a form of digital identity for users within an organization. Revealing these hashes in full could lead to unauthorized access if the hashes were to be cracked or otherwise misused by malicious actors. By partially obscuring the images, the penetration tester ensures that the data remains confidential and reduces the risk of compromising user accounts and the integrity of the organization's security posture.
Question 30
Single choice
In the process of active service enumeration, a penetration tester identifies an SMTP daemon running on one of the target company's servers. Which of the following actions would BEST enable the tester to perform phishing in a later stage of the assessment?
-
A
Test for RFC-defined protocol conformance.
-
B
Attempt to brute force authentication to the service.
-
C
Perform a reverse DNS query and match to the service banner.
-
D
Check for an open relay configuration.
Reveal answer details
Close answer details
Correct answerD
ExplanationSMTP is a protocol associated with mail servers. Therefore, for a penetration tester, an open relay configuration can be exploited to launch phishing attacks.
Question 31
Single choice
A penetration tester completed a vulnerability scan against a web server and identified a single but severe vulnerability. Which of the following is the BEST way to ensure this is a true positive?
-
A
Run another scanner to compare.
-
B
Perform a manual test on the server.
-
C
Check the results on the scanner.
-
D
Look for the vulnerability online.
Reveal answer details
Close answer details
Question 32
Single choice
Which of the following describes the reason why a penetration tester would run the command sdelete mimikatz. * on a Windows server that the tester compromised?
-
A
To remove hash-cracking registry entries
-
B
To remove the tester-created Mimikatz account
-
C
To remove tools from the server
-
D
To remove a reverse shell from the system
Reveal answer details
Close answer details
Question 33
Single choice
A penetration tester captures SMB network traffic and discovers that users are mistyping the name of a fileshare server. This causes the workstations to send out requests attempting to resolve the fileshare server's name. Which of the following is the best way for a penetration tester to exploit this situation?
-
A
Relay the traffic to the real file server and steal documents as they pass through.
-
B
Host a malicious file to compromise the workstation.
-
C
Reply to the broadcasts with a fake IP address to deny access to the real file server.
-
D
Respond to the requests with the tester's IP address and steal authentication credentials.
Reveal answer details
Close answer details
Correct answerD
ExplanationIn the scenario where users are mistyping the name of a fileshare server, leading to broadcast requests, the most effective exploitation strategy would be for the penetration tester to respond to these requests with their own IP address (D) and set up a service to capture authentication credentials. This technique is known as a "Man-in-the-Middle" (MitM) attack, where the attacker intercepts communication between two parties. In this case, the tester can exploit the misdirected requests to potentially capture sensitive information such as usernames and passwords.
Question 34
Single choice
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
smbspool //192.160.100.56/print$
-
B
net rpc share -S 192.168.100.56 -U ''
-
C
smbget //192.168.100.56/web -U ''
-
D
smbclient //192.168.100.56/web -U '' -N
Reveal answer details
Close answer details
Correct answerD
ExplanationA 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.
Question 35
Single choice
Which of the following is a rules engine for managing public cloud accounts and resources?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationCloud Custodian is a rules engine for managing public cloud accounts and resources. It allows users to define policies to enable a well managed cloud infrastructure, that's both secure and cost optimized. It consolidates many of the adhoc scripts organizations have into a lightweight and flexible tool, with unified metrics and reporting. Cloud Custodian is a tool that can be used to manage public cloud accounts and resources. Cloud Custodian can define policies and rules for cloud resources based on various criteria, such as tags, filters, actions, modes, or schedules. Cloud Custodian can enforce compliance, governance, security, cost optimization, and operational efficiency for cloud resources. Cloud Custodian supports multiple public cloud providers, such as AWS, Azure, GCP, and Kubernetes. Cloud Brute is a tool that can be used to enumerate cloud platforms and discover hidden files and buckets. Pacu is a tool that can be used to exploit AWS environments and perform post-exploitation actions. Scout Suite is a tool that can be used to audit cloud environments and identify security issues.
Question 36
Single choice
During an assessment, a penetration tester found an application with the default credentials enabled. Which of the following best describes the technical control required to fix this issue?
-
A
-
B
-
C
Multifactor authentication
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationSystem hardening involves securing a system by reducing its surface of vulnerability, which includes changing default credentials, disabling unnecessary services, and applying security patches. Details: Password encryption: Secures passwords but does not address the issue of default credentials. System hardening: Comprehensive approach to securing the system, including changing default credentials. Multifactor authentication: Adds an additional layer of security but does not solve the problem of default credentials being enabled. Patch management: Ensures software is up-to-date but does not directly address default credentials. References: System hardening is a fundamental practice in securing systems and preventing unauthorized access, as detailed in security best practices and guidelines.
Question 37
Single choice
Which of the following provides an exploitation suite with payload modules that cover the broadest range of target system types?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Question 38
Single choice
A penetration tester who is performing an engagement notices a specific host is vulnerable to EternalBlue. Which of the following would BEST protect against this vulnerability?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerD
ExplanationPatch management is the process of identifying, downloading, and installing security patches for a system in order to address new vulnerabilities and software exploits. In the case of EternalBlue, the vulnerability was addressed by Microsoft in the form of a security patch. Installing this patch on the vulnerable host will provide protection from the vulnerability. Additionally, organizations should implement a patch management program to regularly check for and install security patches for the systems in their environment. Network segmentation (A) can limit the impact of a compromise by separating different parts of the network into smaller, more isolated segments. However, it does not address the vulnerability itself. Key rotation (B) is the process of periodically changing cryptographic keys, which can help protect against attacks that rely on stolen or compromised keys. However, it is not directly related to the EternalBlue vulnerability. Encrypted passwords (C) can help protect user credentials in case of a data breach or other compromise, but it does not prevent attackers from exploiting the EternalBlue vulnerability. References: CompTIA PenTest+ Certification Guide, Chapter 1: Pre-engagement Interactions, Page 21.
Question 39
Single choice
A potential reason for communicating with the client point of contact during a penetration test is to provide resolution if a testing component crashes a system or service and leaves them unavailable for both legitimate users and further testing. Which of the following best describes this concept?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerC
ExplanationCommunicating with the client point of contact during a penetration test, especially when a testing component crashes a system or service, is crucial for remediation. Remediation involves the process of correcting or mitigating vulnerabilities that have been identified during the test. In the context of a system or service becoming unavailable, it's essential to promptly address and resolve the issue to restore availability and ensure the continuity of legitimate business operations. This communication ensures that the client is aware of the incident and can work together with the penetration tester to implement corrective actions, thereby minimizing the impact on the business and further testing activities.
Question 40
Single choice
A new client hired a penetration-testing company for a month-long contract for various security assessments against the client's new service. The client is expecting to make the new service publicly available shortly after the assessment is complete and is planning to fix any findings, except for critical issues, after the service is made public. The client wants a simple report structure and does not want to receive daily findings. Which of the following is most important for the penetration tester to define FIRST?
-
A
Establish the format required by the client.
-
B
Establish the threshold of risk to escalate to the client immediately.
-
C
Establish the method of potential false positives.
-
D
Establish the preferred day of the week for reporting.
Reveal answer details
Close answer details
Question 41
Single choice
A penetration tester will be performing a vulnerability scan as part of the penetration test on a client's website. The tester plans to run several Nmap scripts that probe for vulnerabilities while avoiding detection. Which of the following Nmap options will the penetration tester MOST likely utilize?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationNmap is a tool that can perform network scanning and enumeration by sending packets to hosts and analyzing their responses. The command Nmap -p 445 -n - T4 --open 172.21.0.0/16 would scan for SMB port 445 over a /16 network with the following options: -p 445 specifies the port number to scan. -n disables DNS resolution, which can speed up the scan by avoiding unnecessary queries. -T4 sets the timing template to aggressive, which increases the speed of the scan by sending packets faster and waiting less for responses. -Open only shows hosts that have open ports, which can reduce the output and focus on relevant results. The other commands are not optimal for scanning SMB port 445 over a /16 network when stealth is not a concern and the task is time sensitive.
Question 42
Single choice
A software company has hired a penetration tester to perform a penetration test on a database server. The tester has been given a variety of tools used by the company's privacy policy. Which of the following would be the BEST to use to find vulnerabilities on this server?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerC
ExplanationReferences: https://phoenixnap.com/blog/best-penetration-testing-tools
Question 43
Single choice
An organization's Chief Information Security Officer debates the validity of a critical finding from a penetration assessment that was completed six months ago. Which of the following post-report delivery activities would have most likely prevented this scenario?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationClient acceptance (A) is a critical post-report delivery activity that involves the client formally accepting the findings and conclusions of a penetration assessment report. This process usually includes a review of the findings by the client, discussions about the impact, and agreement on the accuracy and relevance of the reported vulnerabilities and issues. Ensuring client acceptance soon after the delivery of the report can prevent scenarios where the validity of findings is debated long after the assessment, as in the case described. Data destruction process (B), attestation of findings (C), and lessons learned (D) are also important aspects of a penetration testing engagement, but they do not directly address the issue of the client disputing the findings well after the report has been delivered. Client acceptance ensures both parties are in agreement on the outcomes of the assessment, minimizing disputes about the findings later on.
Question 44
Single choice
Given the following user-supplied data: www.comptia.com/info.php? id=1 AND 1=1 Which of the following attack techniques is the penetration tester likely implementing?
-
A
Boolean-based SQL injection
-
B
-
C
Stored cross-site scripting
-
D
Reflected cross-site scripting
Reveal answer details
Close answer details
Correct answerA
ExplanationThe user-supplied data www.comptia.com/info.php?id=1 AND 1=1 is indicative of a Boolean-based SQL injection attack. In this attack, the attacker manipulates a SQL query by inserting additional SQL logic that will always evaluate to true (in this case, AND 1=1) to gain unauthorized access to database information. This type of attack exploits improper input validation in web applications to manipulate database queries. The other attack techniques listed (Time-based SQL injection, Stored cross-site scripting, Reflected cross-site scripting) involve different methodologies and are not demonstrated by the given user-supplied data.
Question 45
Single choice
A penetration tester was able to gain access to a plaintext file on a user workstation. Upon opening the file, the tester notices some strings of randomly generated text. The tester is able to use these strings to move laterally throughout the network by accessing the fileshare on a web application. Which of the following should the organization do to remediate the issue?
-
A
-
B
Implement password management solution.
-
C
-
D
Utilize certificate management.
Reveal answer details
Close answer details
Correct answerB
ExplanationThe presence of plaintext strings that can be used to move laterally across the network suggests that passwords or sensitive tokens are stored insecurely. Implementing a password management solution would help mitigate this issue by ensuring that passwords are stored securely and are not exposed in plaintext. Password managers typically use strong encryption to protect stored credentials and provide secure access to them. Sanitizing user input, rotating keys, and utilizing certificate management address different aspects of security but do not directly resolve the issue of insecure password storage. References: Importance of password management: NIST Password Guidelines Examples of security breaches due to poor password management practices: Forge.
Question 46
Single choice
Which of the following documents should be consulted if a client has an issue accepting a penetration test report that was provided?
-
A
-
B
Signed authorization letter
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationThe Rules of Engagement (RoE) document is crucial when there's a dispute or issue with accepting a penetration test report. The RoE outlines the scope, methods, timing, legal considerations, and objectives of a penetration test. It serves as a guideline for both the client and the testing team on what is expected and permissible during the assessment. If there are issues with the report, referring back to the agreed-upon RoE can clarify whether the test was conducted within the agreed parameters and help resolve any disputes. The signed authorization letter, statement of work, and non-disclosure agreement are also important documents but are more related to the permission, scope of work, and confidentiality aspects of the engagement, respectively, rather than the specifics of how the test was to be conducted, which is what the RoE covers.
Question 47
Single choice
A penetration tester has been hired to perform a physical penetration test to gain access to a secure room within a client's building. Exterior reconnaissance identifies two entrances, a WiFi guest network, and multiple security cameras connected to the Internet. Which of the following tools or techniques would BEST support additional reconnaissance?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Question 48
Single choice
A penetration tester wrote the following script to be used in one engagement:  Which of the following actions will this script perform?
-
A
-
B
Listen for a reverse shell.
-
C
Attempt to flood open ports.
-
D
Create an encrypted tunnel.
Reveal answer details
Close answer details
Correct answerA
ExplanationThe script will perform a port scan on the target IP address, looking for open ports on a list of common ports. A port scan is a technique that probes a network or a system for open ports, which can reveal potential vulnerabilities or services running on the host.
Question 49
Single choice
Which section of a penetration testing report provides a high-level overview of findings, focusing on critical issues and their impact, and is intended for non-technical stakeholders?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationAn executive summary provides a high-level overview of findings, focusing on critical issues and their impact. It is intended for non-technical stakeholders, aligning with CompTIA Pentest+ objectives on reporting and delivering results to diverse audiences. uk.co.certification.simulator.questionpool.PList@1d24981b
Question 50
Single choice
During an assessment, a penetration tester found a web component with no authentication requirements. The web component also allows file uploads and is hosted on one of the target public web servers. Which of the following actions should the penetration tester perform next?
-
A
Continue the assessment and mark the finding as critical.
-
B
Attempting to remediate the issue temporally.
-
C
Notify the primary contact immediately.
-
D
Shutting down the web server until the assessment is finished.
Reveal answer details
Close answer details
Question 51
Single choice
A penetration tester has gained access to a network device that has a previously unknown IP range on an interface. Further research determines this is an always-on VPN tunnel to a third-party supplier. Which of the following is the BEST action for the penetration tester to take?
-
A
Utilize the tunnel as a means of pivoting to other internal devices.
-
B
Disregard the IP range, as it is out of scope.
-
C
Stop the assessment and inform the emergency contact.
-
D
Scan the IP range for additional systems to exploit.
Reveal answer details
Close answer details
Question 52
Single choice
Performing a penetration test against an environment with SCADA devices brings additional safety risk because the:
-
A
devices produce more heat and consume more power.
-
B
devices are obsolete and are no longer available for replacement.
-
C
protocols are more difficult to understand.
-
D
devices may cause physical world effects.
Reveal answer details
Close answer details
Correct answerD
Explanation"A significant issue identified by Wiberg is that using active network scanners, such as Nmap, presents a weakness when attempting port recognition or service detection on SCADA devices. Wiberg states that active tools such as Nmap can use unusual TCP segment data to try and find available ports. Furthermore, they can open a massive amount of connections with a specific SCADA device but then fail to close them gracefully." And since SCADA and ICS devices are designed and implemented with little attention having been paid to the operational security of these devices and their ability to handle errors or unexpected events, the presence idle open connections may result into errors that cannot be handled by the devices. References: https://www.hindawi.com/journals/scn/2018/3794603/
Question 53
Single choice
In an unprotected network file repository, a penetration tester discovers a text file containing usernames and passwords in cleartext and a spreadsheet containing data for 50 employees, including full names, roles, and serial numbers. The tester realizes some of the passwords in the text file follow the format: <name- serial_number>. Which of the following would be the best action for the tester to take NEXT with this information?
-
A
Create a custom password dictionary as preparation for password spray testing.
-
B
Recommend using a password manage/vault instead of text files to store passwords securely.
-
C
Recommend configuring password complexity rules in all the systems and applications.
-
D
Document the unprotected file repository as a finding in the penetration-testing report.
Reveal answer details
Close answer details
Question 54
Single choice
A penetration tester has extracted password hashes from the lsass.exe memory process. Which of the following should the tester perform NEXT to pass the hash and provide persistence with the newly acquired credentials?
-
A
Use Patator to pass the hash and Responder for persistence.
-
B
Use Hashcat to pass the hash and Empire for persistence.
-
C
Use a bind shell to pass the hash and WMI for persistence.
-
D
Use Mimikatz to pass the hash and PsExec for persistence.
Reveal answer details
Close answer details
Correct answerD
ExplanationMimikatz is a credential hacking tool that can be used to extract logon passwords from the LSASS process and pass them to other systems. Once the tester has the hashes, they can then use PsExec, a command-line utility from Sysinternals, to pass the hash to the remote system and authenticate with the new credentials. This provides the tester with persistence on the system, allowing them to access it even after a reboot. "A penetration tester who has extracted password hashes from the lsass.exe memory process can use various tools to pass the hash and gain access to other systems using the same credentials. One tool commonly used for this purpose is Mimikatz, which can extract plaintext passwords from memory or provide a pass-the-hash capability. After gaining access to a system, the tester can use various tools for persistence, such as PsExec or WMI." (CompTIA PenTest+ Study Guide, p. 186)
Question 55
Multiple choice
The results of an Nmap scan are as follows: Starting Nmap 7.80 ( https://nmap.org ) at 2021-01-24 01:10 EST Nmap scan report for ( 10.2.1.22 ) Host is up (0.0102s latency). Not shown: 998 filtered ports Port State Service 80/tcp open http |_http-title: 80F 22% RH 1009.1MB (text/html) |_http-slowloris-check: | VULNERABLE: | Slowloris DoS Attack | <..> Device type: bridge|general purpose Running (JUST GUESSING) : QEMU (95%) OS CPE: cpe:/a:qemu:qemu No exact OS matches found for host (test conditions non-ideal). OS detection performed. Please report any incorrect results at https://nmap.org/submit/. Nmap done: 1 IP address (1 host up) scanned in 107.45 seconds Which of the following device types will MOST likely have a similar response? (Choose two.)
-
A
-
B
-
C
Active Directory domain controller
-
D
-
E
-
F
Reveal answer details
Close answer details
Correct answersB, D
Explanationhttps://www.netscout.com/what-is-ddos/slowloris-attacks From the http-title in the output, this looks like an IoT device with RH implying Relative Humidity, that offers a web-based interface for visualizing the results.
Question 56
Single choice
Penetration tester who was exclusively authorized to conduct a physical assessment noticed there were no cameras pointed at the dumpster for company. The penetration tester returned at night and collected garbage that contained receipts for recently purchased networking :. The models of equipment purchased are vulnerable to attack. Which of the following is the most likely next step for the penetration?
-
A
Alert the target company of the discovered information.
-
B
Verify the discovered information is correct with the manufacturer.
-
C
Scan the equipment and verify the findings.
-
D
Return to the dumpster for more information.
Reveal answer details
Close answer details
Correct answerC
ExplanationThe most likely next step for the penetration tester is to scan the equipment and verify the findings, which is a process of using tools or techniques to probe or test the target equipment for vulnerabilities or weaknesses that can be exploited. Scanning and verifying the findings can help the penetration tester confirm that the models of equipment purchased are vulnerable to attack, and identify the specific vulnerabilities or exploits that affect them. Scanning and verifying the findings can also help the penetration tester prepare for the next steps of the assessment, such as exploiting or reporting the vulnerabilities. Scanning and verifying the findings can be done by using tools such as Nmap, which can scan hosts and networks for ports, services, versions, OS, or other information, or Metasploit, which can exploit hosts and networks using various payloads or modules. The other options are not likely next steps for the penetration tester. Alerting the target company of the discovered information is not a next step, but rather a final step, that involves reporting the findings and recommendations to the client after completing the assessment. Verifying the discovered information with the manufacturer is not a next step, as it may not provide accurate or reliable information about the vulnerabilities or exploits that affect the equipment, and it may also alert the manufacturer or the client of the assessment. Returning to the dumpster for more information is not a next step, as it may not yield any more useful or relevant information than what was already collected from the receipts.
Question 57
Multiple choice
Which of the following are the MOST important items to include in the final report for a penetration test? (Choose two.)
-
A
The CVSS score of the finding
-
B
The network location of the vulnerable device
-
C
The vulnerability identifier
-
D
The client acceptance form
-
E
The name of the person who found the flaw
-
F
The tool used to find the issue
Reveal answer details
Close answer details
Question 58
Single choice
A penetration tester discovered a vulnerability that provides the ability to upload to a path via directory traversal. Some of the files that were discovered through this vulnerability are:  Which of the following is the BEST method to help an attacker gain internal access to the affected machine?
-
A
Edit the discovered file with one line of code for remote callback
-
B
Download .pl files and look for usernames and passwords
-
C
Edit the smb.conf file and upload it to the server
-
D
Download the smb.conf file and look at configurations
Reveal answer details
Close answer details
Question 59
Single choice
The output from a penetration testing tool shows 100 hosts contained findings due to improper patch management. Which of the following did the penetration tester perform?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationA vulnerability scan is a type of penetration testing tool that is used to scan a network for vulnerabilities. A vulnerability scan can detect misconfigurations, missing patches, and other security issues that could be exploited by attackers. In this case, the output shows that 100 hosts had findings due to improper patch management, which means that the tester performed a vulnerability scan.
Question 60
Single choice
Running a vulnerability scanner on a hybrid network segment that includes general IT servers and industrial control systems:
-
A
will reveal vulnerabilities in the Modbus protocol.
-
B
may cause unintended failures in control systems.
-
C
may reduce the true positive rate of findings.
-
D
will create a denial-of-service condition on the IP networks.
Reveal answer details
Close answer details
Correct answerB
ExplanationReferences: https://www.hsdl.org/?view&did=7262
Question 61
Single choice
When developing a shell script intended for interpretation in Bash, the interpreter /bin/bash should be explicitly specified. Which of the following character combinations should be used on the first line of the script to accomplish this goal?
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
Correct answerE
ExplanationReferences: https://linuxconfig.org/bash-scripting-tutorial-for-beginners#!/bin/bash---# and ! makes this line special because # is used as comment line in bash. ! is called
Question 62
Single choice
A security analyst needs to perform a scan for SMB port 445 over a/16 network. Which of the following commands would be the BEST option when stealth is not a concern and the task is time sensitive?
-
A
Nmap -s 445 -Pn -T5 172.21.0.0/16
-
B
Nmap -p 445 -n -T4 -open 172.21.0.0/16
-
C
Nmap -sV --script=smb* 172.21.0.0/16
-
D
Nmap -p 445 -max -sT 172. 21.0.0/16
Reveal answer details
Close answer details
Correct answerB
ExplanationNmap is a tool that can perform network scanning and enumeration by sending packets to hosts and analyzing their responses. The command Nmap -p 445 -n - T4 -open 172.21.0.0/16 would scan for SMB port 445 over a /16 network with the following options: -p 445 specifies the port number to scan. -n disables DNS resolution, which can speed up the scan by avoiding unnecessary queries. -T4 sets the timing template to aggressive, which increases the speed of the scan by sending packets faster and waiting less for responses. -Open only shows hosts that have open ports, which can reduce the output and focus on relevant results. The other commands are not optimal for scanning SMB port 445 over a /16 network when stealth is not a concern and the task is time sensitive.
Question 63
Single choice
In Java and C/C++, variable initialization is critical because:
-
A
the unknown value, when used later, will cause unexpected behavior.
-
B
the compiler will assign null to the variable, which will cause warnings and errors.
-
C
the initial state of the variable creates a race condition.
-
D
the variable will not have an object type assigned to it.
Reveal answer details
Close answer details
Correct answerA
ExplanationVariable initialization is the process of assigning a value to a variable at the time of declaration. In Java and C/C++, variable initialization is critical because if a variable is not initialized, it may contain a garbage value that is unpredictable and may lead to erroneous results or runtime errors when the variable is used later in the program. For example, if a variable is used in a mathematical expression or a conditional statement, the outcome may depend on the value of the variable. If the variable is not initialized, the outcome may be different each time the program is run, or the program may crash due to an invalid operation. Therefore, it is a good practice to always initialize variables before using them, or to check if they have been initialized before using them 123.
Question 64
Single choice
A penetration tester is conducting an assessment against a group of publicly available web servers and notices a number of TCP resets returning from one of the web servers. Which of the following is MOST likely causing the TCP resets to occur during the assessment?
-
A
The web server is using a WAF.
-
B
The web server is behind a load balancer.
-
C
The web server is redirecting the requests.
-
D
The local antivirus on the web server Is rejecting the connection.
Reveal answer details
Close answer details
Correct answerA
ExplanationA Web Application Firewall (WAF) is designed to monitor, filter or block traffic to a web application. A WAF will monitor incoming and outgoing traffic from a web application and is often used to protect web servers from attacks such as SQL Injection, Cross-Site Scripting (XSS), and other forms of attacks. If a WAF detects an attack, it will often reset the TCP connection, causing the connection to be terminated. As a result, a penetration tester may see TCP resets when a WAF is present. Therefore, the most likely reason for the TCP resets returning from the web server is that the web server is using a WAF.
Question 65
Single choice
A company requires that all hypervisors have the latest available patches installed. Which of the following would BEST explain the reason why this policy is in place?
-
A
To provide protection against host OS vulnerabilities
-
B
To reduce the probability of a VM escape attack
-
C
To fix any misconfigurations of the hypervisor
-
D
To enable all features of the hypervisor
Reveal answer details
Close answer details
Correct answerB
ExplanationA hypervisor is a type of virtualization software that allows multiple virtual machines (VMs) to run on a single physical host machine. If the hypervisor is compromised, an attacker could potentially gain access to all of the VMs running on that host, which could lead to a significant data breach or other security issues. One common type of attack against hypervisors is known as a VM escape attack. In this type of attack, an attacker exploits a vulnerability in the hypervisor to break out of the VM and gain access to the host machine. From there, the attacker can potentially gain access to other VMs running on the same host. By ensuring that all hypervisors have the latest available patches installed, the company can reduce the likelihood that a VM escape attack will be successful. Patches often include security updates and vulnerability fixes that address known issues and can help prevent attacks.
Question 66
Single choice
A penetration tester is conducting an assessment for an e-commerce company and successfully copies the user database to the local machine. After a closer review, the penetration tester identifies several high-profile celebrities who have active user accounts with the online service. Which of the following is the most appropriate next step?
-
A
Contact the high-profile celebrities.
-
B
Delete the high-profile accounts.
-
C
Immediately contact the client.
-
D
Record the findings in the penetration test report.
Reveal answer details
Close answer details
Correct answerC
ExplanationUpon discovering sensitive information, such as high-profile celebrities' user accounts, the most appropriate and ethical next step is to immediately contact the client. This allows the client to take necessary actions to secure the data and mitigate any potential risks. It is important for a penetration tester to maintain confidentiality and integrity, and directly contacting the celebrities (option A), deleting the accounts (option B), or merely recording the findings without immediate notification (option D) would not be appropriate professional responses.
Question 67
Single choice
A penetration tester performs the following command: curl -l -http2 https://www.comptia.org Which of the following snippets of output will the tester MOST likely receive? 
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationReferences: https://research.securitum.com/http-2-protocol-it-is-faster-but-is-it-also-safer/
Question 68
Single choice
An assessment has been completed, and all reports and evidence have been turned over to the client. Which of the following should be done NEXT to ensure the confidentiality of the client's information?
-
A
Follow the established data retention and destruction process
-
B
Report any findings to regulatory oversight groups
-
C
Publish the findings after the client reviews the report
-
D
Encrypt and store any client information for future analysis
Reveal answer details
Close answer details
Correct answerD
ExplanationAfter completing an assessment and providing the report and evidence to the client, it is important to follow the established data retention and destruction process to ensure the confidentiality of the client's information. This process typically involves securely deleting or destroying any data collected during the assessment that is no longer needed, and securely storing any data that needs to be retained. This helps to prevent unauthorized access to the client's information and protects the client's confidentiality. Reporting any findings to regulatory oversight groups may be necessary in some cases, but it should be done only with the client's permission and in accordance with any relevant legal requirements. Publishing the findings before the client has reviewed the report is also not recommended, as it may breach the client's confidentiality and damage their reputation. Encrypting and storing client information for future analysis is also not recommended unless it is necessary and in compliance with any legal or ethical requirements.
Question 69
Single choice
Which of the following tools is specifically designed for detecting and exploiting SQL injection vulnerabilities in a database server penetration test?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerD
ExplanationSQLmap is specifically designed for detecting and exploiting SQL injection vulnerabilities. For a database server penetration test, it automates the process of identifying vulnerabilities in SQL queries and helps in database enumeration. This corresponds to the CompTIA Pentest+ objective on identifying vulnerabilities in application security. uk.co.certification.simulator.questionpool.PList@7225fa3d
|