VideoHelp Forum
+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 30 of 76
Thread
  1. Get PSSH from ism manifest with ProtectionHeader

    I have written a batch script that would scrape the pssh from any ism manifest that has the property ProtectionHeader

    The internal of the manifest looks like this ...

    Code:
    <ProtectionHeader SystemID="9A04F079.....-E65BE0885F95">pAIAAAEAAQ....AUgA+AA==</ProtectionHeader>
    The kid information is obfuscated within the the ProtectionHeader. This type of manifest is the norm on sites such as hbogo (edgecastcdnsecure.hbogo.eu and level3cdn.hbogo.eu).

    Many requests have been made on this forum for this pssh and so I decided to make a script for it. It has been pointed out that the Greasy Fork EME Logger plugin does this same task but, alas, that is not conducive to automation.

    Using the script is simple.
    a) Go to the site
    b) Get the manifest url
    c) Run script and enter the url into the script

    The script stops here but it can be modified to parse any manifest, capture the init link, download and manipulate the init file.

    Here are some typical links that you can use when testing the program

    Code:
    https://level3cdn.hbogo.eu/1a25cb4d-5bd6-1aa3-16bb-220c6bb9b01e_m130599_hbo/COMP/142500427_pol_comp_2e7ef8a5-dc90-4bfc-99ea-f2247ac75e50_3400000_v2.ism/manifest
    
    https://edgecastcdnsecure.hbogo.eu/8eb91d38-be18-f7e8-be22-5d26e721193f_m125702_hbo/COMP/139729667_pol_comp_2e7ef8a5-dc90-4bfc-99ea-f2247ac75e50_3400000_v2.ism/manifest
    I have uploaded the script file

    Enjoy
    Image Attached Files
    Last edited by jack_666; 10th Dec 2021 at 09:01. Reason: bad grammer
    Quote Quote  
  2. Excellent. It works wonders!
    Quote Quote  
  3. run ism2pssh.cmd, put mpd but after 1 second and cmd closed ....
    Quote Quote  
  4. Originally Posted by lomero View Post
    run ism2pssh.cmd, put mpd but after 1 second and cmd closed ....
    Same for me
    Quote Quote  
  5. Originally Posted by lomero View Post
    run ism2pssh.cmd, put mpd but after 1 second and cmd closed ....
    Hi Lomero

    run ism2pssh.cmd, put mpd but after 1 second and cmd closed.

    This happens when you double click cmd file. Batch files do not run this way.

    You need to run in the cmd environment. Windows .. search for cmd ...start cmd ... set path to where you have saved ism2pssh.cmd.

    No different than running yt-dlp or N_m3u8DL

    Hope this solves your challenges.

    Hi Lomero, I know that you did not ask for yourself but for the many others who will face this challenge. Thanks for asking.
    Last edited by jack_666; 10th Dec 2021 at 09:07. Reason: Added additional information.
    Quote Quote  
  6. Originally Posted by lomero View Post
    run ism2pssh.cmd, put mpd but after 1 second and cmd closed ....
    Here is another solution. Probably better

    Code:
    echo off
    wt new-tab -p "Command Prompt" -d "%cd%" cmd /k ism2pssh.cmd
    save this in the same folder as ism2pssh.cmd but name it ism2pssh_linker.cmd

    Now right click ism2pssh_linker.cmd and create a shortcut.

    Now drag that shortcut to where ever you wish it to be. Maybe desktop.

    Double click the shortcut to run the program.

    Hope that helps.
    Quote Quote  
  7. Hi!

    Code:
    https://akamaicdn.hbogo.eu/d6933d60-9ead-e6ab-de2a-b5aa1547977b_m124138_hbo/COMP/142750156_hun_comp_d35eda69-a367-4b47-aa0c-a51032d94be2_3400000_v2.ism/manifest
    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7piqRapxHx+NiuRYeCQ=
    It's as if it's a shorter pssh than usual, missing a few characters.

    Anyway, how to read KID and KEY from pssh?
    Thanks!
    Last edited by neo81; 10th Dec 2021 at 13:13.
    Quote Quote  
  8. Great work Jack
    Quote Quote  
  9. this is my manifest (no pssh inside)
    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest?ET=1639152055&CIP=xxx.xx.xx.xxx.xx&KN=1&US=Ph9oCC02bcCYY11ZydOBBACOJDk&SID=TVM-51c6e38a-6b8b-4caa-adcf-b4453d99409f&MFD=2918000
    but on processing i have this error:
    CIP is not recognized ...
    KN is not recognized ...
    US is not recognized ...
    SID is not recognized ...
    MFD is not recognized ...

    and "error in url entry ... URL lenght is too short"
    Quote Quote  
  10. psaframe
    Join Date
    Mar 2021
    Location
    Algeria
    Search PM
    @jack_666
    Awesome tool. Thanks
    Quote Quote  
  11. In the example in the first post, that ProtectonHeader is for PlayReady right? You can't use that to get a widevine key can you? But I assume the script works regardless of the DRM scheme in the mpd.
    Quote Quote  
  12. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tˇrshavn
    Search Comp PM
    Originally Posted by achilles View Post
    In the example in the first post, that ProtectonHeader is for PlayReady right? You can't use that to get a widevine key can you? But I assume the script works regardless of the DRM scheme in the mpd.
    Playready is the drm system from microsoft
    Widevine is Google's. It's unlikely the key for both is the same.
    Quote Quote  
  13. The playready key is much longer than a WV key.
    Quote Quote  
  14. Originally Posted by lomero View Post
    this is my manifest (no pssh inside)
    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest?ET=1639152055&CIP=xxx.xx.xx.xxx.xx&KN=1&US=Ph9oCC02bcCYY11ZydOBBACOJDk&SID=TVM-51c6e38a-6b8b-4caa-adcf-b4453d99409f&MFD=2918000
    but on processing i have this error:
    CIP is not recognized ...
    KN is not recognized ...
    US is not recognized ...
    SID is not recognized ...
    MFD is not recognized ...

    and "error in url entry ... URL lenght is too short"
    Hi lomero, the url that is entered must be able to be downloaded by the browser. I am unable to download any manifesr from the url

    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest?ET=1639152055&CIP=xxx.xx.xx.xxx.xx&KN=1&US=Ph9oCC02bcCYY11ZydOBBACOJDk&SID=TVM-51c6e38a-6b8b-4caa-adcf-b4453d99409f&MFD=2918000
    If the software cannot download the manifest, then it will give the error

    Also error in url entry ... URL lenght is too short.
    See code

    if %strlength% LSS 25

    The length of you url has to be > 25 characters. You may need to pace your url within quotation marks.

    The question is - does those url fit the criteria for the program? I have given examples of the expected url structure. The program is quite specific of what it expects. See error checks.
    Last edited by jack_666; 10th Dec 2021 at 13:55. Reason: Clarification
    Quote Quote  
  15. Originally Posted by neo81 View Post
    Hi!

    Code:
    https://akamaicdn.hbogo.eu/d6933d60-9ead-e6ab-de2a-b5aa1547977b_m124138_hbo/COMP/142750156_hun_comp_d35eda69-a367-4b47-aa0c-a51032d94be2_3400000_v2.ism/manifest
    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7piqRapxHx+NiuRYeCQ=
    It's as if it's a shorter pssh than usual, missing a few characters.

    Anyway, how to read KID and KEY from pssh?
    Thanks!
    I ran the script against your url and got the same pssh as you said was correct to best knowledge

    Image
    [Attachment 62281 - Click to enlarge]


    Have no idea what you are trying to say

    you also wrote

    It's as if it's a shorter pssh than usual, missing a few characters.
    ??????????? care to explain?
    Quote Quote  
  16. Originally Posted by jack_666 View Post
    Originally Posted by neo81 View Post
    Hi!

    Code:
    https://akamaicdn.hbogo.eu/d6933d60-9ead-e6ab-de2a-b5aa1547977b_m124138_hbo/COMP/142750156_hun_comp_d35eda69-a367-4b47-aa0c-a51032d94be2_3400000_v2.ism/manifest
    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7piqRapxHx+NiuRYeCQ=
    It's as if it's a shorter pssh than usual, missing a few characters.

    Anyway, how to read KID and KEY from pssh?
    Thanks!
    I ran the script against your url and got the same pssh as you said was correct to best knowledge

    Image
    [Attachment 62281 - Click to enlarge]


    Have no idea what you are trying to say

    you also wrote

    It's as if it's a shorter pssh than usual, missing a few characters.
    ??????????? care to explain?
    hbogo pssh contains 76 characters but this is for all manifest
    always gives a pssh of 68 characters, which is why I wrote that it is shorter than the usual hbo pssh
    another question, how do you get the correct kid:key with this shorter pssh with another program?
    Quote Quote  
  17. @neo81 you wrote
    hbogo pssh contains 76 characters

    I now understand what you are saying. This pssh is derived from the kid that is stored in the manifest and also in the init.mp4

    Kindly send a pssh that is 76 characters so that we can analyze it. Thanks

    what you wrote here is kind of confusing as what you claim to be the pssh to the best of you knowledge is the same as the script produces and it is 68 characters not 76

    this is what you wrote and what i find confusing.

    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7p iqRapxHx+NiuRYeCQ=
    Quote Quote  
  18. Originally Posted by jack_666 View Post
    @neo81 you wrote
    hbogo pssh contains 76 characters

    I now understand what you are saying. This pssh is derived from the kid that is stored in the manifest and also in the init.mp4

    Kindly send a pssh that is 76 characters so that we can analyze it. Thanks

    what you wrote here is kind of confusing as what you claim to be the pssh to the best of you knowledge is the same as the script produces and it is 68 characters not 76

    this is what you wrote and what i find confusing.

    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7p iqRapxHx+NiuRYeCQ=
    Maybe the site's code truncated it (?)
    Quote Quote  
  19. Originally Posted by jack_666 View Post
    Hi lomero, the url that is entered must be able to be downloaded by the browser. I am unable to download any manifesr from the url

    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest?ET=1639152055&CIP=xxx.xx.xx.xxx.xx&KN=1&US=Ph9oCC02bcCYY11ZydOBBACOJDk&SID=TVM-51c6e38a-6b8b-4caa-adcf-b4453d99409f&MFD=2918000
    If the software cannot download the manifest, then it will give the error

    Also error in url entry ... URL lenght is too short.
    See code

    if %strlength% LSS 25

    The length of you url has to be > 25 characters. You may need to pace your url within quotation marks.

    The question is - does those url fit the criteria for the program? I have given examples of the expected url structure. The program is quite specific of what it expects. See error checks.
    as you can see on mpd link is present &CIP=xxx.xx.xx.xxx.xx which corresponds to my ip.
    I have modified this with xxx for privacy reasons. for this reason isn't possible to download it.
    Quote Quote  
  20. @lomero

    as you can see on mpd link is present &CIP=xxx.xx.xx.xxx.xx which corresponds to my ip.
    I have modified this with xxx for privacy reasons. for this reason isn't possible to download it.
    Fully understandable. OK, can you please download the manifest and share it with us. Thank you.

    If you are suggesting that this url

    Code:
    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest?ET=1639152055&CIP=xxx.xx.xx.xxx.xx&KN=1&US=Ph9oCC02bcCYY11ZydOBBACOJDk&SID=TVM-51c6e38a-6b8b-4caa-adcf-b4453d99409f&MFD=291800

    is kosher, then we can simply modify the code to accommodate this url. Not a problem whatsoever.

    Thanks for bringing this to our attention.
    Last edited by jack_666; 10th Dec 2021 at 16:13. Reason: Clarification
    Quote Quote  
  21. is kosher ?? don't understand this term.

    anyway, with my full mpd above (with IP number), have error show on my post#9
    with only first part https://cdn.od-webtv.cdnfr.orange.fr/.......d939_M.ism/manifest
    i have error in URL entry ...
    Quote Quote  
  22. Language barrier here. "Kosher" is a hebrew word adapted to the English language meaning "genuine and legitimate"

    Hi lomero can you place the link as code format as it is truncated
    Quote Quote  
  23. no truncated is only to an example ...

    with full mpd link i have error on post#9
    if put link only link from https to /manifest
    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest
    i have error in URL entry ...
    Quote Quote  
  24. Originally Posted by codehound View Post
    Originally Posted by jack_666 View Post
    @neo81 you wrote
    hbogo pssh contains 76 characters

    I now understand what you are saying. This pssh is derived from the kid that is stored in the manifest and also in the init.mp4

    Kindly send a pssh that is 76 characters so that we can analyze it. Thanks

    what you wrote here is kind of confusing as what you claim to be the pssh to the best of you knowledge is the same as the script produces and it is 68 characters not 76

    this is what you wrote and what i find confusing.

    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7p iqRapxHx+NiuRYeCQ=
    Maybe the site's code truncated it (?)
    Unfortunately, that is possible.
    Quote Quote  
  25. Originally Posted by lomero View Post
    no truncated is only to an example ...

    with full mpd link i have error on post#9
    if put link only link from https to /manifest
    Code:
    https://cdn.od-webtv.cdnfr.orange.fr/MSS/be8336adb2a7fad8a787019afb43d939_M/be8336adb2a7fad8a787019afb43d939_M.ism/manifest
    i have error in URL entry ...
    403 Forbidden

    Ok Lomero, lets assume that this url meets the criteria, can you please send the actual manifest. Please zip and upload the actual manifest associated with this url.

    When I go to this site I get 403 Forbidden
    Quote Quote  
  26. Originally Posted by jack_666 View Post
    @neo81 you wrote
    hbogo pssh contains 76 characters

    I now understand what you are saying. This pssh is derived from the kid that is stored in the manifest and also in the init.mp4

    Kindly send a pssh that is 76 characters so that we can analyze it. Thanks

    what you wrote here is kind of confusing as what you claim to be the pssh to the best of you knowledge is the same as the script produces and it is 68 characters not 76

    this is what you wrote and what i find confusing.

    To the best of my knowledge, this is pssh:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7p iqRapxHx+NiuRYeCQ=
    What do I need to do to get KID and KEY from this?
    Quote Quote  
  27. Does anybody know how to get a real license url from apple music? i've tried 2 license url like this https://play.itunes.apple.com/WebObjects/MZPlay.woa/wa/widevineCert and this https://play.itunes.apple.com/WebObjects/MZPlay.woa/wa/acquireWebPlaybackLicense but i got error when use that license url
    Quote Quote  
  28. Originally Posted by jack_666 View Post
    Get PSSH from ism manifest with ProtectionHeader

    I have written a batch script that would scrape the pssh from any ism manifest that has the property ProtectionHeader

    The internal of the manifest looks like this ...

    Code:
    <ProtectionHeader SystemID="9A04F079.....-E65BE0885F95">pAIAAAEAAQ....AUgA+AA==</ProtectionHeader>
    The kid information is obfuscated within the the ProtectionHeader. This type of manifest is the norm on sites such as hbogo (edgecastcdnsecure.hbogo.eu and level3cdn.hbogo.eu).

    Many requests have been made on this forum for this pssh and so I decided to make a script for it. It has been pointed out that the Greasy Fork EME Logger plugin does this same task but, alas, that is not conducive to automation.

    Using the script is simple.
    a) Go to the site
    b) Get the manifest url
    c) Run script and enter the url into the script

    The script stops here but it can be modified to parse any manifest, capture the init link, download and manipulate the init file.

    Here are some typical links that you can use when testing the program

    Code:
    https://level3cdn.hbogo.eu/1a25cb4d-5bd6-1aa3-16bb-220c6bb9b01e_m130599_hbo/COMP/142500427_pol_comp_2e7ef8a5-dc90-4bfc-99ea-f2247ac75e50_3400000_v2.ism/manifest
    
    https://edgecastcdnsecure.hbogo.eu/8eb91d38-be18-f7e8-be22-5d26e721193f_m125702_hbo/COMP/139729667_pol_comp_2e7ef8a5-dc90-4bfc-99ea-f2247ac75e50_3400000_v2.ism/manifest
    I have uploaded the script file

    Enjoy
    Hello pssh character too much. What should I do in this situation? Can you help me get no results with the script you provided?

    Code:
    AAACZnBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAkZGAgAAAQABADwCPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgB4AGkAVgA4AEoARQA5AFEAYQAwAE8AZwB4ADkAcgByAHAAUwAzAGoAaQBnAD0APQA8AC8ASwBJAEQAPgA8AEwAQQBfAFUAUgBMAD4AaAB0AHQAcAA6AC8ALwBkAHIAbQAuAGUAcgBjAGQAbgAuAGMAbwBtAC8AZQB4AHgAZQBuAC8AcAByAC8AcgBpAGcAaAB0AHMAbQBhAG4AYQBnAGUAcgAuAGEAcwBtAHgAPAAvAEwAQQBfAFUAUgBMAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgAAAAA0cHNzaAAAAADt74upedZKzqPIJ9zVHSHtAAAAFAgBEhAkfCXGUE9Da6DH2uulLeOK
    Quote Quote  
  29. @WelleTy .. what you have done is copying and pasting the actual ProtectionHeader into the script. Please copy the actual url and paste the url into the script. The script will get the pssh for you.
    Quote Quote  
  30. Originally Posted by Brook_Benton View Post
    @WelleTy .. what you have done is copying and pasting the actual ProtectionHeader into the script. Please copy the actual url and paste the url into the script. The script will get the pssh for you.
    you say real url but I paste mpd link how else will it be a link
    Quote Quote  



Similar Threads

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