KnightCTF 2026 — Writeups
Writeups for challenges solved during KnightCTF 2026, covering Network Forensics and Reverse Engineering.
Network Forensics: Reconnaissance
Category: Network Forensics Tools: Wireshark, tshark, Kali Linux
Scenario
A mid-sized e-learn company “Knight Blog” detected suspicious network activity. We’re called in to analyze packet captures from a coordinated cyber attack.
Analysis
Step 1: Identify Scanning Activity
Port scans involve sending SYN packets to various ports. Using tshark, we filtered for SYN packets without ACK:
tshark -r pcap1.pcapng -Y "tcp.flags.syn==1 and tcp.flags.ack==0" \ -T fields -e ip.src -e ip.dst | sort | uniq -c | sort -nr | head -n 565558 192.168.1.104 192.168.1.102 7 192.168.1.110 192.168.1.102- Attacker IP:
192.168.1.104(source of massive SYN flood) - Target IP:
192.168.1.102
Step 2: Identify Open Ports
Filter for SYN-ACK responses from the target:
tshark -r pcap1.pcapng -Y "ip.src==192.168.1.102 && ip.dst==192.168.1.104 \ && tcp.flags.syn==1 && tcp.flags.ack==1" -T fields -e tcp.srcport | sort | uniq2280Two open ports: 22 (SSH) and 80 (HTTP).
Flag: KCTF{2}
🌐 Network Forensics: Gateway Identification
Flag Format:
KCTF{vendor_name}
Analysis
Step 1: Default gateway is typically 192.168.1.1.
Step 2: Retrieve MAC address via ARP:
tshark -r pcap1.pcapng -Y "arp.opcode==2" \ -T fields -e arp.src.proto_ipv4 -e arp.src.hw_mac -e eth.src_resolved | sort | uniq192.168.1.1 88:bd:09:38:d7:a0 NetisTechnol_38:d7:a0OUI 88:bd:09 → Netis Technology
Flag: KCTF{Netis_Technology}
🔧 Reverse Engineering: E4sy_P3asy
Type: Reverse Engineering File:
E4sy_P3asy.ks(64-bit ELF)
The binary validates a flag character-by-character using MD5 hashes of salt + index + char. The solver reads stored target hashes from the binary and brute-forces each character position:
# solve.py approach:# 1. Read target MD5 hashes from the binary# 2. Brute-force each character position to find matching hashDecoy Flag (Length 13): Th1s_1s_D3c0y
Real Flag (Length 23): KCTF{_L0TS_oF_bRuTE_foRCE_:P}
Sphynx | Ismail Larhrib