The license request is encrypted using the service certificate. If you look in the network tab in Chrome developer tools you'll see 2 requests to the license server, the first one contains a 2 byte payload of 0x08, 0x04 - this is a request for the license server to send the service certificate. The second request is the actual request for the license, and this is encrypted with the service certificate public key (as per your screenshot). Google is the only one who has the private key and decrypts the license request for processing on their end, they then send back the license encrypted with the public key of your CDM.
This is why you should never post any license requests or responses generated using your own CDM including encrypted. Chrome CDM is ok, but if you post anything generated using your own CDM then chances are it will be revoked.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.
Closed Thread
Results 1,951 to 1,970 of 1970
Thread
-
-
I am getting issue on SunNXT while requesting key from notaghost's wvkeys site.
MPD : https://suntvvod.s.llnwi.net/movies/ce54e7fed2437ab83854acfa56b1fc54/132819/132819_hd....nXtGW1Qx/uLg==
License URL : https://www.sunnxt.com/content/license/?content_id=132819
Headers : User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Length: 5723
Origin: https://www.sunnxt.com
Connection: keep-alive
Referer: https://www.sunnxt.com/malayalam-movie/detail/132819/jan-e-man?carouselAction=Latest%20Movies
Cookie: XSRF-TOKEN=eyJpdiI6InZnQzJJcTFcL0pZUExLdmRac25Ka2FBPT0i LCJ2YWx1ZSI6ImY0dEVvUFlHcXNDK3JlMHFrekRUb21zMzM2QW xKdWhaMXl4SVhJY1JUWERsYVdDcGtLM1dYWW9GYXJUSjR4UG9D VXR6S2twSzVnWkJmUVF2RnJXaWVBPT0iLCJtYWMiOiI3MGEzZT g5MWFjODgzNWRhZjY3ZmFmNWI3NDJiZTBjYTUzZDc3NDQ5ZGE1 MzExNzM5YmUwYTdiMWJmN2UzZjFkIn0%3D; laravel_session=iossWHnOVuD6ah14k7pwzMtyBmTYbhufwy Ew29xM; RT="z=1&dm=sunnxt.com&si=63db8e41-bf2c-4c27-a168-9c91aa5a27f2&ss=l03wqaxb&sl=1&tt=1nm&bcn=%2F%2Fbea con.s.llnwi.net%2Fstarling%2Fbeacon.txt&ld=1nn"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
TE: trailers
-
Thanks, that's a good explanation. Yes I can see it first requests the certificate like you say. Do you have any idea why my licence requests fail to this server with tools like getwvkeys, wks-keys etc.? What should I do to make it work then? Is it because server only accepts encrypted requests? If so, is there a way to modify existing scripts to do that?
-
Code:
WidevineDecryptor: Found key: 789b4cb771e270d255f0884cca8628f0 (KID=9d656054c01756e991d4e0bdf5eb43f9) WidevineDecryptor: Found key: 20dbaf5b79bcbf92e80a5696d41659b6 (KID=32ce79a9dd32522a8d79102bdf7c1384) WidevineDecryptor: Found key: 157ad8f0041f35e6044dfbeeedf83019 (KID=3f6468e14c9357c6a1100f619af1b613)
Code:cookie: _ga=GA1.2.XXXXXXXX; WZRK_G=c7242CCCCCCCCCC; _gid=GA1.2.3XXXXXXXXX; _gat=1; laravel_session=WNIXXXXXXXXX; WZRK_S_WW6-54K-855Z=%7B%XXXXXXXXXXXXX; RT="z=1&dm=sunnxt.com&si=3XXXXXXXXXXXX"; XSRF-TOKEN=eyJpdiXXXXXXXXXX
-
Hi, everyone. I wanted to have a go at https://getwvkeys.cc/ in order to get the keys of the videos of a national streaming site.
I have a manifest file as an example because I don't know what constitutes as header and license.
I also don't know what to look for in the debugging window on Firefox when searching for the license server.
(Fortunately, I learned how to get the PSSH from reading this thread, it's in the contents of the manifest between <cencssh>.)Last edited by tugatomsk; 2nd Mar 2022 at 13:01.
-
The video is part of a paid streaming service.
Anyway, here's the link:
https://opto.sic.pt/#/play?sid=MTI6NTU5MGU2MDdjZjdmNGE4NzhjNmRjZWQ0MWNhMjE2NGE%3D&sNam...AyODZmZg%3D%3D
-
If you have read how to get the pssh, then you must have overlooked how to get lic url
A reminder:
Under Network tab in DevTools filter url for words like: WV, lic, widevine, auth, drm, etc
Type your word in FilterURL > Refresh stream (F5) > get video playing
If no results > repeat with different word > F5 again > get video playing
It may / may not have a long string attached to it, if it does, use this in your keys challenge
...............................
Once you have established the lic url, in FF, right click on the link in the debugger, select copy > copy as cURL (Windows)
open curlconverter.com
copy the content into left window > Py result is returned in right hand window > this is your headers.py for WKS-keys
...............................
WKS-Keys (with a working L3 cdm) - pssh + lic url + headers.py = keys
Notaghost getwvkeys online http://getwvkeys.cc/ - pssh + lic url + basic format headers = keysLast edited by codehound; 2nd Mar 2022 at 17:31.
-
Many thanks for that detailed explanation!
It actually worked; using getwvkeys online, I managed to get key 1.d5bf5bd73d162f4e0ec9166c54cb0b0c:9d29d4090053991 7a363f669967cd2af
Using mp4decrypt, I discovered that the working part of the key was 9d29d40900539917a363f669967cd2af.
However, this only worked for the MP4 video file that I had downloaded using yt-dlp and the add-on "The Stream Detector" for Firefox. The audio, an M4A file, can't be decrypted using either "d5bf5bd73d162f4e0ec9166c54cb0b0c" or "9d29d40900539917a363f669967cd2af". Not even changing the number of the key (key 1:, key 2:, and so forth) could accomplish the decryption of the audio.
EDIT: I found out that the original audio extension was "mp4a" instead of "m4a". I changed the file extensions in mp4decrypt and it worked perfectly.Last edited by tugatomsk; 2nd Mar 2022 at 18:13. Reason: found the reason
-
Charming........
For decryption use:
Code:mp4decrypt.exe --key kid:key "encrypted-video.mp4" "decrypted-video.mp4" mp4decrypt.exe --key kid:key "encrypted-audio.aac" "decrypted-audio.m4a"
Code:ffmpeg -i "decrypted-video.mp4" -i "decrypted-audio.m4a" -c copy "output.mp4"
Last edited by codehound; 2nd Mar 2022 at 18:11.
-
That's strange... the next episode of the show I'm trying to decrypt - the follow-up to the video I had just successfully decrypted - has the exact same license and PSSH, which results in the same keyID and decryption key. This shouldn't be the case, right? Therefore, I can't decrypt the next episode... What am I missing?
Last edited by tugatomsk; 2nd Mar 2022 at 19:03.
Similar Threads
-
Decoding manifest.mpd (Widevine)
By WaitForIt in forum Video Streaming DownloadingReplies: 6Last Post: 7th Jun 2021, 13:44 -
getting widevine CEK key
By netbreak in forum Video Streaming DownloadingReplies: 1Last Post: 19th Feb 2018, 12:03 -
Strip Playready and Widevine DRM
By freaknik in forum Video Streaming DownloadingReplies: 4Last Post: 21st Jun 2017, 17:43 -
Looking for anyone with Google Widevine knowledge.
By cookeri6 in forum Newbie / General discussionsReplies: 1Last Post: 15th May 2017, 13:33 -
Looking for anyone with Google Widevine knowledge.
By cookeri6 in forum Video Streaming DownloadingReplies: 0Last Post: 15th May 2017, 12:45