Lemur XOR
I've hidden two cool images by XOR with the same secret key so you can't see them!
This challenge requires performing a visual XOR between the RGB bytes of the two images - not an XOR of all the data bytes of the files.
images are flag.png and lemur.png
Solution
We have to just extract rgb values of both images and xor them.To extract rgb values we can use PIL library in python.
break.py
from PIL import Image
lemur = Image.open("lemur.png")
flag = Image.open("flag.png")
rgb_lemur = lemur.load()
rgb_flag = flag.load()
for i in range(lemur.width):
for j in range(lemur.height):
l = rgb_lemur[i,j]
f = rgb_flag[i,j]
rgb_flag[i,j] = (l[0]^f[0], l[1]^f[1], l[2]^f[2])
flag.save("Flag.png")
Flag after running the script is crypto{X0Rly_n0t!}