GIAC Penetration Tester (GPEN) Exam-style mock test
GIAC GPEN Penetration Tester Practice Exams|Practice test
Full explanations
Exam format
Pass line 73%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Planning, Scoping, and Reconnaissance
A B2B SaaS company hires your team to test its customer portal, which is hosted on a third-party cloud provider. The signed rules of engagement list only the application domain. During kickoff the client's CISO asks you to also probe the underlying cloud management console. What should you do first?
✓Obtain written authorization from the cloud provider and amend the scope before any testing of their console begins
Correct. The console is owned by the cloud provider, so written authorization from that third party and a formal scope amendment are required before testing.
・Proceed with the console test because the CISO gave verbal approval during the kickoff meeting
Incorrect. Verbal approval from the client does not authorize testing of assets owned by a third-party provider.
・Test the console but avoid any action that could cause a denial of service condition
Incorrect. Avoiding denial of service does not resolve the missing authorization from the asset owner.
・Decline all console testing permanently since cloud consoles are always out of scope
Incorrect. Cloud consoles can be in scope if the owning party authorizes testing in writing.
Explanation
Assets owned by third parties require explicit written authorization from the owner, not just the client, before they can be tested.
Example2 · Scanning, Enumeration, and Vulnerability Analysis
During an authorized external test of a B2B SaaS provider, ICMP echo requests to the customer portal range are silently dropped by an upstream filter, yet the HTTPS service is clearly reachable. You need Nmap to confirm which hosts are live without relying on ping. Which option set best achieves live-host discovery here?
・Run -PR to issue ARP requests across the external portal subnet and map responding MAC addresses
Incorrect. ARP discovery (-PR) only works on the local link, so it cannot reach hosts across an external internet path.
・Run -sn alone and trust the default ICMP and ARP probes to enumerate every responsive host
Incorrect. Default -sn relies on ICMP and other probes that the upstream filter is dropping, so it would mark live hosts as down.
・Run -Pn -sS -p 443 so Nmap skips host discovery and probes the HTTPS port directly on each target
Incorrect. -Pn with a SYN scan does probe port 443, but it disables discovery entirely rather than performing a discovery that confirms the host is live.
✓Run -PS443 to perform a TCP SYN ping against the web port and treat a SYN/ACK as a live host
Correct. A TCP SYN ping to the reachable 443 port (-PS443) elicits a SYN/ACK from live hosts, bypassing the ICMP filter and confirming they are up.
Explanation
When ICMP is filtered but a TCP service is reachable, TCP SYN ping discovery (-PS<port>) against that open port reliably identifies live hosts.
Example3 · Exploitation and Password Attacks
During an authorized test of NimbusSaaS, a B2B analytics platform, you exploit an unpatched Windows service and need a stable interactive session that lets you migrate processes and run post modules, while outbound firewall rules only permit established connections back to your attacker host. Which Metasploit payload best fits these constraints?
・windows/shell/bind_tcp, which opens a listener on the target so you can connect inbound to the compromised host at will
Incorrect. A bind payload requires the target to accept inbound connections, which the firewall policy permitting only outbound established connections blocks.
✓windows/meterpreter/reverse_tcp, which calls back to your handler and provides the full post-exploitation feature set
Correct. A reverse_tcp Meterpreter payload connects outbound to your handler (satisfying the firewall) and gives full post-exploitation capabilities like migration.
・windows/exec with a command string that runs a single process and then terminates the session immediately
Incorrect. windows/exec runs one command and does not establish an interactive session for migration or post modules.
・windows/meterpreter/bind_tcp, which waits for your connection on an open target port
Incorrect. A bind payload needs an inbound connection to the target, which the outbound-only firewall rule prevents.
Explanation
Reverse Meterpreter payloads suit outbound-only egress policies and provide the full feature set needed for migration and post-exploitation.
Example4 · Post-Exploitation, Pivoting, and Privilege Escalation
During an authorized engagement against a healthcare services firm, you gain a foothold on a Windows workstation in the billing department. The client wants a persistence mechanism that survives reboots but is likely to be caught by endpoint monitoring that watches the registry Run keys. Which technique best meets the goal of surviving reboots while avoiding the monitored Run keys?
✓Create a scheduled task that triggers at user logon
Correct. A scheduled task triggered at logon survives reboots and does not touch the monitored registry Run keys, satisfying both constraints.
・Add a new value pointing to your payload under the HKCU Run key
Incorrect. Writing to the HKCU Run key is exactly the location the described monitoring watches, so it would be detected.
・Register a Windows service set to start automatically at boot and launch your payload under the SYSTEM account at each startup
Incorrect. While an auto-start service does survive reboots, it is a heavier, noisier footprint and is not what the scenario asks for relative to the Run-key constraint; a logon scheduled task is the cleaner fit.
・Drop your payload file on the user's desktop
Incorrect. A file on the desktop only runs if the user manually opens it, providing no reliable reboot persistence.
Explanation
A logon-triggered scheduled task provides reboot-surviving persistence without using the registry Run keys that the client's monitoring inspects.
Example5 · Web, Wireless, Cloud Attacks, and Reporting
During a web app test of a healthcare firm's patient portal, a tester finds that the appointment search field returns a database error when a single quote is submitted. The tester wants to confirm the parameter is injectable without triggering obvious errors in logs. Which technique best confirms the vulnerability while minimizing disruptive output?
✓Inject a boolean-based condition such as ' AND 1=1-- and compare the response to ' AND 1=2--
Correct. Boolean-based blind testing compares true and false conditions to confirm injection without extracting bulk data or generating noisy errors.
・Submit a UNION SELECT with dozens of columns until the dumped patient data appears directly on the results page for the tester
Incorrect. Dumping patient records via a large UNION query is disruptive, noisy, and unnecessary merely to confirm the flaw exists.
・Upload a web shell to the server
Incorrect. Uploading a web shell is a later exploitation step and does not confirm SQL injection.
・Run a port scan against the database host
Incorrect. A port scan of the database host does not test the input parameter for injection.
Explanation
Confirming injection should use low-impact boolean true/false comparisons before any data extraction.
Example6 · Planning, Scoping, and Reconnaissance
A healthcare services firm hires your team to test its patient-portal web application. During the kickoff call, the IT director mentions that an adjacent billing subnet 'might be interesting to look at too.' What should you do before including that subnet in your testing activity?
・Begin a quick, non-intrusive scan of the billing subnet first and document anything notable to raise with the client later
Incorrect. Scanning first and asking later means touching systems you have no written authorization to test, which is out of scope.
✓Obtain written authorization that explicitly adds the billing subnet to the agreed scope
Correct. Any target added after kickoff must be covered by updated written authorization that explicitly includes the billing subnet.
・Treat the verbal comment as sufficient approval because the IT director owns both networks
Incorrect. A verbal 'might be interesting' is not authorization, even from the system owner; rules of engagement must be documented.
・Exclude the billing subnet permanently since only the portal appears in the signed contract
Incorrect. The subnet can be tested if the client formally updates scope; permanent exclusion is not required.
Explanation
Testing outside the signed, written scope exposes the tester to legal and operational risk; scope changes require explicit written authorization.
Example7 · Planning, Scoping, and Reconnaissance
During the scoping call for a penetration test of retailer BrightCart, the IT director asks that the team also attempt social-engineering phone calls to the call center, which was not listed in the original authorization. What is the correct action for the tester before proceeding?
✓Update the rules of engagement document and obtain written authorization that explicitly includes the call center before any social-engineering activity begins
Correct. Any change to scope must be captured in the rules of engagement with signed written authorization to protect both parties legally before new activity starts.
・Proceed with the calls since the IT director on the scoping call has verbally approved the expanded activity
Incorrect. A verbal approval on a call is not sufficient authorization and leaves the tester legally exposed.
・Begin the social-engineering calls but limit them to business hours only
Incorrect. Restricting to business hours does not address the missing written authorization for the new target.
・Refuse all social-engineering testing because it was not in the first draft
Incorrect. Social engineering can be validly scoped; the issue is authorization, not an outright refusal.
Explanation
Scope changes require documented, signed authorization in the rules of engagement before the tester acts on them.
Example8 · Planning, Scoping, and Reconnaissance
While researching BrightCart before any authorized active testing, a tester wants to collect information without sending traffic to BrightCart-owned systems. Which activity qualifies as passive reconnaissance?
・Running a full TCP connect port scan against the BrightCart public web server to enumerate listening services
Incorrect. A TCP connect scan sends packets directly to the target and is active reconnaissance.
✓Querying third-party WHOIS and public DNS records and reviewing BrightCart's cached pages in search engines
Correct. Pulling WHOIS, public DNS, and search-engine caches gathers data from third parties without touching BrightCart systems, which is passive.
・Sending crafted HTTP requests to the BrightCart checkout page to fingerprint the web framework
Incorrect. Sending crafted requests to the target interacts with its systems and is active.
・Performing a DNS zone transfer directly against the BrightCart authoritative name server
Incorrect. A zone transfer request goes directly to the target's name server, making it active.
Explanation
Passive reconnaissance gathers data from third-party or public sources without sending traffic to the target's own assets.
Example9 · Planning, Scoping, and Reconnaissance
A tester is building a target profile of BrightCart and finds that employees frequently post job titles and internal tool names on a professional networking site. How is this OSINT most useful in the engagement?
・It immediately grants valid credentials to BrightCart's internal applications without further effort
Incorrect. Public job titles do not provide working credentials; they only inform guesses.
・It confirms that BrightCart has already been breached by another threat actor
Incorrect. Finding public posts does not indicate a prior breach of the organization.
✓It supports building a realistic username convention and phishing pretext for later phases
Correct. Harvested titles and tool names help infer username formats and craft credible phishing pretexts for later attack phases.
・It replaces the need to run any active scanning against BrightCart's network
Incorrect. OSINT complements but does not replace authorized active scanning.
Explanation
Employee OSINT informs username conventions and social-engineering pretexts, feeding later phases rather than providing direct access.
Example10 · Planning, Scoping, and Reconnaissance
A regional bank hires a penetration tester to assess its online banking portal. During the kickoff, the client lists several production systems but is vague about third-party payment gateways it does not own. What should the tester insist on documenting before starting?
・A verbal agreement with the client project manager confirming the general timeline
Incorrect. A verbal timeline agreement does not establish legal authorization or protect the tester from accessing systems the client cannot authorize.
✓Written authorization specifying exactly which IP ranges and hosts are in scope
Correct. Written authorization that enumerates in-scope IP ranges and hosts prevents testing third-party assets the bank does not own and provides legal cover.
・A list of the bank's preferred scanning tools and their licensing details
Incorrect. Tool preferences are an operational detail, not the authorization boundary that governs what may legally be tested.
・The bank's incident response contact list for after the engagement concludes
Incorrect. Post-engagement contacts matter for reporting but do not define or authorize the testing scope beforehand.
Explanation
Rules of engagement must include written authorization with explicit in-scope targets so the tester never touches assets (like third-party gateways) the client lacks authority to approve.
Example11 · Planning, Scoping, and Reconnaissance
While gathering intelligence on a financial services firm, the tester wants to stay entirely passive so no traffic reaches the target. Which activity remains strictly passive?
・Running a SYN scan against the firm's published mail server to find open ports
Incorrect. A SYN scan sends packets to the target, making it active reconnaissance that can be logged by the firm.
✓Querying public WHOIS and certificate transparency logs for the firm's domains
Correct. Querying WHOIS and certificate transparency logs uses third-party public records, so no traffic touches the firm's infrastructure.
・Sending crafted DNS zone transfer requests directly to the firm's name servers
Incorrect. A DNS zone transfer request is sent directly to the firm's name servers and is therefore active interaction with the target.
・Banner grabbing the firm's VPN concentrator to identify the software version
Incorrect. Banner grabbing connects to the target's service to read its response, which is active reconnaissance.
Explanation
Passive reconnaissance avoids any direct contact with the target; consulting third-party public registries and transparency logs qualifies, whereas scanning, zone transfers, and banner grabbing all send traffic to the target.
Example12 · Planning, Scoping, and Reconnaissance
A regional manufacturing distributor hires you to test its order-entry web portal. During the kickoff, the operations director casually asks you to "also poke at" the third-party logistics provider's extranet because it sits on the same network segment. What is the correct action before you touch that system?
・Test it immediately since it shares the segment and is clearly reachable from the in-scope portal infrastructure
Incorrect. Network reachability does not grant legal authorization; testing an unauthorized system is a serious scope violation.
✓Obtain written authorization from the asset owner and add it to the rules of engagement
Correct. Any additional target requires signed authorization from the party that owns it before being added to the documented rules of engagement.
・Document it as out of scope and quietly scan it anyway to gauge exposure for the final report
Incorrect. Scanning a system you have flagged as out of scope is unauthorized activity regardless of your intent.
・Decline all testing of the extranet permanently because third parties can never be included in any engagement
Incorrect. Third parties can be included if their owner provides proper written authorization; a permanent refusal is overly rigid.
Explanation
Shared network access never substitutes for authorization. The tester must secure signed permission from the actual asset owner and formally add the target to the rules of engagement.
Example13 · Planning, Scoping, and Reconnaissance
During the reconnaissance phase against the distributor's public presence, you want to enumerate subdomains and employee email addresses without sending any traffic to the target's own servers. Which approach best meets this requirement?
・Run an authenticated vulnerability scan against the distributor's mail gateway and portal
Incorrect. An authenticated scan sends substantial active traffic directly to the target's servers.
✓Passive OSINT using search engines, certificate transparency logs, and public records
Correct. Passive OSINT gathers data from third-party sources, so no probing traffic reaches the target's own infrastructure.
・A full TCP connect scan of the distributor's entire published external IP address range
Incorrect. A TCP connect scan actively engages the target's hosts and is detectable network traffic.
・Aggressive DNS zone transfer attempts against each of the distributor's authoritative name servers
Incorrect. Zone transfer attempts are active queries sent directly to the target's name servers.
Explanation
Passive reconnaissance leverages external data sources such as search engines and certificate transparency, meeting the no-direct-traffic constraint, whereas every active option touches the target.
Example14 · Planning, Scoping, and Reconnaissance
A regional telecom operator hires your team to test its customer self-service portal. During scoping, the client states that the portal shares a load balancer with an unrelated internal HR application that is explicitly out of scope. How should the rules of engagement address this shared device?
・Add the load balancer to scope because it serves the portal that is in scope for the engagement
Incorrect. Sharing hardware with an in-scope asset does not automatically authorize testing the device itself or the other tenant.
✓Document that testing must avoid impacting the HR application and restrict actions against the shared device
Correct. The RoE must protect the out-of-scope HR application by constraining actions against the shared load balancer while still permitting portal testing.
・Exclude the entire portal since it cannot be isolated from the HR application on that hardware
Incorrect. The portal is in scope and can be tested; the shared device simply requires careful handling rather than full exclusion.
・Test the load balancer freely because shared infrastructure is always implicitly in scope
Incorrect. Shared infrastructure is never implicitly in scope; unauthorized testing could damage the out-of-scope tenant.
Explanation
Good scoping resolves shared-asset conflicts by constraining actions to protect out-of-scope systems while still delivering value on the authorized target.
Example15 · Planning, Scoping, and Reconnaissance
Before starting a test of the telecom operator's billing systems, your project lead confirms that a signed authorization document is in place. What is the primary purpose of this document for the penetration testing team?
✓To provide legal authorization that the identified testing activities against the named systems are permitted
Correct. The authorization (often a 'get out of jail free' letter) establishes that the defined activities against the named systems are legally permitted.
・To guarantee that no production outage will ever occur during the scheduled testing window
Incorrect. Authorization does not guarantee zero outages; it grants permission, while risk is managed through planning and the RoE.
・To replace the need for a separate written rules-of-engagement agreement with the client
Incorrect. Authorization and the RoE are distinct documents; one does not replace the other.
・To transfer all financial liability for any discovered vulnerabilities onto the client
Incorrect. The document authorizes testing; it does not reassign liability for pre-existing vulnerabilities.
Explanation
Written authorization is the legal foundation of a test, confirming that specified activities against specified systems are permitted.
▶ Try 10 free questions (graded)