Penetration test phases
The ordered stages of a penetration test: planning, reconnaissance, scanning, gaining access, maintaining access, then reporting, with clean-up of any changes made.
Understanding Penetration test phases in WA Computer Science ATAR Unit 2
What it does: The gaining access (exploitation) phase uses a vulnerability found earlier in scanning to break in, which this call represents. Clean-up follows maintaining access. It removes anything the tester added so the system is left as it was, and it is recorded in the report. Planning always comes first. The tester and client agree on scope, targets and permission before any testing starts. Reconnaissance is gathering information about the target. It is often passive and does not break into anything. Scanning actively probes the target to find open ports, live hosts and possible vulnerabilities. Each phase builds on the one before it. You must know the target (reconnaissance) before you can scan it, and you report last.
Common mistakes: Scanning is phase 3. Reporting must come last, after access has been gained and maintained, so line 3 should be '3 scanning'. Reconnaissance only gathers information about the target. Exploiting a server is gaining access, which comes later. Line 2 should be 'recon: search_public_info(t)'.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 125–266) and word search (Modules 28–266).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
penetration test phasesFill in the Blanks
Spot the Error
Student with a class code? Join your class →