wvg/python/after.py

17 lines
490 B
Python
Raw Normal View History

2024-04-18 20:48:32 +00:00
# parse license challenge
2024-05-01 21:37:00 +00:00
try:
cdm.parse_license(session_id, licence)
except Exception as e:
js.document.getElementById('result').value="sch3m3n0t6upp0rt:y0ucanr3qu3st0rsu6mit\n\n[MPD?]\nhttps://gist.github.com/FoxRefire/fd606ec29a9bfa1f1bef897e0dc3a231"
raise Exception(e)
2024-04-18 20:48:32 +00:00
# get keys
keys=""
for key in cdm.get_keys(session_id):
2024-04-24 16:37:29 +00:00
if key.type=="CONTENT":
keys+=f"{key.kid.hex}:{key.key.hex()}\n"
2024-04-18 20:48:32 +00:00
# close session, disposes of session data
cdm.close(session_id)
keys