← Years 9–10 Digital Systems

Exploit

A method or piece of code that takes advantage of a vulnerability (a weakness) to attack a system. The weakness is the open door; the exploit is the tool that gets through it.

Understanding Exploit in Years 9–10 Digital Systems

What it does: The arrow order shows the sequence: a weakness exists, an exploit is made to use it, and then the attack happens. Fixing the vulnerability removes the weakness the exploit relies on, so the exploit no longer works. Using an exploit against a system to cause harm is the attack. The flaw is the vulnerability, the tool is the exploit and running it is the attack. Exploits are built for a specific weakness. Once an update fixes it, that exploit usually stops working. An exploit kit collects exploits in one package. It can check a victim's device for weaknesses and try different exploits automatically.

Common mistakes: Python Booleans are written with a capital letter. It should be exploit = True, otherwise Python raises a NameError. An exploit only works if there is a vulnerability to use. It should be 'and', so with no weakness the attack fails even if an exploit exists.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

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 25–40) and word search (Modules 13–40).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Which statement best describes an exploit?
A method or piece of code that takes advantage of a vulnerabilityA weakness in software that has not been fixed yet
Matches
vulnerability = the code that attacks a system
↓
This mixes up a vulnerability with an exploit. A vulnerability is the weakness, and the exploit is the code or method that attacks it.
Applying
Meanings
Term
exploit
Meaning
A method or piece of code that takes advantage of a vulnerability (a weakness) to attack a system. The weakness is the open door; the exploit is the tool that gets through it.
Practice
vulnerability <- "unpatched web server"
Testing
Gaps
= "code that abuses the weakness"
Check Answer
Spots
1weak = True
2exploit = true

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Golden Eagle' badge — High Flyer, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Which statement best describes an exploit?
A. A weakness in software that has not been fixed yet
B. A method or piece of code that takes advantage of a vulnerability ✓
The weakness is the vulnerability. The exploit is the tool or code that uses that weakness to get in.
2. A website has a flaw that lets anyone read private files. In this situation, what is the flaw?
A. An exploit
B. A vulnerability ✓
The flaw is a weakness, so it is a vulnerability. An exploit only exists when someone writes code or a method that uses the flaw.
3. A hacker writes a small program that uses the flaw to break into the website. What is the program?
A. An exploit ✓
B. A vulnerability
The program takes advantage of the weakness, so it is an exploit. The vulnerability is the flaw it targets.
4. The hacker runs the exploit against the website and steals data. What is this whole action called?
A. An attack ✓
B. A vulnerability
Using an exploit against a system to cause harm is the attack. The flaw is the vulnerability, the tool is the exploit and running it is the attack.
5. Using the open door comparison, which part is the exploit?
A. The tool that gets through the open door ✓
B. The open door itself
The open door is the vulnerability (the weakness). The exploit is the tool that gets through it.

Match the Pairs

exploit → A method or piece of code that takes advantage of a vulnerability to attack a system
exploit kit → A bundle of ready-made exploits that automatically scans a device for weaknesses and tries them
The weakness is the vulnerability, the tool that uses it is the exploit, and the act of using it is the attack → vulnerability -> exploit -> attack
An exploit only works if a matching vulnerability exists, so patching the weakness stops that exploit → patch(vulnerability) -> exploit fails
vulnerability = the code that attacks a system → This mixes up a vulnerability with an exploit. A vulnerability is the weakness, and the exploit is the code or method that attacks it.
exploit kit = a patch that fixes weaknesses → An exploit kit is a bundle of tools that attackers use to find and use weaknesses. It does not fix anything. A patch is what fixes weaknesses.

Key Term

exploit
A method or piece of code that takes advantage of a vulnerability (a weakness) to attack a system. The weakness is the open door; the exploit is the tool that gets through it.

Fill in the Blanks

1. vulnerability = "weak login check" exploit = "code that abuses the weakness"
Hint: Type the variable name for code that takes advantage of a weakness.
2. weakness = findWeakness(server) exploit = writeCode(weakness) attack(exploit, server)
Hint: Type the function name for using the tool against the server to break in.
3. IF patched = true THEN exploitWorks = false ENDIF
Hint: Type the true/false value that means the weakness has been fixed.
4. exploitKit = [toolA, toolB] FOR EACH tool IN exploitKit try(tool, targetPC)
Hint: Type the variable name of the bundle of exploits that the loop goes through.
5. # vulnerability: the open door # exploit: the tool that gets through # attack: using the tool to break in
Hint: Type the word for a weakness in a system that an exploit takes advantage of.

Spot the Error

Question 1
A weak = True
B exploit = true
C success = weak and exploit
Line B — Python Booleans are written with a capital letter. It should be exploit = True, otherwise Python raises a NameError.
Question 2
A weak = False
B exploit = True
C success = weak or exploit
Line C — An exploit only works if there is a vulnerability to use. It should be 'and', so with no weakness the attack fails even if an exploit exists.
Question 3
A vuln = "weak login"
B exploit = "tool for " + vuln
C patched = False
D if not patched
E print("Attack succeeds")
Line D — An if statement needs a colon at the end of the line. It should be if not patched:
Question 4
A kit = []
B kit.append("browser exploit")
C kit.add("pdf exploit")
D print(len(kit))
Line C — Python lists do not have an add method. Use kit.append("pdf exploit") to put another exploit into the exploit kit.
Question 5
A function run_exploit(target)
B if target.vulnerable:
C return "Access gained"
D return "Blocked"
Line A — A function definition must end with a colon. It should be function run_exploit(target): so the indented lines belong to it.

Student with a class code? Join your class →