online
writeups

Hiddencipher2

PicoCTF2026 reverse

Pasted image 20260323155712

This challenge provides us a flag.txt and a binary file, that makes us do a mathematical operation, and that outputs the encoded flag value. By looking at the disassembly of the hiddencipher2, we see that the program reads the flag.txt, and use a encode_flag function with two arguments, one being the clear flag string, the other being the result of the math operation we provided.

Pasted image 20260323155902

Looking at the encode_flag function, we see that each char value is being multiplied by the second argument. By doing a small python script, taking each encode characters, dividing it by the value of our input, we find the flag in clear text !

Pasted image 20260323160246

Script : Pasted image 20260323160309

● NORMAL 0xBlog
JetBrains Mono UTF-8 Hugo