A scan can also ask each service for its version. Old versions have known problems that have since been fixed, so an old version is a finding. Some services are risky however new they are: telnet sends everything, including passwords, as readable text.
Two web servers both show port 80 open. Which one should worry you?
Programs get fixed as people find problems in them. The version number tells you which fixes a service has. The lab's advisory sheet (an offline copy your teacher made) lists which versions are old, because the lab has no internet to look them up. Some services are a problem whatever their version, because of how they work.
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.
Which is riskier
TryTry it on the board and compare the result with your prediction.
Try: scan for versions
Was your prediction right?
Try it yourselfYour edits are saved in this browser.
Scan the target for versions with nmap -sV target.
Use the board. This ticks when you get there.
InvestigateWork out why it happens, one step at a time.
Worked example: Reading versions against the sheet
Worked exampleBefore each step, say what you think comes next.
nmap -sV targetscan and ask each service for its version.
cat advisories.txtthe lab's offline list of old versions.
OpenSSH 7.2p2below 8.0 on the sheet: a finding.
telneta finding whatever its version: it is not encrypted.
Now try it yourself.
Sam reads a version. 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.
Read the advisory sheet: cat advisories.txt.
Use the board. This ticks when you get there.
Scan only ssh's version: nmap -sV -p 22 target.
Use the board. This ticks when you get there.
Save a version scan in a file called scan2.txt.
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.
Write the findings
Then: cat findings.txt to check it. Next: what an attack on the login looks like in the log.
Try it yourselfYour edits are saved in this browser.
A scan can also ask each service for its version. Old versions have known problems that have since been fixed, so an old version is a finding. Some services are risky however new they are: telnet sends everything, including passwords, as readable text. About 40 minutes.
I can say why some services are risky at any version.
Before class
Try the boards yourselves.
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 versions and the advisory sheet are made up for the lab (they describe real kinds of old, not real exploits). A real audit looks versions up in a vulnerability database, with the internet, and checks whether a fix has been 'backported' (distributions often patch an old number). The board does not teach how to use any weakness, and this course does not either.
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: searchsploit and online databases catalogue known problems: for the report, read them to understand the risk, and do not run what they list.
Running the lesson
Predict: wrong answers treat the version as a label.
Try: ask which services the class thinks are old.
Worked example: stop at Sam and ask what a fixed problem is.
Vary: ask why the sheet is offline.
Make: ask what a reader needs from each finding line.
The hard part (on purpose)
Treating versions as trivia. Ask: what fixes does this one not have?
When students get stuck
A student says telnet is fine because it is new. Ask: Can someone watching the network read it? Fix: Plain text is a finding at any version.
The findings file is missing a line. Ask: Did you use > on every line? Fix: > replaces the file; >> adds a line.
Stretch and support
Stretch: Find out what a CVE is and why vulnerability databases give each problem a number.
Support: The advisory sheet next to the scan.
Where it leads
Links: Security and privacy; Secret messages (what encryption is for); next: What guessing looks like.
What each step is for
which is riskier: Committing to what a version means tests the new move: it says which fixes are missing.
Try: scan for versions: Asking for versions settles the prediction.
Worked example: Reading versions against the sheet: Following the method once, then finding where a plausible account goes wrong, models the new move.
Vary: change one thing: Each task changes one thing: read the sheet, scan one service's version, and save the evidence.
Practise: Judging versions and risks is the same move in new forms, plus a review of ports.
write the findings: Turning scan results into findings is the whole move: what is wrong, and why.