Network-Based Attacks CTF 1

Analyze a captured packet file (test.pcap) to trace a malware infection and capture six flags.

eJPT preparation · Write-up by Zeliha Zengin

Lab Environment

GUI access to a Kali machine is provided, along with a packet capture, test.pcap. The whole challenge is network forensics — identify the infected host and reconstruct the attack entirely from the capture.

Wireshark

All work is performed against an authorized INE training lab for eJPT exam preparation.

Flag 1 — Domain that returned 200 OK

Open test.pcap in Wireshark and hunt for suspicious traffic — connections to unfamiliar external hosts are the first indicator of compromise. Filter for successful HTTP responses:

http.response.code == 200

Select an HTTP/1.1 200 OK response, expand the Hypertext Transfer Protocol section, and follow the link back to its matching request to read the requested URL.

🏁 FLAG 1: 623start.site

Flag 2 — Infected client IP + MAC

Filter to HTTP and read the source addresses of the infected host's requests:

http
🏁 FLAG 2: 10.7.10.47  ·  80:86:5b:ab:1e:c4

Flag 3 — NetBIOS hostname

NetBIOS Name Service runs over UDP port 137. Either filter isolates it:

nbns
udp.port == 137

The NBNS registration reveals the victim's hostname: DESKTOP-9PEA63H.

🏁 FLAG 3: DESKTOP-9PEA63H

Flag 4 — Who ran mystery_file.ps1

Filter to HTTP, then use Edit → Find Packet, searching the packet bytes (as a *String*) for mystery_file. to locate the transfer:

http

Right-click the matching packet → Copy → …Printable Text, paste into a text editor, and search (Ctrl+F) for Users to recover the account path.

🏁 FLAG 4: rwalters

Flag 5 — PowerShell User-Agent

Search the capture for PowerShell; the malicious download carries a PowerShell User-Agent string.

🏁 FLAG 5: WindowsPowerShell

Flag 6 — Coinbase wallet extension ID

Search for coinbase, right-click the matching packet → Follow → TCP Stream, select all, copy, and paste into a text editor. Locate the Coinbase entry and read its Extension ID.

🏁 FLAG 6: hnfanknocfeofbddgcijnmhnfnkdnaad

Summary

FlagTechnique
1http.response.code == 200 → follow request
2http filter → source IP/MAC
3nbns / udp.port == 137
4Find Packet (string) → Copy Printable Text → search Users
5Search PowerShell → User-Agent
6Search coinbase → Follow TCP Stream

Key Takeaways