Skip to content
REC · NEW
PIXELTAPES
SUBSCRIBE
● CYBERSECURITY 8 MIN READ

Kali Linux Ethical Hacking, Part 10: The Capstone Full Lab Runbook

Two blank lab boxes linked by a short cable beside a blank checklist on a cool blue desk

Series: Kali Linux Ethical Hacking, Part 10 (final part). Previous: Part 9, pack your lab findings into a report. Earlier: Part 8, harden your own Kali host.

This Kali Linux capstone is one authorized runbook you finish in a single sitting on your own host only lab. You confirm both VMs are up, rerun a short Nmap check, prove Juice Shop answers only where it should, recheck listeners, updates and SSH, then refresh your Part 9 findings pack. No AI, no agent.

Where we are: This is still the lab you built in Part 1: Kali at 192.168.56.102 and lab-web-01 at 192.168.56.101 running Juice Shop on the host only network 192.168.56.0/24. You mapped it with Nmap in Part 2, explored Juice Shop in Part 3, wrote a defender fix list in Part 4, set up monthly updates in Part 5, captured lab traffic in Part 6, audited a weak lab password in Part 7, hardened Kali in Part 8 and packed it all into a report in Part 9. Now you run the whole thing once, start to finish.

First, the legal bit

Disclaimer: This post is for education and authorized security testing only. Scanning, capturing traffic from, auditing or changing a computer, network or account without permission is illegal, including under India’s Information Technology Act, 2000 and similar laws in other countries. Only test systems you own, or systems where you have clear written permission from the owner before you start. Never put other people’s passwords, hashes or packet captures into a report you publish or send outside the engagement.

Every command below targets only 192.168.56.102 (Kali) and 192.168.56.101 (lab-web-01) on the host only network. If your addresses differ, change them in your scope file first, and never point these steps at your home Wi Fi, office network or anything in the cloud.

Why finish with one full lab runbook?

Nine parts taught one skill each. In real authorized work, nobody runs them one at a time with a week in between. You check scope, confirm the targets, look again at what changed, and update the report the same day.

My day job sits close to network detection and response, and the habit I value most is the quiet recheck: is the thing we fixed last month still fixed? This runbook is that recheck for your own lab. It should take about an hour, and you can repeat it every month after your Part 5 updates.

What do you need before you start?

  • Both VMs from Part 1 on the host only network: Kali 192.168.56.102, lab-web-01 192.168.56.101 with Juice Shop.
  • The SSH key and UFW rule from Part 8, and the admin machine you SSH from.
  • Your Part 9 report folder, for example ~/lab-notes/2026-10-26/report. Use your own date.
  • Tools you already installed: nmap, curl, tshark, lynis, ufw, sha256sum, tar. Versions as noted in Parts 2 to 8. No new installs needed.
  • About 60 minutes and a fresh notes folder:
CAP10=~/lab-notes/$(date +%F)/capstone
mkdir -p "$CAP10" && chmod 700 "$CAP10"
cd "$CAP10"
printf '192.168.56.101\n192.168.56.102\n' > scope.txt

How do you confirm the lab is still up?

Step 1: Take a snapshot first

Shut Kali down, then on your computer (not inside Kali), as in Part 5:

VBoxManage snapshot "kali-linux-2026.2" take "pre-capstone-$(date +%F)"
VBoxManage snapshot "kali-linux-2026.2" list

Use your own VM name from VBoxManage list vms. Expected output (sample): a progress bar to 100 percent and the new snapshot in the list.

Step 2: Check addresses and reachability

Start Kali and lab-web-01. On lab-web-01, start Juice Shop the way you last ran it. If you applied the localhost fix from your Part 4 fix list, that is sudo docker run --rm -p 127.0.0.1:3000:3000 bkimminich/juice-shop. If you did not, use the Part 1 command bound to 192.168.56.101. Then on Kali:

ip -br addr | tee 01-addr.txt
ping -c 3 192.168.56.101 | tee -a 01-addr.txt

Expected output (sample):

lo      UNKNOWN  127.0.0.1/8 ::1/128
eth0    UP       10.0.2.15/24
eth1    UP       192.168.56.102/24
3 packets transmitted, 3 received, 0% packet loss

If eth1 does not show 192.168.56.102, fix the adapter before going further. Every later step trusts that address.

Step 3: Run a short recon sanity check

This is not a fresh full scan. It only confirms the lab looks the way your Part 2 notes say it should:

sudo nmap -sn 192.168.56.0/24 -oA 02-discovery
sudo nmap -sV -p 22,3000 -iL scope.txt -oA 03-services

Expected output (sample):

Nmap scan report for 192.168.56.101
Host is up (0.00041s latency).
Nmap scan report for 192.168.56.102
Host is up.

Nmap scan report for 192.168.56.101
PORT     STATE  SERVICE VERSION
22/tcp   open   ssh     OpenSSH (your version)
3000/tcp closed ppp

Your hypervisor’s host only adapter (192.168.56.1) and, on some setups, the VirtualBox DHCP server from Part 1 (192.168.56.100) may also appear in the discovery list. That is expected. If you see a host you do not recognise, stop and work out what it is before scanning anything else. The sample shows port 3000 closed, which is what you see only if your Part 4 fix list closed it and you proved it in Part 6. If you never applied that fix, open is your honest result, and F01 stays open.

Two soft cyan network nodes linked on a navy field

Step 4: Confirm Juice Shop answers only where it should

On lab-web-01 itself:

curl -sI http://127.0.0.1:3000 | head -1

Then from Kali:

curl -s -m 5 -o /dev/null -w "%{http_code}\n" http://192.168.56.101:3000/ | tee 04-juice-from-kali.txt

Expected output (sample): HTTP/1.1 200 OK on lab-web-01, then 000 from Kali. That pair means Juice Shop runs and is bound to localhost, which is Part 9’s F01 marked fixed. If Kali gets 200, port 3000 is open to the lab network, either because the fix was undone or because you never applied it. Mark F01 as open in Step 10. Stick to reachability here. Challenge work belongs back in Part 3.

How do you recheck defender posture on your own hosts?

Step 5: Compare listeners and firewall with Part 8

sudo ss -ltnup | tee 05-listeners-now.txt
diff -u ~/lab-notes/*/harden/03-listeners-after.txt 05-listeners-now.txt || true
sudo ufw status verbose | tee 05-ufw-status.txt

Expected output (sample):

Status: active
Default: deny (incoming), allow (outgoing), disabled (routed)
22/tcp                     ALLOW IN    192.168.56.0/24            # lab-ssh

If the wildcard matches more than one Part 8 folder, diff complains, so give it the full path to the one you want. A small diff is normal after updates. A new listener on 0.0.0.0 that you did not start is a finding.

Step 6: Optional Lynis skim

sudo lynis audit system --quick | tee 06-lynis.txt
sudo grep -E "^hardening_index=" /var/log/lynis-report.dat

Expected output (sample): the scan summary, then a line such as hardening_index=67. Compare it with your Part 4 baseline. You want it flat or higher. Skip this step if time is short.

Step 7: Confirm the update habit

sudo apt update 2>&1 | tail -1 | tee 07-updates.txt
apt list --upgradable 2>/dev/null | tail -n +2 | wc -l | tee -a 07-updates.txt
ls /var/run/reboot-required 2>/dev/null && echo "Reboot needed" | tee -a 07-updates.txt

Expected output (sample): a line such as 12 packages can be upgraded, then 12. Don’t upgrade in the middle of the capstone. Note the number, finish the runbook, then run the full Part 5 routine after a snapshot.

Step 8: Optional 30 second capture check

In one Kali terminal:

tshark -i eth1 -f "host 192.168.56.101 and tcp port 3000" -a duration:30 -w "$CAP10/08-port3000.pcapng"

In a second terminal, inside those 30 seconds:

curl -s -m 5 -o /dev/null -w "%{http_code}\n" http://192.168.56.101:3000/

Then read it back:

tshark -r 08-port3000.pcapng -Y "http.request" | wc -l
sha256sum 08-port3000.pcapng | tee 08-port3000.sha256

Expected output (sample): 0 HTTP requests if F01 is still fixed, the same result as your Part 6 after fix capture. Use the interface name from tshark -D if yours is not eth1.

Step 9: Confirm the Part 8 harden state

On Kali:

sudo sshd -T | grep -Ei '^(passwordauthentication|pubkeyauthentication|permitrootlogin)' | tee 09-sshd.txt

From your admin machine:

ssh -i ~/.ssh/kali_lab_ed25519 kali@192.168.56.102 'echo key-login-ok'
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no kali@192.168.56.102

Expected output (sample):

passwordauthentication no
pubkeyauthentication yes
permitrootlogin no
key-login-ok
kali@192.168.56.102: Permission denied (publickey).

If password login works again, an update or a stray config file undid Part 8. Fix it with the drop in file from that post before you close out.

How do you refresh the findings pack?

Step 10: Add a capstone recheck to the Part 9 report

Point REPORT at your Part 9 folder, copy in the capstone evidence and rehash. If you opened a new terminal since the start, set CAP10 again to the same capstone folder first:

REPORT=~/lab-notes/2026-10-26/report   # use your own Part 9 date
mkdir -p "$REPORT/evidence/F05"
cp "$CAP10"/0{3,4,5,9}-* "$REPORT/evidence/F05/" 2>/dev/null || true
cp "$CAP10"/08-port3000.* "$REPORT/evidence/F05/" 2>/dev/null || true
cd "$REPORT"
find evidence -type f ! -name SHA256SUMS.txt -print0 | sort -z | xargs -0 sha256sum > evidence/SHA256SUMS.txt
sha256sum -c evidence/SHA256SUMS.txt | grep -c ': OK'

Expected output (sample): a count such as 18 (Part 9’s 9 files plus 9 new ones in F05), with no FAILED lines. Then edit report.md by hand. Add a row like this one (fake lab data):

F05 | Capstone recheck, all earlier fixes | Info | evidence/F05/ | F01 holds (or open), F03 holds, 12 updates pending

Update the F01 and F03 status if Steps 4 or 9 said otherwise. In export/manager-summary.md, edit bullet 2 if F01 changed and bullet 3 if F03 changed.

Blank report folders beside a sealed archive box and stamp pad

Step 11: Archive the refreshed pack

cd "$REPORT/.."
tar -czf report-capstone-$(date +%F).tar.gz report
sha256sum report-capstone-$(date +%F).tar.gz | tee report-capstone-$(date +%F).tar.gz.sha256
chmod 600 report-capstone-$(date +%F).tar.gz*

Expected output (sample): one hash line for the new archive. The 90 day shred date from Part 9 still applies, and the same shred caveats on SSDs hold.

What does series complete look like?

You are done when you can answer yes to all of these from files, not memory:

  1. Both lab VMs answered on 192.168.56.101 and 192.168.56.102 (Step 2).
  2. Discovery showed no unknown hosts on 192.168.56.0/24 (Step 3).
  3. Juice Shop answered on lab-web-01 localhost only, or F01 is honestly marked open (Steps 4 and 8).
  4. Listeners, UFW and SSH match Part 8 (Steps 5 and 9).
  5. Pending updates are counted and booked in (Step 7).
  6. The report has an F05 row, a fresh SHA256SUMS.txt and a new archive (Steps 10 and 11).

Save the list as 10-series-complete.md in the capstone folder, with a yes or no beside each line, so next month’s run has something to compare against.

What to do next

  1. Run Part 5’s update routine now that Step 7 counted the backlog.
  2. Repeat this runbook monthly. Make a new capstone folder each time and add a fresh F-row to the report.
  3. Restore the pre-capstone snapshot only if something broke. Otherwise delete old snapshots to save disk.
  4. Keep the report pack private and shred it on the Part 9 schedule.
  5. For more open source tools to practise with, browse my security GitHub repos roundup for October 2026.

Series complete: This Kali Linux Ethical Hacking series ends here on the same host only lab you built in Part 1. For the AI agent capstone on the same lab, see AI Part 10.

Written by DeepuMore about me, my work and my lab at deepu.live

Leave a comment

Your email stays private. First-time comments are held for a quick review.

AUTO-PLAY · UP NEXT

Keep the tape rolling

Never miss a new tape.

One email a week with everything new on PixelTapes. No spam, unsubscribe anytime.