Notes
Search
K
Comment on page

CTF

The more obscure crypto stuff goes here

Decode Flag from Long

from Crypto.Util.number import long_to_bytes
m = ...
print(long_to_bytes(m))

Subtract 2 Images (similar to xor)

from PIL import Image, ImageChops
i1 = Image.open('1.png')
i2 = Image.open('2.png')
iFlag = ImageChops.add(ImageChops.subtract(i2, i1), ImageChops.subtract(i1, i2))
iFlag.show()
Last modified 9mo ago