Created
February 27, 2020 22:39
-
-
Save h4sh5/114cb5e5cbc5cfe9171e406f3cca6df5 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
import zlib, base64, re, xml.dom.minidom, struct, binascii | |
import sys | |
import urllib | |
d = sys.stdin.read() | |
urldecoded = urllib.unquote(d) | |
b64decoded = base64.b64decode(urldecoded) | |
decompressed = zlib.decompress(b64decoded, -15) | |
x = xml.dom.minidom.parseString(decompressed) | |
xml_pretty = x.toprettyxml(indent='\t') | |
print xml_pretty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment