kashiCTF 2026 - Ancient Mystery
A secret message has been passed down through generations since the time of the great Mahabharata war. Legend says that every 64 years, the keepers of this secret would encode the message once more to protect it from those who might seek to misuse its power. The message has traveled through 3136 years of history, from the ancient battlefields of Kurukshetra in 3136 BCE to the dawn of the Common Era.
Initial Analysis
The challenge provides two main clues:
- Mathematical Clue: The message has existed for 3136 years and was re-encoded every 64 years. $$\frac{3136}{64} = 49$$ This suggests the message has been recursively encoded 49 times.
- File Inspection: The provided file
secret_message.txtis large (~59MB) and starts with the charactersVm0wd2Qy..., which is a classic signature for multiple layers of Base64 encoding.
Extraction & Decoding
We can use a Python script to iteratively decode the file 49 times. Each layer of decoding reduces the file size until the final plaintext flag is revealed.
1 | import base64 |