Home
Writeups Misc About
Lemur Xor

Lemur Xor

Straightforward, and perhaps classic challenge. This takes advantage of the fact that both images are encrypted using the same xor key. We can leak information of the flag by xor the two ciphertext, or the two files given.

There are different snippets of code which can do this, which weirdly is not available online. The following is to do xor on RGB values of pixel by pixel.

daneallen from Cryptohack:

Shorter solution from shoaloak:

Last solution using numpy, from Hon: