Multi-path TCP (MPTCP) challenge: data is spread across multiple subflows. Task is to combine the requests and recover the flag.
Solution Steps
# 1. Merge the three PCAP filesmergecap -w merged_chall.pcap chall-i1.pcap chall-i2.pcap chall-i3.pcap
# 2. Extract TCP flowstcpflow -r merged_chall.pcap -o ./output_dir
# 3. Concatenate already ordered payload fragments without truncating any inputcat a b c > combined.bin
# 4. Extract embedded archive with binwalkbinwalk -eM combined.bina, b and c denote extracted payload fragments, not filenames produced automatically by tcpflow. Their mapping, direction and data-sequence ordering must be established from MPTCP DSS options; tcpflow reconstructs individual TCP streams, not the MPTCP connection as a whole. The captures and this mapping are unavailable, so this command sequence does not yet reproduce the final archive.
Key Findings
- Identified ZIP archive at offset
0x78145Bcontaining 11 files - Extracted files include multiple JPEGs:
Flag.jpg,Here.jpg,Is.jpg,NOT_A_FLAG.jpg - Flag is embedded in one of the extracted images
247CTF{[flag redacted]}