I am learning the way to get the Widevine key to decrypt the video.
I got the CDM files, include client_id.bin, private_key.pem and also created wvd file.
But the request to Widevine server is complex and it changes from time to time, so it's difficult to simulate.
With the network capture, I can see the Widewine request, include header, the body and also the return response.
My question is: Can we use that captured data and the CDM files to decode the request and get session id and other information, then again decode the response to get keys? Or do we have the way to hook that process inside Android and print out the decrypted keys?
Thank you very much!
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 9 of 9
-
-
You can't do that since the challenge isn't generated by pywidevine but your browser CDM.
Share the license curl here.
Everything can be reproduced even fastevo payload encoded one or vudu websocket one. -
no, you cant handle the challenge and response from browser if you have no Chrome CDM.
usually we capture the request and write it to a python script and use the challenge from ourself CDM, send request and parse the response use CDM again. -
-
-
Is it a webapp or mobile app ? You have to figure out from where the custom data come from. Try base64 decode, maybe it's a HASH signature or maybe AES encrypted data.
Sharing more infos would help us to help you. Reversing a mobile app isn't an easy task.
You don't need to capture a CDM with a special request, bitmovin one will give the same result as another. Which tool did you use to capture the network ? You can't be root on emulator (I may be wrong but I never managed to be root on emulator and install custom cert that would allow me to SSL proxy httpS requests) -
It's Android app and I already decode the custom-data with Base64 to see the JSON object. It's something like this:
Code:{ "userId": "125458", "sessionId": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIyNTA1MzUyOTAiLCJzZGkiOiJ7XCJ1c2VyXCI6XCIyNTA1MzUyOTBcIixcIm1lcmNoYW50XCI6XCJ2aWV0dGVsdmFzXCIsXCJhc3NldFwiOlwidnR2Y2FiM19oZF81MGZwc1wifSIsImlhdCI6MTcyNDkyMzAxNSwiZXhwIjoxNzI1NTIzMDE1fQ.eeYjyqPd1pQiTL0z9YxRnhg9g8eaJm9y2PO-eHgnUd8", "reqId": "df1a606a-1d52-d605-cff9-32c3bc268176", "deviceInfo": "{\"signature\":\"C7E1E476CBC1AB070EAE801654D3A064853F4AD3\",\"appVersionCode\":426,\"appVersion\":\"4.2.1\"}" }
-
-
Similar Threads
-
Can't decrypt widevine key
By Tharindu8007 in forum Video Streaming DownloadingReplies: 12Last Post: 29th Jan 2025, 02:13 -
Can't get widevine key from Peacocktv
By zerogravity90 in forum Video Streaming DownloadingReplies: 17Last Post: 2nd Dec 2023, 21:19 -
how to get widevine key? (for win11)
By Bobs47 in forum Video Streaming DownloadingReplies: 10Last Post: 13th Aug 2023, 13:27 -
Getting Widevine Key using PHP?
By peterchan7991 in forum Video Streaming DownloadingReplies: 4Last Post: 25th Jan 2023, 10:46 -
Widevine key help
By jhynpls in forum Video Streaming DownloadingReplies: 11Last Post: 28th Jul 2022, 14:56