Open shark1.pcapng in Wireshark, filter on http and follow the TCP stream of the responses. One body reads Gur synt vf cvpbPGS{...} — that's the flag, ROT13-encoded. Searching for picoCTF{ finds nothing; decoding ROT13 gives The flag is picoCTF{...}.
- Platform: picoGym
- Category: Forensics
- Points: 50 pts
- Difficulty: Beginner
- Tools: WiresharktsharkROT13
Challenge description
The challenge provides a single shark1.pcapng file, with no hint besides the somewhat absurd challenge title. It's a classic network analysis intro: we're given a raw capture and have to find the flag hidden somewhere in the traffic exchanged.
A .pcapng capture (Packet CAPture, next generation format) contains every network frame observed during a session — Ethernet, IP, TCP/UDP headers, and the application data traveling on top. Without encryption, everything that transits is readable by anyone holding the capture.
Step 1 — Open the capture
We launch Wireshark and load the provided file:
$ wireshark shark1.pcapng
The packet list that appears is dense: dozens, even hundreds of frames — ARP, DNS, TCP, HTTP, plus local-network background noise. Impossible to spot the flag by eye in this flood without filtering.
Step 2 — Filter on HTTP
In the display filter bar at the top of the window, we simply type:
http
This filter only keeps packets containing an HTTP request or response (the underlying TCP transport protocol stays invisible, but Wireshark isolates the application layer we care about). The list shrinks to the HTTP exchanges: requests and their 200 OK responses, most of them carrying short text/html bodies.
Step 3 — Follow the TCP stream
Pick a 200 OK response with a text/html body. Right-click on it, then:
Follow → TCP Stream
Wireshark then opens a new window that reconstructs the entire TCP conversation between the client and server — the full request sent by the client (GET, Host, User-Agent... headers) and the full response returned by the server (response headers, then the HTML body).
Use the stream selector in the bottom-right corner of that window to step through the other conversations until you find one whose body isn't ordinary HTML. Tip: if the stream contains several HTTP objects mixed together, the Follow → HTTP Stream option is even more targeted — it isolates the HTTP exchanges directly, without the noise of TCP acknowledgments.
Step 4 — Spot the odd response
Searching the stream for picoCTF{ finds nothing — the flag isn't there in clear text. What stands out instead is one response body that looks like scrambled English:
HTTP/1.1 200 OK
Content-Type: text/html
...
Gur synt vf cvpbPGS{...}
The structure gives it away: four words, braces in the same place as a flag, and cvpbPGS has exactly the shape of picoCTF — same length, same upper/lowercase pattern. Only the letters changed, which points to a letter-rotation cipher. Gur → The is the classic ROT13 fingerprint.
From the command line, tshark (Wireshark's CLI sibling) dumps every response body so you can scan them all at once:
$ tshark -r shark1.pcapng -Y http -T fields -e http.file_data
Step 5 — Decode the ROT13
ROT13 shifts every letter 13 places; applying it again undoes it. Copy the string and decode it with tr, CyberChef's ROT13 operation, or any online ROT13 decoder:
$ echo 'Gur synt vf cvpbPGS{...}' | tr 'A-Za-z' 'N-ZA-Mn-za-m'
The flag is picoCTF{***}
Digits and symbols inside the braces aren't affected by ROT13, so the decoded flag keeps them as they were.
🚩 picoCTF{ flag intentionally hidden }
The flag is deliberately hidden — follow the method, you've earned it. 💪
Key takeaways
- Unencrypted HTTP traffic (no TLS) exposes its entire content to anyone intercepting the capture — this is exactly why HTTPS is now the standard everywhere, even for "unimportant" content
- The
httpdisplay filter combined withFollow → TCP/HTTP Streamis the go-to move for any network forensics challenge -
tsharklets you automate the same analysis from the command line, useful for scripting or handling very large captures - Don't rely on grepping for
picoCTF{alone — a flag-shaped string with the wrong letters (cvpbPGS{) is usually encoded, here with ROT13
Originally published on CTFdojo — join the CTFdojo Discord to discuss writeups and get notified about new ones.
Top comments (0)