Cyberpunk Cafe was a challenge at TenableCTF 2023 from the ‘Stego’ category.
We received a single text file for this challenge.
The challenge.txt file had the following contents
The first thing that I could think of when seeing that string was that maybe it forms some patterns if printed with a specific number of characters per row.
So I looked at the length of that string: 1681 characters.
If you factorize 1681, you will see that it is 41 squared. This gave me quite an obvious option: a 41x41 square.
Also, if it is a square it is probably going to be a QR code.
This part is quite similar to an older challenge that I solved, so I used a similar approach.
The code is quite simple, it starts with a 41x41 numpy array and then it goes through the array of zeros and ones:
if the current char is a 0 it turns the corresponding pixel black
if the current char is a 1, the corresponding pixel turns white
After running it, I got a 41x41 black and white image.
This is how it looks after magnifiying it a bit (it was 41x41 … so it was small)
Scan the code and you get the flag: flag{br1ng_b4ck_phys1c4l_menu5}