2021-03-14-RoccaPia

Posted on March 14, 2021

Rocca Pia

Solution

The executable unXORs flag and compares it against our input. I used simple Python script to recreate this behavior.

inp = [int(c, 16) for c in "77 41 50 63 55 4C 5A 68 7F 06 78 04 4C 44 64 06 7E 5A 22 59 74 4A".split(" ")]

for i in range(len(inp)):
    if i & 1:
        inp[i] = inp[i] ^ 0x37
    else:
        inp[i] = inp[i] ^ 0x13

print("".join([chr(c) for c in inp]))

Flag

dvCTF{I_l1k3_sw1mm1ng}

Credits

License

CC BY 4.0 WaletSec + everl0stz