Last active
April 21, 2016 10:44
-
-
Save jorgevila/b742a402fdbf732bd7056176cc39e7b2 to your computer and use it in GitHub Desktop.
Get License URL from Manifest
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 base64 | |
a=<ProtectionHeader...> | |
b=a.decode("base64") | |
b | |
#Remove 10 first bytes related to size, etc | |
c=b[10:] | |
c | |
#decode as utf-16 | |
d=c.decode("utf-16") | |
d | |
#Key ID for LA server | |
"<KID>".decode("base64") | |
# Decode key | |
import binascii | |
binascii.hexlify('\x0f\xb1\x08E\x04\xad/D\x8c>+0M*\xc0N') | |
# Show history | |
import readline | |
for i in range(readline.get_current_history_length()): | |
print readline.get_history_item(i + 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment