DarkCTF 2020: Cryptography/haxXor

Cryptography/haxXor

281 points

you either know it or not take this and get your flag
5552415c2b3525105a4657071b3e0b5f494b034515

Solution

I’ve wrote small python script to solve the challange (it was xor ;-)).

from pwnlib.util.fiddling import xor

flag = bytes.fromhex('5552415c2b3525105a4657071b3e0b5f494b034515')
flag_prefix = b'darkCTF{'
xorstr = xor(flag_prefix, flag[:len(flag_prefix)])
print(xor(flag, xorstr))

haxxor1

darkCTF{kud0s_h4xx0r}

Privacy Policy
luc © 2021