PenTest+ Attacks and Exploits: 304 practice questions
7-day money-back guarantee — full refund within 7 days of purchase if you've completed under 20% of the questions. See pricing →
Certifications Tools Flashcards Career Paths Exam Guides Blog Pricing For Teams About

PenTest+ Attacks and Exploits: 304 practice questions

PenTest+ 304 questions 12 shown free

12 of the 304 Attacks and Exploits questions in the Certsqill PenTest+ bank, shown in full below. Each one carries an explanation for every option, not just the correct one — the wrong answers are where the marks go.

Preparing for PenTest+? Take the free 5-min readiness check →

1. CVSS shows technical severity: Which conclusion best interprets the evidence?

Hard
In a fictional cloud tenant, a database host has CVSS 9.8. It is reachable only from an isolated development subnet, contains synthetic records, and has no observed public route. No exploitation evidence exists. Exhibit: `asset=dev-db-01`; `public_route=false`; `records=synthetic`; `cvss=9.8`; `kev_match=false`. Which conclusion best interprets the evidence?
  1. The finding automatically outranks every issue with a lower score.
    Risk prioritization cannot be determined by CVSS alone; contextual exposure and business consequences also matter.
  2. No public route makes the issue harmless.
    Isolation may reduce exposure but does not eliminate internal reachability, compromise paths, or technical severity.
  3. The score proves active exploitation of the database host.
    A CVSS score does not provide evidence that exploitation is occurring.
  4. CVSS shows technical severity; context determines risk. ✓
    CVSS describes technical severity, while practical priority also depends on reachability, controls, asset importance, exploit conditions, and impact.
The trap
Treats one control as eliminating risk. Confuses severity with observed exploitation. Uses the base score as a universal priority rule.

CVSS indicates technical severity; context determines practical risk and priority.

2. Classify it as vishing and verify reporting: What is the next bounded validation step?

Medium
During an approved simulation for a fictional nonproduction service, a recorded voice call claims to be the help desk and requests a callback. Only listed participants are included, and no credentials are collected. What is the next bounded validation step?
  1. Collect credentials through a simulated login page.
    Credential collection is outside the stated measurement and is unnecessary for validating reporting behavior.
  2. Test the same scenario through SMS.
    SMS would test smishing, a different delivery channel, rather than validate the observed voice scenario.
  3. Call it spearphishing because named participants were targeted.
    Targeting may be specific, but the defining channel in this observation is voice, not email or messaging.
  4. Classify it as vishing and verify reporting. ✓
    A phishing attempt delivered by voice is vishing. Reporting can be checked within the approved cohort without collecting credentials.
The trap
Changes the communication channel. Escalates a bounded exercise into sensitive-data collection. Confuses targeting style with delivery channel.

Classify the voice attempt as vishing and verify reporting within the approved cohort.

3. Validate inventory: What conclusion is currently supported?

Medium
During an approved internal wireless assessment, two access points advertise the same SSID. One has an unexpected BSSID, but both use the expected authentication method. No certificate or client-behavior mismatch is documented. What conclusion is currently supported?
  1. The network is vulnerable to WPS PIN attacks because the BSSID differs.
    The observation provides no evidence about WPS configuration or PIN weakness.
  2. The access point is confirmed as an evil twin.
    A different BSSID is suspicious, but it does not alone prove impersonation.
  3. Validate inventory, certificates, and authentication behavior. ✓
    The unusual BSSID warrants corroboration through expected inventory and additional wireless evidence before assigning root cause.
  4. The matching SSID proves authorized roaming.
    An SSID does not establish ownership, authorization, certificate validity, or intended roaming configuration.
The trap
Treats a network name as proof of legitimacy. Treats one identifier as conclusive attribution. Substitutes an unrelated wireless weakness.

Corroborate the unusual BSSID with inventory, certificates, and authentication behavior.

4. Require IMDSv2 session tokens for metadata requests: Which AWS mechanism best matches that requirement?

Medium
In an authorized office assessment, a workload can request AWS instance metadata without first presenting an IMDSv2 session token. The explicit requirement is to reduce credential exposure through certain SSRF paths. Which AWS mechanism best matches that requirement?
  1. Scan the container image with Trivy for vulnerable packages.
    Trivy analyzes image contents; it does not require metadata session tokens or change instance metadata behavior.
  2. Require IMDSv2 session tokens for metadata requests. ✓
    Requiring IMDSv2 tokens helps mitigate certain SSRF paths that cannot obtain the required session token.
  3. Add an IAM trust policy allowing the workload role to assume itself.
    Trust policies govern who may assume roles and do not require IMDSv2 tokens for metadata requests.
  4. Apply Kubernetes NetworkPolicy to the workload namespace.
    NetworkPolicy governs selected pod traffic and does not configure AWS instance metadata authentication requirements.
The trap
Uses a cluster network control for instance metadata. Confuses image analysis with cloud configuration. Confuses role trust with metadata request protection.

IMDSv2 token requirements directly address the stated metadata request control, though they do not remove all workload risks.

5. 5: What integer does it print?

Easy
In a retail test environment, the following offline Python3 code uses only synthetic literal data. What integer does it print?results = [4, 9, 3, 6, 3, 1] selected = [x for x in results if x < 7] print(len(selected))
  1. 6
    Six incorrectly counts every input value, including nine, which fails the less-than-seven condition.
  2. 4
    Four is incorrect because five values are less than seven, including both occurrences of three.
  3. 5 ✓
    The qualifying values are 4, 3, 6, 3, and 1, so the selected list length is five.
  4. 3
    Three incorrectly counts distinct qualifying values or duplicates inconsistently; list filtering preserves both threes.
The trap
Confuses list length with unique-value count. Ignores the filtering condition. Miscounts qualifying duplicate values.

Five list elements satisfy the less-than-seven condition, so Python prints 5.

6. Use parameterized queries and least-privileged database: Which control best addresses the potential SQL inject

Hard
In a software delivery lab, a tester submits a specially formatted value to a search field and receives a database error. The response does not demonstrate altered query results, and the test uses synthetic records. Which control best addresses the potential SQL injection finding?
  1. Add a WAF rule matching the observed database error.
    A WAF rule can provide defense in depth, but it does not remove unsafe query construction in application code.
  2. Increase database privileges so failed searches complete successfully.
    Additional privileges increase potential impact and do not prevent attacker-controlled input from altering SQL structure.
  3. Suppress detailed database errors.
    Generic error handling reduces information disclosure but does not correct unsafe query construction.
  4. Use parameterized queries and least-privileged database access. ✓
    Parameterized queries separate data from SQL syntax, while least privilege limits impact if another defect remains.
The trap
Confuses reduced disclosure with injection prevention. Treats filtering as the primary remediation. Expands privilege instead of separating code and data.

Use parameterized queries and least privilege; a database error alone does not confirm injection.

7. The service directory presents a possible privileged: What conclusion is best supported?

Hard
The client-provided evidence identifies Windows service Northwind Agent with path `C:\Program Files\Northwind Agent\agent.exe`. The path is unquoted, the service runs as LocalSystem, and standard users have Modify access to the final service directory. What conclusion is best supported?
  1. The service directory presents a possible privileged binary-replacement condition requiring validation. ✓
    Modify access to the service's directory may permit replacement or manipulation of its executable before privileged execution, but the exact file permissions, service restart behavior, and replacement feasibility still require validation.
  2. The finding is lateral movement because the service executes with LocalSystem privileges on the Windows host.
    This is a possible local privilege-escalation condition; no second host or external resource is identified.
  3. This proves exploitation.
    The evidence shows permissions and execution context, not that an unauthorized binary was placed or executed.
  4. No issue exists.
    The service directory is writable by standard users while the service executes with LocalSystem privileges, so a potential privileged service-binary replacement condition exists.
The trap
Treats the absence of confirmed exploitation as absence of risk. Confuses exposure with confirmed compromise. Confuses local privilege escalation with lateral movement.

Writable service-directory permissions and privileged execution support a possible service-binary replacement risk, not confirmed exploitation or lateral movement.

8. Brute force concentrates many candidate guesses on one: Which TWO descriptions correctly distinguish password

Easy
A staging web application is in scope for authentication testing. The client permits low-rate testing against synthetic accounts and specifies that lockout thresholds must be respected. Which TWO descriptions correctly distinguish password spraying from brute force? Select TWO.

Select two. More than one option is correct — every correct one is ticked below.

  1. Credential stuffing tests reused username-password pairs from another breach.
    Credential stuffing reuses known pairs, whereas spraying and brute force generate or select guesses.
  2. Offline hash cracking is the usual definition of password spraying.
    Password spraying commonly targets online authentication; offline hash guessing is a separate technique without online lockout behavior.
  3. Brute force concentrates many candidate guesses on one account. ✓
    Brute force systematically tries numerous candidates against one account or a focused account set.
  4. Password spraying distributes a few common guesses across many accounts. ✓
    Spraying limits repeated attempts against each account by distributing common-password guesses across many accounts.
  5. Brute force uses one fixed password across many accounts.
    Using one or a few passwords across many accounts describes spraying, not concentrated candidate generation.
The trap
Confuses reused credentials with guessing patterns. Confuses online account testing with offline cracking. Reverses the distribution of guesses.

Spraying spreads a few guesses across accounts; brute force concentrates many guesses on an account.

9. The evidence does not establish plaintext recovery: What TWO conclusions are supported?

Medium
During an authorized mobile test-device assessment, the device and a synthetic file server share an isolated lab VLAN. The capture and configuration excerpts are supplied below. The server accepts NTLM for SMB, and SMB signing is disabled. What TWO conclusions are supported? Select TWO.[09:14:02] device=mobile-lab-07 -> fileserver-lab-02 protocol=SMB auth=NTLM status=challenge-response observed [09:14:03] fileserver-lab-02 SMB_signing=disabled NTLM=enabled [09:14:04] capture_note=authentication_material was relayed for validation; no password recovery performed

Select two. More than one option is correct — every correct one is ticked below.

  1. The evidence does not establish plaintext recovery by cracking. ✓
    The capture explicitly records no password recovery, and relay forwards authentication rather than cracking it.
  2. SMB signing prevents relay because NTLM is enabled.
    Disabled signing removes an important SMB integrity control; NTLM enablement does not prevent relay.
  3. The evidence supports assessing NTLM relay exposure to SMB. ✓
    A live NTLM exchange plus an SMB target without signing supports relay exposure assessment.
  4. The evidence proves the captured material can be cracked into plaintext.
    A live relay observation does not establish offline password recovery or plaintext cracking success.
  5. The observation proves pass-the-ticket using Kerberos credentials.
    The record identifies NTLM authentication, not Kerberos tickets or ticket reuse.
The trap
Reverses the security effect of SMB signing. Confuses relayable authentication with recoverable passwords. Confuses NTLM material with Kerberos tickets.

The capture supports SMB NTLM relay assessment, while explicitly providing no evidence of password cracking or plaintext recovery.

10. Review the debug APK with MobSF for local-storage: Which TWO next steps are best?

Hard
In an isolated mobile training network, an Android test application uses synthetic records, has an approved debug build, and has an authorized ADB/debugging connection available. The assessor must determine whether sensitive values are stored locally without altering the device or contacting external services. Which TWO next steps are best? Select TWO.

Select two. More than one option is correct — every correct one is ticked below.

  1. Instrument runtime behavior with Frida before examining the application package.
    Frida is a legitimate runtime-analysis tool, but the stated objective can first be addressed through static review and approved collection without requiring runtime instrumentation.
  2. Use WiGLE to survey wireless networks.
    WiGLE supports wireless-network observations and cannot determine how an Android application stores local values.
  3. Root the device before reviewing application storage.
    Rooting changes device controls and is unnecessary when the approved debug build and authorized ADB connection support bounded inspection.
  4. Review the debug APK with MobSF for local-storage indicators. ✓
    MobSF supports static mobile-application analysis, including review of permissions, code, and indicators of local-storage handling.
  5. Collect approved synthetic app data with ADB for local inspection. ✓
    With an authorized debugging connection and synthetic records, ADB can support bounded collection from the test application for local inspection.
The trap
Confuses wireless surveying with mobile application analysis. Treats elevated device control as a universal prerequisite. Selects a more invasive runtime method before the directly relevant checks.

Use MobSF for static review and ADB for bounded inspection of synthetic debug-build data.

11. The absent security update is the root cause: Which statement identifies the stated root cause?

Easy
An authorized office assessment reports that an application component remains vulnerable because the applicable security update is absent. Its CVE has an EPSS value of 0.31. The component is internet reachable, but no exploitation was observed. Which statement identifies the stated root cause?
  1. EPSS 0.31 proves exploitation occurred.
    EPSS estimates near-term exploitation likelihood; it does not prove that exploitation occurred.
  2. The absent security update is the root cause. ✓
    The evidence directly identifies the missing update as the cause of the component remaining vulnerable.
  3. Internet reachability caused the update to be missing.
    Reachability affects exposure and risk, but it does not explain why the update is absent.
  4. The CVE identifier created the weakness.
    A CVE identifies a published vulnerability; it does not create the underlying weakness.
The trap
Treats probability as observed compromise. Confuses exposure with remediation failure. Confuses vulnerability identification with causation.

The missing update is the stated root cause; EPSS estimates exploitation likelihood.

12. Gophish for a controlled email simulation: Which tool best matches the explicit requirement?

Easy
A retail test environment authorizes a simulation for a defined executive cohort. The team needs an email campaign with synthetic recipients, controlled tracking, and a harmless landing page; it must not collect passwords. Which tool best matches the explicit requirement?
  1. SET for a broader social-engineering exercise.
    SET can support social-engineering simulations, but Gophish more directly matches the specified email campaign, tracking, and landing-page workflow.
  2. Gophish for a controlled email simulation. ✓
    Gophish is designed to orchestrate authorized phishing simulations with recipients, tracking, and landing pages without requiring credential collection.
  3. Maltego
    Maltego supports relationship and reconnaissance analysis rather than controlled email-campaign orchestration.
  4. BeEF for browser-focused assessment.
    BeEF assesses browser behavior and does not primarily provide the requested email campaign workflow.
The trap
Confuses reconnaissance mapping with simulation delivery. Selects a related tool without the closest workflow match. Confuses browser assessment with phishing simulation.

Gophish directly supports controlled email simulations with tracking and harmless landing pages.

292 more Attacks and Exploits questions

The remaining 292 questions in this domain are part of the full PenTest+ bank — 870 questions, every option explained. Start with the free five-minute check and see your score per domain.

Test your PenTest+ readiness — free

Other PenTest+ domains

Part of the Certsqill PenTest+ question bank · Attacks and Exploits · Every answer, right and wrong, comes with its own explanation.