Capstone — Scoping and Planning a Real Engagement
Penetration Testing Methodology
Chapter 10 · Capstone: Scoping and Planning a Real Engagement
Nine chapters built one continuous process: authorization, scope, framework, recon, scanning, matching, exploitation, post-exploitation, reporting. This capstone walks that entire process end to end for a single fictional target — Meridian Retail Co., a fictional online retailer — combining every prior chapter into one coherent engagement.
The Scenario
Meridian Retail Co. is preparing for a major holiday sales push and wants its online store and supporting infrastructure tested before traffic peaks. They've requested a Gray Box engagement (per pentest1-2) — testers will be given a standard customer account, but no source code or administrative access — scoped to their Web Application and Network categories.
Sample Rules of Engagement Document
MERIDIAN RETAIL CO. — RULES OF ENGAGEMENT (SAMPLE, FICTIONAL)
================================================================
Client: Meridian Retail Co.
Authorized signatory: [Name], VP of Engineering
Testing firm: [Firm Name]
Engagement type: Gray Box (pentest1-2) — one standard
customer account provided, no source
code or admin access
Scope — IN:
- shop.meridianretail.example (production web application)
- api.meridianretail.example
- IP range 203.0.113.0/24 (Meridian's own hosted infrastructure)
Scope — OUT:
- payments.meridianretail.example (third-party payment
processor infrastructure, NOT owned by Meridian — see
pentest1-2's own shared-infrastructure warning)
- Any Meridian employee's personal social media (OSINT on
named individuals excluded per pentest1-4's own scope note)
Testing window: Weekdays, 22:00-06:00 local time only
(low-traffic hours, per pentest1-5's own
scan-intensity guidance)
Methodology: PTES (pentest1-3)
Escalation contact: [Name], available 24/7 during the window
Emergency stop: Testing halts immediately on request from
either party; no penalty for invoking it
Explicitly authorized: Testing up to proof-of-concept level
(pentest1-7) — NOT data destruction,
NOT denial-of-service, NOT extraction
beyond a single non-sensitive record
Signatures: ______________________ ______________________
Client Testing Firm
================================================================
Walking Through the Methodology
- Pre-engagement (pentest1-1 / pentest1-2): the RoE above is signed by someone with real authority over Meridian's own systems, before any technical activity begins.
- Framework (pentest1-3): the engagement follows PTES's seven phases, matching this course's own structure directly.
- Reconnaissance (pentest1-4): passive WHOIS/DNS enumeration reveals Meridian's own hosting provider and mail infrastructure; a public job posting reveals a React/Node.js stack; employee LinkedIn presence is noted but not investigated further, per the RoE's own exclusion.
- Scanning & Enumeration (pentest1-5): confirms
shop.meridianretail.exampleandapi.meridianretail.exampleare alive, with ports 443 and — unexpectedly — 3306 (MySQL) directly reachable; a SYN scan run only during the authorized window identifies service versions. - Vulnerability Analysis (pentest1-6): the reachable 3306 port is flagged as a
dbsec1-style candidate (a database that should never be directly internet-facing); the checkout page's search field is flagged as asqli1candidate; the login form is flagged as abc1candidate. - Exploitation (pentest1-7): a single non-sensitive proof-of-concept row (the database version string) is extracted via the checkout search field, confirming the SQLi candidate; the login form's session cookie is confirmed to be missing the
Secureflag. Testing stops at proof-of-concept for both — no customer data is touched. - Post-Exploitation (pentest1-8): using the Gray Box starting account, the tester confirms the compromised checkout server can also reach an internal admin panel not exposed externally — a real lateral-movement path — and stops there, without logging into the panel itself.
- Reporting (pentest1-9): the final report includes an executive summary (three findings, one Critical, two High, business impact framed around the upcoming sales push) and technical findings with CVSS scores and reproduction steps, with remediation pointing directly at
dbsec1(network isolation for the database),sqli1(parameterized queries), andbc1(proper cookie flags).
Chapter Attribution
| Capstone element | Chapter |
|---|---|
| Signed RoE, authorization precondition | pentest1-1 |
| Gray Box selection, in/out scope, shared-infrastructure exclusion | pentest1-2 |
| PTES as the adopted framework | pentest1-3 |
| WHOIS/DNS/job-posting recon, OSINT scope exclusion | pentest1-4 |
| Host/port confirmation, SYN scan, restricted testing window | pentest1-5 |
| Matching findings to dbsec1/sqli1/bc1 | pentest1-6 |
| Single-row PoC, stopping short of full exploitation | pentest1-7 |
| Lateral movement confirmation without full access | pentest1-8 |
| Executive summary, CVSS, remediation pointing at earlier courses | pentest1-9 |
net1-10; real engagements require real, hands-on familiarity with tools like nmap that this course deliberately doesn't attempt to substitute for. And nothing in this course constitutes legal advice — before conducting any real engagement, consult a qualified lawyer and your organization's own compliance function regarding authorization, scope, and applicable law.
pentest1-1 opened this course by claiming that a pentest is a repeatable, disciplined process, and that the site's own vulnerability courses are tools this process calls on — not the process itself. This capstone is the proof: nine distinct chapters, each with its own job, produced one coherent, professional engagement for a single fictional target, with dbsec1/sqli1/bc1 called on at exactly the moment the process needed them.
Hands-On Exercises
Using this chapter's own sample RoE, explain specifically why payments.meridianretail.example is listed as out of scope, tying your answer to pentest1-2's own shared-infrastructure warning.
📄 View solutionUsing the chapter's own methodology walkthrough, explain what would go wrong if the exploitation step (step 6) had been attempted before the pre-engagement step (step 1) actually completed.
📄 View solutionUsing the chapter-attribution table, explain how this capstone embodies pentest1-1's own opening claim that this site's vulnerability courses are "tools this process calls on, not the process itself."
📄 View solutionChapter 10 Quick Reference — Course Complete
- A full sample RoE combines pentest1-1's authorization precondition and pentest1-2's precise scope, testing window, and out-of-scope exclusions
- The nine-phase walkthrough maps directly onto pentest1-1 through pentest1-9, in order
- Remediation in the final report calls directly on dbsec1, sqli1, and bc1 — the exact "toolkit" pentest1-1 and pentest1-6 named
- Honest scope note: fictional target only, no tool-usage tutorial beyond net1-10's own conceptual coverage, no legal advice
- This closes the full 10-chapter Penetration Testing Methodology course