back to activities
prepare_the_tools
forensics · network analysis · Dec 2023

Challenge Description

We were provided with a .pcapng file containing network traffic. The task was to inspect and analyse this file to locate and reconstruct a fragmented flag hidden across multiple TCP packets.


Step-by-Step Solution

Step 1: Initial Inspection


Step 2: Filter Relevant Packets

Applied the Wireshark display filter:

tcp contains "flag"

This revealed packets containing partial flag data, all numbered (e.g., flag[0004], flag[0006]).


Step 3: Follow the TCP Stream


Step 4: Display Data in ASCII


Step 5: Reorder the Flag Fragments


Step 6: Decode and Obtain the Flag

Once reordered, the combined text formed a coherent message referencing a Harry Potter excerpt. Embedded within was the completed flag.


Flag

CJ{warm_up_for_your_scapy/pyshark/tshark}

Conclusion

This challenge demonstrated how to use Wireshark's filters, stream following, and ASCII display mode to locate dispersed flag fragments. By scripting the reordering of fragments, we successfully reconstructed and decoded the hidden flag from the network capture.

cyberfigtree.dev