VideoHelp Forum




+ Reply to Thread
Page 3 of 4
FirstFirst 1 2 3 4 LastLast
Results 61 to 90 of 92
  1. Member
    Join Date
    Aug 2023
    Location
    Turkey
    Search Comp PM
    i now the song Heiko Heiko

    Last edited by senkron24; 24th Apr 2024 at 13:01.
    Quote Quote  
  2. Member
    Join Date
    Aug 2023
    Location
    Turkey
    Search Comp PM
    Originally Posted by Data2006 View Post
    Very funny.
    sorry bro bud i can help you with teamwiver if you want its was just jocke
    contackt me on privet
    Quote Quote  
  3. Thank you for the offer. But I would like to try it again myself.

    Maybe someone can help me with my last questions? Many thanks.

    Best regards
    Heiko
    Quote Quote  
  4. Member
    Join Date
    Aug 2023
    Location
    Turkey
    Search Comp PM
    Originally Posted by Data2006 View Post
    Thank you for the offer. But I would like to try it again myself.

    Maybe someone can help me with my last questions? Many thanks.

    Best regards
    Heiko

    heiko its litle big tribel trubel

    same points its very strange in windows
    one of this its protobuf must be ok and coreckt version
    for me was the best in windows Version: 3.20.1 you have to be sure chack again with
    pip show protobuf

    and must must be sure thad your keys are ok if you sure
    device_client_id_blob
    device_private_key
    must be placed in
    WKS-KEYS\pywidevine\L3\cdm\devices\android_generic

    and in end if you have still problem you must be sure thad you site not want headers if is so you must use headers.py


    hope you get running

    good luck
    Quote Quote  
  5. Thank you.

    I already have the two files mentioned in the folder mentioned. See #58.

    Best regards
    Heiko
    Quote Quote  
  6. Good evening.

    I have now been able to create a .wvd file. However, in a different folder than Angela wrote.

    But nowhere in the instructions does it say that I have to create WVD in a specific folder!

    Is that okay with me?

    C:\Users\Heiko>C:\Users\Heiko\env\Scripts\activate .bat

    (env) C:\Users\Heiko>pywidevine create-device -k C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic\dev ice_private_key -c C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic\dev ice_client_id_blob -t ANDROID -l3 -o WVD
    INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    INFO:create-device:Created Widevine Device (.wvd) file, google_android_sdk_built_for_x86_v4.1.0-android_b055e439_4464_l3.wvd
    INFO:create-device: + Type: ANDROID
    INFO:create-device: + System ID: 4464
    INFO:create-device: + Security Level: 3
    INFO:create-device: + Flags: {}
    INFO:create-device: + Private Key: True (2048 bit)
    INFO:create-device: + Client ID: True (1651 bytes)
    INFO:create-device: + VMP: False
    INFO:create-device: + Saved to: C:\Users\Heiko\WVD\google_android_sdk_built_for_x8 6_v4.1.0-android_b055e439_4464_l3.wvd

    (env) C:\Users\Heiko>


    Best regards and good night
    Quote Quote  
  7. PS: If necessary, I can move the WVD folder to another folder.
    Quote Quote  
  8. My adapted version l3.py from https://forum.videohelp.com/threads/411862-Beyond-WKS-KEYS looks like this:
    from pywidevine.cdm import Cdm
    from pywidevine.device import Device
    from pywidevine.pssh import PSSH
    import requests
    #
    # enter special header values here in the form 'token': ' value', each on one line - remember the quotes and the comma!
    headers = {
    'Accept': '*/*',
    }

    # prepare pssh
    #pssh = PSSH("AAAAVnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADYI ARIQSOe5B5JcTV2gbw07SycC7xoNd2lkZXZpbmVfdGVzdCIIMT IzNDU2NzgyB2RlZmF1bHQ=")
    pssh = input("PSSH? ")
    pssh = PSSH(pssh)
    lic_url = input("License URL? ")

    # load device
    # for example
    #device = Device.load(r"/home/angela/Programming/WKS-KEYS/pywidevine/L3/cdm/devices/emulator_1/WVD/google_aosp_on_ia_emulator_14.0.0_xxxxxc_4464_l3.w vd")
    device = Device.load(r"<enter your path to the wvd file you have created, here>")

    # load cdm
    cdm = Cdm.from_device(device)

    # open cdm session
    session_id = cdm.open()

    # get license challenge
    challenge = cdm.get_license_challenge(session_id, pssh)

    # send license challenge (assuming a generic license server SDK with no API front)
    licence = requests.post(lic_url, headers = headers, data=challenge)
    licence.raise_for_status()

    # parse license challenge
    cdm.parse_license(session_id, licence.content)

    # print keys
    for key in cdm.get_keys(session_id):

    if key.type=='CONTENT':
    print(f"\n--key {key.kid.hex}:{key.key.hex()}")

    # close session, disposes of session data
    cdm.close(session_id)


    I named the new file "l3 - copy.py" for testing.
    I did not change the original l3.py from WKS-KEYS.

    But something went wrong again?!
    (env) C:\Users\Heiko>"C:\Users\Heiko\Downloads\WKS-KEYS\l3 - Kopie.py"
    Traceback (most recent call last):
    File "C:\Users\Heiko\Downloads\WKS-KEYS\l3 - Kopie.py", line 1, in <module>
    from pywidevine.cdm import Cdm
    ModuleNotFoundError: No module named 'pywidevine.cdm'

    (env) C:\Users\Heiko>
    Quote Quote  
  9. Do I have to run pip install pycryptodomex again?
    Quote Quote  
  10. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Originally Posted by Data2006 View Post
    Do I have to run pip install pycryptodomex again?
    no you already have it install
    show us what you install
    pip freeze
    Quote Quote  
  11. Microsoft Windows [Version 10.0.19045.4291]
    (c) Microsoft Corporation. Alle Rechte vorbehalten.

    C:\Users\Heiko>C:\Users\Heiko\env\Scripts\activate .bat

    (env) C:\Users\Heiko>pip freeze
    certifi==2024.2.2
    charset-normalizer==3.3.2
    click==8.1.7
    colorama==0.4.6
    construct==2.8.8
    idna==3.7
    protobuf==4.25.3
    pyaml==24.4.0
    pycryptodome==3.20.0
    pymp4==1.4.0
    pywidevine==1.8.0
    PyYAML==6.0.1
    requests==2.31.0
    Unidecode==1.3.8
    urllib3==2.2.1

    (env) C:\Users\Heiko>

    Best regards
    Heiko
    Quote Quote  
  12. Good day everybody.

    Can I still get help?

    Best regards
    Heiko
    Quote Quote  
  13. put your l3 - Kopie.py file to

    (env) C:\Users\Heiko\some_folder_your_env_name

    and run python "l3 - Kopie.py"



    do not run command like this

    (env) C:\Users\Heiko\some_folder_your_env_name>"C:\Users \Heiko\Downloads\WKS-KEYS\l3 - Kopie.py"
    Last edited by shellcmd; 25th Apr 2024 at 21:14.
    Quote Quote  
  14. Good day everybody.

    Sadly it did not work:
    C:\Users\Heiko>C:\Users\Heiko\env\Scripts\activate .bat

    (env) C:\Users\Heiko>copy "C:\Users\Heiko\Downloads\WKS-KEYS\l3 - Kopie.py" env
    1 Datei(en) kopiert.

    (env) C:\Users\Heiko>python "C:\Users\Heiko\env\l3 - Kopie.py"
    PSSH? AAAAQ3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACMIARIQLn I2ocJtQIut0Mo0xEfBKiINYV9waGozMWFkODJndQ==
    License URL? https://api.vod-prd.s.joyn.de/v1/license?token=CiQ2YzAwMzQyZi0zNWJmLTQ2MTEtOGUyMy0xNzF...mfn96h8&keyId=
    Traceback (most recent call last):
    File "C:\Users\Heiko\env\l3 - Kopie.py", line 20, in <module>
    device = Device.load(r"<enter your path to the wvd file you have created, here>")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Heiko\env\Lib\site-packages\pywidevine\device.py", line 163, in load
    with Path(path).open(mode="rb") as f:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Heiko\AppData\Local\Programs\Python\Pyth on312\Lib\pathlib.py", line 1013, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^
    OSError: [Errno 22] Invalid argument: '<enter your path to the wvd file you have created, here>'

    (env) C:\Users\Heiko>

    Apparently the WVD folder is missing. I have it at:
    (env) C:\Users\Heiko\WVD>dir
    Datenträger in Laufwerk C: ist Win10
    Volumeseriennummer: 7B3F-B154

    Verzeichnis von C:\Users\Heiko\WVD

    24.04.2024 23:32 <DIR> .
    24.04.2024 23:32 <DIR> ..
    24.04.2024 23:32 2.855 google_android_sdk_built_for_x86_v4.1.0-android_b055e439_4464_l3.wvd
    1 Datei(en), 2.855 Bytes
    2 Verzeichnis(se), 88.990.396.416 Bytes frei

    (env) C:\Users\Heiko\WVD>

    There was no specific path specified anywhere in the instructions for create.

    Best regards
    Heiko
    Quote Quote  
  15. Found a mistake.

    Have to change the path. Nobody told me. Didn't look at the source code.

    # load device
    # for example
    #device = Device.load(r"/home/angela/Programming/WKS-KEYS/pywidevine/L3/cdm/devices/emulator_1/WVD/google_aosp_on_ia_emulator_14.0.0_xxxxxc_4464_l3.w vd")
    device = Device.load(r"<enter your path to the wvd file you have created, here>")

    Best regards
    Heiko
    Quote Quote  
  16. (env) C:\Users\Heiko\WVD>cd ..

    (env) C:\Users\Heiko>python "C:\Users\Heiko\env\l3 - Kopie.py"
    PSSH? AAAAQ3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACMIARIQLn I2ocJtQIut0Mo0xEfBKiINYV9waGozMWFkODJndQ==
    License URL? https://api.vod-prd.s.joyn.de/v1/license?token=CiQ2YzAwMzQyZi0zNWJmLTQ2MTEtOGUyMy0xNzF...9hSnE8g&keyId=
    Traceback (most recent call last):
    File "C:\Users\Heiko\env\l3 - Kopie.py", line 34, in <module>
    licence.raise_for_status()
    File "C:\Users\Heiko\env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
    requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.vod-prd.s.joyn.de/v1/license?token=CiQ2YzAwMzQyZi0zNWJmLTQ2MTEtOGUyMy0xNzF...9hSnE8g&keyId=

    (env) C:\Users\Heiko>

    Best regards
    Heiko
    Quote Quote  
  17. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Image
    [Attachment 78647 - Click to enlarge]

    Code:
    --key 2e7236a1c26d408badd0ca34c447c12a:be6756df89694bea3231e30e0d37b3a6
    --key c36d8c747204560abee687d585d886e0:63afc25c8cb606791127907f6724ed94
    --key cdb0ef1476655cfe91242da179e0af11:24ae20da88f8a1cd43b27d18ff6c9c30
    --key 3a054a715d3d5906957c029fba32e8ba:2f5e201d3728ab8d9c8a24b2efcbad14
    Quote Quote  
  18. C:\Users\Heiko>C:\Users\Heiko\env\Scripts\activate .bat

    (env) C:\Users\Heiko>pywidevine test C:\Users\Heiko\WVD\google_android_sdk_built_for_x8 6_v4.1.0-android_b055e439_4464_l3.wvd
    INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    INFO:license:[+] Loaded Device (4464 L3)
    INFO:license:[+] Loaded CDM
    INFO:license:[+] Opened CDM Session: 47d565b263813e6cee64dd1403a32179
    INFO:license:[+] Created License Request Message (Challenge)
    ERROR:license:[-] Failed to send challenge: [500] ACCESS_DENIED

    (env) C:\Users\Heiko>
    Quote Quote  
  19. Originally Posted by Data2006 View Post
    C:\Users\Heiko>C:\Users\Heiko\env\Scripts\activate .bat

    (env) C:\Users\Heiko>pywidevine test C:\Users\Heiko\WVD\google_android_sdk_built_for_x8 6_v4.1.0-android_b055e439_4464_l3.wvd
    INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    INFO:license:[+] Loaded Device (4464 L3)
    INFO:license:[+] Loaded CDM
    INFO:license:[+] Opened CDM Session: 47d565b263813e6cee64dd1403a32179
    INFO:license:[+] Created License Request Message (Challenge)
    ERROR:license:[-] Failed to send challenge: [500] ACCESS_DENIED

    (env) C:\Users\Heiko>


    Your CDM is revoked… Now get new one.


    FYI — Karloos has posted so many ready to use CDMs (28+) in a post so you can get one of them or dump new one using Angela's Method in sticky threads
    Quote Quote  
  20. OK, I have now downloaded a file 1836941661.zip.

    There are 2 files client_id.bin and private_key.pem in there.

    Where do I have to copy them? And do I have to rename it somehow?

    Best regards
    Heiko
    Quote Quote  
  21. Member
    Join Date
    Aug 2023
    Location
    Turkey
    Search Comp PM
    ah kom heiko lesen macht schlau hast du doch schon vorher gefragt

    wir beginnen es von vorne an!?
    wie ein klein kind?!
    das must du doch etwas nachgelesen konen oder eben haben konnen
    Quote Quote  
  22. No, I haven't asked about the ZIP file and the 2 files it contains yet.

    I then have to create a new .wvd file?!

    Best regards
    Heiko
    Quote Quote  
  23. Unfortunately I can't speak English well.

    And Google doesn't make good German out of it.
    Quote Quote  
  24. Originally Posted by Data2006 View Post
    No, I haven't asked about the ZIP file and the 2 files it contains yet.

    I then have to create a new .wvd file?!

    Best regards
    Heiko
    OK, Let's make it simple for you

    As observing your previous messages, it seems you're using Windows OS + installed pywidevine as well

    1. First extract zip file

    2. go to that extracted zip file

    3. save this code as Script.bat (just a simple script generated with ChatGPT)

    Code:
    @echo off
    setlocal
    
    rem Renaming private_key.pem to device_private_key
    ren "private_key.pem" "device_private_key"
    
    rem Renaming client_id.bin to device_client_id_blob
    ren "client_id.bin" "device_client_id_blob"
    
    echo Files renamed successfully.
    
    rem Execute pywidevine command
    pywidevine create-device -k device_private_key -c device_client_id_blob -t ANDROID -l3 -o WVD
    
    echo pywidevine command executed successfully.
    pause
    4. Now your folder will look like this



    5. Now just double-click on Script.bat file.
    - a terminal window will open and if everything is right, then you'll see something like this in terminal window


    Code:
    Files renamed successfully.
    INFO:root:pywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    INFO:create-device:Created Widevine Device (.wvd) file, google_aosp_on_ia_emulator_14.0.0_0d4bced3_4464_l3.wvd
    INFO:create-device: + Type: ANDROID
    INFO:create-device: + System ID: 4464
    INFO:create-device: + Security Level: 3
    INFO:create-device: + Flags: {}
    INFO:create-device: + Private Key: True (2048 bit)
    INFO:create-device: + Client ID: True (1780 bytes)
    INFO:create-device: + VMP: False
    INFO:create-device: + Saved to: C:\Users\xxxxx\CDMs\2515545258\WVD\google_aosp_on_ia_emulator_14.0.0_0d4bced3_4464_l3.wvd
    pywidevine command executed successfully.
    Press any key to continue . . .
    6. You'll get your .wvd file in your WVD folder like this



    8. Now search for "Beyond-WKS" thread by angela and read that thread 2-3 times and use script provided in that thread that script is so simple to understand and use so you won't face much trouble
    Last edited by LittleSoldier; 27th Apr 2024 at 00:49. Reason: corrected screenshot sequence
    Quote Quote  
  25. Thanks.

    Script.bat didn't quite work with pywidevine create-device...
    because the command was not found.
    Had to switch back to (env) first.
    Then it went:
    (env) C:\Users\Heiko>pywidevine create-device -k C:\Users\Heiko\CDM_entpackt\device_private_key -c C:\Users\Heiko\CDM_entpackt\device_client_id_blob -t ANDROID -l3 -o WVD
    INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    INFO:create-device:Created Widevine Device (.wvd) file, unknown_android_sdk_built_for_x86_16.0.0_1be7dff4_ 8162_l3.wvd
    INFO:create-device: + Type: ANDROID
    INFO:create-device: + System ID: 8162
    INFO:create-device: + Security Level: 3
    INFO:create-device: + Flags: {}
    INFO:create-device: + Private Key: True (2048 bit)
    INFO:create-device: + Client ID: True (1752 bytes)
    INFO:create-device: + VMP: False
    INFO:create-device: + Saved to: C:\Users\Heiko\WVD\unknown_android_sdk_built_for_x 86_16.0.0_1be7dff4_8162_l3.wvd

    (env) C:\Users\Heiko>pywidevine test C:\Users\Heiko\WVD\unknown_android_sdk_built_for_x 86_16.0.0_1be7dff4_8162_l3.wvd
    INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    INFO:license:[+] Loaded Device (8162 L3)
    INFO:license:[+] Loaded CDM
    INFO:license:[+] Opened CDM Session: bc18660e6b7600cdf236fff57f1b3955
    INFO:license:[+] Created License Request Message (Challenge)
    INFO:license:[+] Got License Message
    INFO:license:[+] License Parsed Successfully
    INFO:license:[SIGNING] 00000000000000000000000000000000:d5f5bbae11a00e5d6 0ec94bb614f3f2f219f0187d4ea1d9be272f70776ead96a9e3 5d39d1804a07130dfaedac38e5533baf9279d7b842f4b1489c 8ad33fd09b7
    INFO:license:[CONTENT] ccbf5fb4c2965be7aa130ffb3ba9fd73:9cc0c92044cb1d694 33f5f5839a159df
    INFO:license:[CONTENT] 9bf0e9cf0d7b55aeb4b289a63bab8610:90f52fd8ca48717b2 1d0c2fed7a12ae1
    INFO:license:[CONTENT] eb676abbcb345e96bbcf616630f1a3da:100b6c20940f779a4 589152b57d2dacb
    INFO:license:[CONTENT] 0294b9599d755de2bbf0fdca3fa5eab7:3bda2f40344c7def6 14227b9c0f03e26
    INFO:license:[CONTENT] 639da80cf23b55f3b8cab3f64cfa5df6:229f5f29b643e2030 04b30c4eaf348f4

    (env) C:\Users\Heiko>
    Quote Quote  
  26. I no longer had to do the 8th step.
    I copied "l3 - Kopie.py" to C:\Users\Heiko\env.
    And then it finally happened:
    (env) C:\Users\Heiko>"C:\Users\Heiko\env\l3 - Kopie.py"
    PSSH? AAAAQ3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACMIARIQLn I2ocJtQIut0Mo0xEfBKiINYV9waGozMWFkODJndQ==
    License URL? https://api.vod-prd.s.joyn.de/v1/license?token=CiQ2YzAwMzQyZi0zNWJmLTQ2MTEtOGUyMy0xNzF...wadeqv8&keyId=

    --key 2e7236a1c26d408badd0ca34c447c12a:be6756df89694bea3 231e30e0d37b3a6

    --key c36d8c747204560abee687d585d886e0:63afc25c8cb606791 127907f6724ed94

    --key cdb0ef1476655cfe91242da179e0af11:24ae20da88f8a1cd4 3b27d18ff6c9c30

    --key 3a054a715d3d5906957c029fba32e8ba:2f5e201d3728ab8d9 c8a24b2efcbad14

    (env) C:\Users\Heiko>


    What was it ultimately? Incorrect or broken CDM?

    Regardless, it seems to be working now.

    Thank you very much for your patience.

    Best regards
    Heiko
    Quote Quote  
  27. But it only runs in the (env) environment. Otherwise it will come back:
    C:\Users\Heiko\env>"l3 - Kopie.py"
    Traceback (most recent call last):
    File "C:\Users\Heiko\env\l3 - Kopie.py", line 1, in <module>
    from pywidevine.cdm import Cdm
    ModuleNotFoundError: No module named 'pywidevine'
    Quote Quote  
  28. Good day.
    I have a problem again:
    Microsoft Windows [Version 10.0.19045.4291]
    (c) Microsoft Corporation. Alle Rechte vorbehalten.

    C:\Users\Heiko>C:\Users\Heiko\env\Scripts\activate .bat

    (env) C:\Users\Heiko>"C:\Users\Heiko\env\l3 - Kopie.py"
    PSSH? AAAAUHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADAIARIgMj M1YzFmYTYxYjc5YTZiOGEwOTFmYmU0MjM4ZTg1NTUiBjk4NTAz NioCU0Q=
    License URL? https://widevine.tvnow.de/index/license
    Traceback (most recent call last):
    File "C:\Users\Heiko\env\l3 - Kopie.py", line 33, in <module>
    licence.raise_for_status()
    File "C:\Users\Heiko\env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
    requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://widevine.tvnow.de/index/license

    (env) C:\Users\Heiko>

    With the same PSSH and License URL I was able to get a key under Ubuntu:
    --key 235c1fa61b79a6b8a091fbe4238e8555:5d03514c251a313b8 67bc94b315dfa2b

    Is it because of the headers.py? I copied the headers.py from Linux to C:\Userts\Heiko\env. Previously there was no headers.py in the env folder.

    Still I can't pull the key under Windows.

    Best regards
    Heiko
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!