Created
December 31, 2017 13:27
-
-
Save samduy/b99927cc42b8ad0f114cdd1c8b1e759d to your computer and use it in GitHub Desktop.
Convert Windows registry hex format to readable ASCII
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binascii, sys, string | |
dataFormatHex = binascii.a2b_hex(sys.argv[1]) | |
output = "" | |
for char in dataFormatHex: | |
if char in string.printable: output += char | |
else: output += "." | |
print "\n" + output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment