Skip to content

Instantly share code, notes, and snippets.

@jorgevila
Last active April 21, 2016 10:44
Show Gist options
  • Save jorgevila/b742a402fdbf732bd7056176cc39e7b2 to your computer and use it in GitHub Desktop.
Save jorgevila/b742a402fdbf732bd7056176cc39e7b2 to your computer and use it in GitHub Desktop.
Get License URL from Manifest
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