Skip to content

Instantly share code, notes, and snippets.

@reikoNeko
Created August 21, 2019 17:44
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 reikoNeko/0258d3dad117d265ff445b1bacb973ce to your computer and use it in GitHub Desktop.
Save reikoNeko/0258d3dad117d265ff445b1bacb973ce to your computer and use it in GitHub Desktop.
Assemble a human readable string from hexadecimal ascii
def hexstring(s):
return [ chr(int(x,16))for x in map(''.join, zip(*[iter(s)]*2)) ]
dmprg = ''.join(hexstring("7777772e796f75747562652e636f6d2f77617463683f763d5a79614b336a6f34536c34"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment