Exploit
A method or piece of code that takes advantage of a vulnerability (the weakness) to attack a system. The vulnerability is the flaw; the exploit is the tool that uses it.
Understanding Exploit in WA Computer Science ATAR Unit 2
What it does: The exploit is the tool and the vulnerability is its target, so the code shows the exploit acting on the weakness. A vulnerability can exist without an exploit. The risk grows once an exploit is created for it. The missing input validation is the vulnerability. The crafted SQL is the exploit that takes advantage of it. Patching removes the weakness. The attacker still has the exploit, but it has nothing to take advantage of.
Common mistakes: A vulnerability is a weakness, not a tool. 'attack script' describes an exploit. The line should describe a flaw, such as vuln = "unpatched flaw". This is line 3 of the program in the array, but the broken line is the return statement. An exploit only works while the flaw is still unpatched, so the function should return not patched.
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
exploitFill in the Blanks
Spot the Error
Student with a class code? Join your class →