Security testing is only legitimate on computers you own or have written permission to test. In the lab you meet Kali (a toolbox of security tools), the target computer, and the rules that keep the work safe. Everything you find is reported and fixed, never used.
You are allowed to test one computer's security. How do you make sure you only touch that one?
Install software with apt· On a Pi you add programs with apt, from a software source on the internet.
This course teaches security the way a defender learns it: you look at a computer you are allowed to look at, find what is wrong, and fix it. The commands you need are few and are taught as you go: ls (list), cat (read a file), ping (is it there?), ssh (log in to another computer), sudo (run one command as the administrator) and grep (find lines). You do not need any earlier course.
How this lesson works: Predict, Try, Investigate, Modify, Practise, Make
Predict: Read the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.
Try: Try it on the board and compare the result with your prediction.
Investigate: Work out why it happens, one step at a time.
Modify: Change the problem on purpose and see what happens.
Practise: A few on your own, to check you have it.
Make: Make your own problem using what you have learned. Expect a few tries; that is normal.
Make your prediction first. Help opens once you've locked it in.
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.
What comes first
TryTry it on the board and compare the result with your prediction.
Try: read the rules, find the target
Was your prediction right?
Try it yourselfYour edits are saved in this browser.
Read the lab rules with cat lab-rules.txt, then check that the target is there with ping target.
Use the board. This ticks when you get there.
InvestigateWork out why it happens, one step at a time.
Worked example: Scope and permission
Worked exampleBefore each step, say what you think comes next.
cat lab-rules.txtread the rules first. They are the agreement.
ip addrwhich address is this Kali computer? 10.0.0.5.
ping targetis the target there? Replies from 10.0.0.2.
ssh admin@targetthe lab's own account on the target, for fixing things later.
Now try it yourself.
Sam scans the school network. Click the line where it first goes wrong.
ModifyChange the problem on purpose and see what happens.
Vary: change one thing
Try it yourselfYour edits are saved in this browser.
Find out this Kali computer's own address with ip addr.
Use the board. This ticks when you get there.
Check that the target replies: ping target.
Use the board. This ticks when you get there.
Try nmap 10.0.0.9, a computer that is not on the lab sheet. What happens?
Use the board. This ticks when you get there.
PractiseA few on your own, to check you have it.
Practise
MakeMake your own problem using what you have learned. Expect a few tries; that is normal.
Log in to the target
Then type exit to go back to Kali. Next lesson: what is listening on the target.
Try it yourselfYour edits are saved in this browser.
Security testing is only legitimate on computers you own or have written permission to test. In the lab you meet Kali (a toolbox of security tools), the target computer, and the rules that keep the work safe. Everything you find is reported and fixed, never used. About 40 minutes.
I can say what must be true before any security test.
I can find the lab's target and reach it.
I can say what to do with a weakness I find.
Before class
Try the boards yourself.
The gate (read first). This course teaches security as audit and defence: you scan, read and fix a lab computer your class owns. The pretend Kali and target in the lessons are safe anywhere. The real-lab version is different, so it needs your sign-off before anyone starts: school policy and IT's agreement, a written lab agreement every student signs (lab-rules.txt on the board is a model), and a lab that is cut off from every other network: a Pi running Kali and a second Pi or a virtual machine as the target, joined by one switch or one ethernet cable, with no router and no internet. Download the Kali image and any tools once, at home or at IT's request. Scan only the target named on the lab sheet. This course does not teach breaking into anything: it stops at find, understand and fix. It relaxes the 'defensive only' rule of the other courses only in that the real lab uses real scanning tools on a computer the class owns.
Simplifications: the pretend Kali refuses a scan of anything but the target and itself, so a student can't scan off-sheet by accident on the board. A real Kali will not, so the rule has to live in the lab agreement and in you. The pretend ssh always accepts the password.
Real lab, if you run one: Kali Linux has a Raspberry Pi image (Pi 4 or Pi 5; the Pi 5 wants its 27 W supply); flash it with Raspberry Pi Imager or the Kali image instructions and boot it with a screen and keyboard, or ssh in. The target can be a second Pi (an older Raspberry Pi OS with a few extra services) or a purpose-made practice target your IT team approves. Start from the same state every time: re-flash, or snapshot a virtual machine. nmap is already on Kali. Give each pair a printed lab sheet naming the target's address, the one account they may use and what they are allowed to change.
Other options: Parrot OS is a similar security distribution; for a no-hardware route, use the pretend lab here or a virtual machine on a teacher's computer.
Running the lesson
Predict: ask what makes a test legitimate.
Try: ask what the rules file said first.
Worked example: stop at Sam's mistake and ask what 'harmless' means.
Vary: ask why the pretend lab refuses the off-sheet scan, and what refuses on a real one.
Make: ask what the lab agreement should say.
The hard part (on purpose)
Seeing why permission matters when the test is 'harmless'. Use the locked-door idea: trying doors without permission is the problem, not what you do next.
When students get stuck
A student wants to try the tools on their own network at home. Ask: Who owns that network, and has everyone on it agreed? Fix: Only the lab. Keep to the sheet.
A student's ping fails. Ask: Which name did you use? Fix: ping target, or ping 10.0.0.2.
Stretch and support
Stretch: Write a one-page lab agreement for your own class: scope, permission, what happens to findings.
Support: A card with the rules and the one target address.
Where it leads
Links: Security and privacy, Cyber safety and privacy (threat models); next: What is listening.
What each step is for
what comes first: Committing to what must come before any test shows what the lab rules are for.
Try: read the rules, find the target: Reading the rules and reaching the target settles what the lab allows.
Worked example: Scope and permission: Following the method once, then finding where a plausible account goes wrong, models the new move.
Vary: change one thing: Each task is one safe first look: your own address, the target's reply, and a scan you are not allowed to make.
Practise: Judging what is in scope and why the lab is cut off is the same move in new forms.
log in to the target: Reaching the target by the one allowed route is the whole move.