P2PWannabe
Last updated
Last updated
Author: Blacowhait
Uruzic is a protocol network maniac! he want make protocol byself by combine 2 protocol he loved! P2P and multiplex! in this time he just implement like transfer file as usual between server and client, but adapt behavior of 2 protocol he loved! can you get file inside this traffic with protocol he created?!
CJ{i_wanna_make_this_protocol_running_properly}
We are given a network packet capture file, and this challenge doesn't really give us any hints on what to do. After searching for hours, we dumped the TCP stream and used good ol' binwalk
on it and found that the data is sent using the zlib compression.
From the first packet sent, we can see we have 8 bytes of data (presumably a header of some sort) before the zlib header. After some trial-and-error, we found that the last two bytes of the header has a unique value for every chunk, therefore it could mean that this value is the sequence or index. Since the chunks are divided into multiple packets, we need a script to parse and assemble them.
After getting all the Zlib datas and decompressing them, we got around ~1900 PNG files containing what seems to be hexadecimal.
Since we have a f*ck-ton of images and there is no way that we will do this manually, we need to create a script to extract the characters using OCR. After extracting the hexadecimals and converting them, we will get the flag somewhere inside the text.