Skip to content

Instantly share code, notes, and snippets.

@bernardopadua
Created March 11, 2018 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernardopadua/3ee2e03a464f64820264124e27f5feae to your computer and use it in GitHub Desktop.
Save bernardopadua/3ee2e03a464f64820264124e27f5feae to your computer and use it in GitHub Desktop.
b = "2d2f3e4a45090b041e450d0f1e4513051f45051f1e45050c45071345020f0b0e44021e07064a223e3e3a455b445b361836042205191e504a090b1c0b05181e0b440905074408183618360460"
s = 0
ns = ""
for c in b:
if s == 2:
ns += "."
ns += c
s = 1
else:
ns += c
s = s + 1
b = ns.split('.')
ns = ""
for i in range(0xFF): #0x4a 0x6a
for c in b:
ns += chr(int(c, 16)^i)
print(hex(i) + " ==> " + ns.replace('\n', '').replace('\r', ''))
ns = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment