interencdec

Challenge Overview

Can you get the real meaning from this file.

Download the file here.

Solution

To get the file: wget https://artifacts.picoctf.net/c_titan/3/enc_flag

By using cat enc_flag command you get this encoded text: YidkM0JxZGtwQlRYdHFhR3g2YUhsZmF6TnFlVGwzWVROclgya3lNRFJvYTJvMmZRPT0nCg==

The first method would be by using CyberChef to decode the text. Originally putting it in you can recognize that it is Base64 because of the padding or magic filter will do it for you. It will then give this text: b'd3BqdkpBTXtqaGx6aHlfazNqeTl3YTNrX2kyMDRoa2o2fQ=='.

In CyberChef you can use the Drop Bytes function to remove b' and the ' surrounding the Base64 or you can just copy-paste it up to go through Base64 decoding again. It will then give this text: wpjvJAM{jhlzhy_k3jy9wa3k_i204hkj6}. This looks a lot like the format of flags (picoCTF{}) so it is likely a rotation cipher. By applying the ROT13 Brute Force function and then by using control-f to find "picoCTF" the flag is shown.

In the command line it could be done with this: cat enc_flag | base64 -d | cut -d "'" -f2 | base64 -d | caesar

The Caesar command is from bsdgames and could be installed like this in debian-based Linux distributions: sudo apt install bsdgames.

Flag: picoCTF{caesar_d3cr9pt3d_b20...}