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 ...
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).Code:<ProtectionHeader SystemID="9A04F079.....-E65BE0885F95">pAIAAAEAAQ....AUgA+AA==</ProtectionHeader>
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
I have uploaded the script fileCode: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
Enjoy
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 30 of 76
Thread
-
Last edited by jack_666; 10th Dec 2021 at 10:01. Reason: bad grammer
-
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 10:07. Reason: Added additional information.
-
Here is another solution. Probably better
Code:echo off wt new-tab -p "Command Prompt" -d "%cd%" cmd /k ism2pssh.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. -
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
Code:AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEECj7piqRapxHx+NiuRYeCQ=
Anyway, how to read KID and KEY from pssh?
Thanks!Last edited by neo81; 10th Dec 2021 at 14:13.
-
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
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" -
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. -
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
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 14:55. Reason: Clarification
-
I ran the script against your url and got the same pssh as you said was correct to best knowledge
[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? -
-
@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= -
-
@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.
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 17:13. Reason: Clarification
-
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 ... -
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 -
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
-
-
-
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
-
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
-
@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.
-
Similar Threads
-
Get Pssh Key of MPD Files
By thegeek in forum Video Streaming DownloadingReplies: 46Last Post: 26th Mar 2022, 22:54 -
HBO GO EU license and PSSH
By PanMarSag in forum Video Streaming DownloadingReplies: 22Last Post: 14th Dec 2021, 09:54 -
How do i download this .ism stream?
By PanMarSag in forum Video Streaming DownloadingReplies: 8Last Post: 26th Oct 2021, 03:24 -
How to download ism manifest ???
By alexiscrew in forum Video Streaming DownloadingReplies: 1Last Post: 29th Apr 2021, 04:38 -
How to record or capture silverlight .ism/manifest stream ?
By spiderMan007 in forum Video Streaming DownloadingReplies: 37Last Post: 15th Dec 2016, 13:24