Eight spreads. Each has a picture, the idea, and the commands you'd run in a home lab or an engagement you're authorized for.
"Written scope first. Then recon, scan, validate, and report with fixes."
Only test systems you own or have written permission to test. Use the tabs or the ← → keys.
Kali is a Debian-based distro with hundreds of security tools preinstalled. Scanning or attacking systems you don't have permission for is illegal in most places, even "just to look."
$ ip addr show # confirm you're on the lab subnet $ ping -c 2 192.168.56.20 $ cat /etc/os-release
"Out of scope means out of scope. If it's not in the document, I don't touch it."
Everything from ordinary Linux still applies: files, pipes, permissions, apt. Kali just ships the tools and keeps them current.
$ sudo apt update && sudo apt full-upgrade -y $ sudo apt install kali-linux-default # the standard set $ apt search kali-tools- # metapackages by theme $ sudo apt install kali-tools-web $ nmap --help | less ; man nmap $ mkdir -p ~/engagements/lab1/{scans,notes,loot}
cmd | tee out.txt keeps evidence while you watch"I keep one folder per engagement and save every scan's output as evidence."
$ nmap -sn 192.168.56.0/24 # who's alive (ping sweep) $ nmap -sV -sC 192.168.56.20 # versions + default scripts $ nmap -p- -T4 192.168.56.20 # all 65535 ports $ sudo nmap -O 192.168.56.20 # OS guess $ nmap -sV -oA scans/target 192.168.56.20 # save all formats $ nmap --script vuln 192.168.56.20 # NSE vuln checks
$ whois example.com ; dig example.com ANY +short $ dig +short mx example.com ; host -t ns example.com
OpenSSH 4.7 tells you what's outdated"The service banner says an old version, so I'll check the CVE list and verify it, not assume it."
$ curl -I http://192.168.56.30/ # headers: server, cookies $ nikto -h http://192.168.56.30 # known-bad config check $ gobuster dir -u http://192.168.56.30 \ -w /usr/share/wordlists/dirb/common.txt $ whatweb http://192.168.56.30 # fingerprint the stack $ burpsuite & # set browser proxy to 127.0.0.1:8080
Work through each vulnerability class on DVWA's low setting, then raise the security level. Seeing why a fix works is the real lesson.
"Scanner hits are leads. I confirm each one by hand before it goes in the report."
$ sudo tcpdump -i eth0 -n host 192.168.56.30 $ sudo tcpdump -i eth0 -w scans/lab.pcap port 80 $ tcpdump -nn -r scans/lab.pcap | head $ wireshark scans/lab.pcap & $ tshark -r scans/lab.pcap -Y http.request \ -T fields -e http.host -e http.request.uri
port 80, host x, tcphttp.request.method == "POST"Capture traffic only on networks you own. Sniffing other people's traffic is wiretapping.
"Credentials crossing the wire in cleartext is a finding. The fix is TLS everywhere."
Defenders audit hashes from their own systems to find weak passwords before attackers do. Practice with hashes you generate yourself.
$ echo -n "letmein" | md5sum | cut -d' ' -f1 > h.txt $ hashid h.txt # what type is it? $ hashcat -m 0 -a 0 h.txt /usr/share/wordlists/rockyou.txt $ john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt h.txt $ john --show --format=raw-md5 h.txt
gunzip it first"The audit cracked 40% in an hour, so we're enforcing length, MFA, and a banned-password list."
Metasploit is a framework of tested modules. Use it on Metasploitable to see how an unpatched service turns into access, and what patching would have prevented.
$ sudo msfdb init ; msfconsole -q msf6> db_nmap -sV 192.168.56.20 # results go into the database msf6> hosts ; services msf6> search vsftpd 2.3.4 msf6> use exploit/unix/ftp/vsftpd_234_backdoor msf6> show options msf6> set RHOSTS 192.168.56.20 msf6> run
CVE-2011-2523; look it up on NVD"Outdated vsftpd on port 21: exploitable in the lab, mitigated by upgrading and firewalling the port."
Clients pay for clear findings and fixes, not for shell screenshots. Write for two readers: a manager who needs risk, and an engineer who needs steps.
$ script -a notes/session.log # record the terminal $ sha256sum scans/* > scans/SHA256SUMS # evidence integrity $ nmap -oX scans/t.xml 192.168.56.20 ; xsltproc scans/t.xml -o scans/t.html
"Every finding has evidence, impact, a fix, and a retest."