CrymanChen / WKS-KEYS

A repo modified for bypassing Widevine L3 DRM and obtaining keys.
GNU General Public License v3.0
139 stars 27 forks source link

dose it support json widevine ? #8

Closed imrsaleh closed 9 months ago

imrsaleh commented 9 months ago

www.vrt.be www.starzplay.com these sites has the same type of DRM i already have paid access to these site and ready to provide any information you want

CrymanChen commented 9 months ago

Yes.

imrsaleh commented 9 months ago

‏‏لقطة الشاشة (3)

i dont know whats wrong

CrymanChen commented 9 months ago
  1. You have edited the l3.py script, so I don't know what you have input.
  2. Based on the content of 'widevine_license', it means HTTP 403.
  3. (Assumption) You may be missing 3 important parameters: token, drm_info, kid, and you should convert your original license request into an array. Further details are inappropriate to be discussed here publicly.
    This is what I met some time earlier. You should edit your script.
    image
imrsaleh commented 9 months ago

Thank you for your response. I was able to send the request correctly, but there is a small problem, perhaps in how to write the print keys. For example, see the image. key

i use this on my script: return {key.kid.hex: key.key.hex() for key in keys} for key_id, key_value in keys.items(): print(f'--key {key_id}:{key_value}')

CrymanChen commented 9 months ago

I don't know lol, maybe it's the session ID.
As for the key output, why not just:

for key in keys: 
    print('--key' + key)

I assume that you are using the pywidevine style.

imrsaleh commented 9 months ago

for key in keys: print('--key' + key)

i got these :( --key00000000000000000000000000000000 --keya00db63003f2481dc8e8240865bbc988

imrsaleh commented 9 months ago

this code fix the problem, you can close

for key in cdm.get_keys(session_id): if key.type != 'SIGNING': print(f"\n--key {key.kid.hex}:{key.key.hex()}")