packet-story
- •
Attribution
- •
Solved by Muhammad Dhafin Ramadhan during the competition. These are rn’s study notes based on the teammate’s documented solve, not an independent rn solve.
- •
- •
What it asked
- •
Reassemble an HTTP chunked body, then apply the declared Base64 and Gzip layers.
- •
- •
- •
Solution
- •
import base64, gzip chunks = [ "H4sIAJ9LmmoC/6tWKi", "5JLCktVrJSys9W0lHK", "yy9JBbJTUpPzcwuKUo", "uLFUCMnFSgqI5SWk5i", "OlDS29czwM+iugioJq", "+4pKg0uSQ+KTUtvyg1", "vjK/NB6kNSW1VqkWAK", "Zf/Y9bAAAA", ] print(gzip.decompress(base64.b64decode("".join(chunks))).decode())
- •
- •
Verification
- •
The reconstructed body decompresses locally to the recorded flag.
- •
- •
Concepts
- •
HTTP chunked transfer encoding; Base64; file signatures; Gzip decompression.
- •
- •