jellyCTF
Exclusively_yours [826 pts]
Writeup author: lolmenow
Difficulty: easy
Provided files: encrypted.txt
Description: I encrypted this flag exclusively for you… but I lost the key. I’m sure you can figure it out :> Reminder: The flag format is jellyCTF{…}
The description heavily reminded me of the XOR cipher. Because, in many ctfs, we already know the flag format. So, the key for the XOR cipher can be found. This is called a known plaintext attack
Inside encrypted.txt, we are presented with:
06 1C 2F 38 3F 38 2C 29 09 0A 16 2D 1C 16 2B 31 17 1B 2D 0A 16 0F 18 1C 11
Converting this from hex gives gibberish, but since I know its a XOR cipher, lets put in the key for XOR as jellyCTF{
and see what happens. Don’t forget to convert from hex first! And if your using Cyberchef, make sure your in UTF-8 mode when inputting the key!
Hmmm, that might be our key!!
lyCTF{xor
sounds familiar to jellyCTF{xor
as our flag format!
Lets put jellyCTF{xor
in as the key.
Woah! We are discovering plaintext, lets keep putting this plaintext as the key.
More plaintext is being revealed! Lets keep going.
That seems like our flag!
Final flag: jellyCTF{xorry_not_xorry}
Final cyberchef recipe: https://gchq.github.io/CyberChef/#recipe=From_Hex('Auto')XOR(%7B'option':'UTF8','string':'jellyCTF%7Bxorry_not_xorry%7D'%7D,'Standard',false)&input=MDYgMUMgMkYgMzggM0YgMzggMkMgMjkgMDkgMEEgMTYgMkQgMUMgMTYgMkIgMzEgMTcgMUIgMkQgMEEgMTYgMEYgMTggMUMgMTE