Skip to content

Commit e4167ca

Browse files
authored
Create README.md
1 parent 3b5705d commit e4167ca

File tree

1 file changed

+14
-0
lines changed
  • 2017-07-15-ctfzone/decrypt_the_undecryptable

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Decrypt the undecryptable (reverse, ppc, 724p)
2+
3+
> Oh noes! It looks like we've lost decryption keys to our super-secret archive that contains all the blackmail material we've accumulated over the years!
4+
> Luckly, the encryption system was built with the government money by the lowest bidder, so maybe it contains some flaws.
5+
6+
> decrypt_the_undecryptable.tar
7+
8+
In this task we were given a randomish BMP picture and a binary for en-/de-crypting.
9+
10+
I didn't even really look at the binary - one quick glance at the image was enough to see distinct repetition patterns.
11+
This very likely meant it was encrypted using some block cipher in ECB mode or, alternatively, xored using short repeating
12+
key. I quickly found an offset containing the repeating part, produced a quick and dirty Python script to xor
13+
the whole image with that 128-byte long block and save the result. The final image was not perfect, but good enough to be
14+
able to read the message.

0 commit comments

Comments
 (0)