Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/python -w
f = open("1.bin","rb")
data = f.read()
f.close()
out = ""
for i in range(0,23):
ref_char = data[(i * 17) + 4]
target_char = data[(i * 17) + 5]
xor_key = ord(ref_char) ^ 0x3C
tgt_chr = ord(target_char) ^ xor_key
out += chr(tgt_chr)
print out
# 34C3_M1GHTY_M0RPh1nG_g0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment