narrowvine-reborn icon indicating copy to clipboard operation
narrowvine-reborn copied to clipboard

unable to parse license - check protobufs

Open jcronan-slcc opened this issue 2 years ago • 11 comments

---------------------------------------------------------------------------------------------------------------------------------------------------
**** NARROWVINE-REBORN by vank0n ****
---------------------------------------------------------------------------------------------------------------------------------------------------
Enter MPD URL:
> https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd
---------------------------------------------------------------------------------------------------------------------------------------------------
Enter License URL:
> https://cwip-shaka-proxy.appspot.com/no_auth
---------------------------------------------------------------------------------------------------------------------------------------------------
[info] Downloading Encrypted Video from CDN..
[generic] 11331: Requesting header
[generic] 11331: Downloading webpage
[generic] 11331: Extracting information
[info] 11331: Downloading 1 format(s): 1080_4800000
[download] D:\narrowvine\cache\encrypted_video.mp4 has already been downloaded
[info] Downloading Encrypted Audio from CDN..
[generic] 11331: Requesting header
[generic] 11331: Downloading webpage
[generic] 11331: Extracting information
[info] 11331: Downloading 1 format(s): 1_stereo_192000
[download] D:\narrowvine\cache\encrypted_audio.m4a has already been downloaded
---------------------------------------------------------------------------------------------------------------------------------------------------
[info] Attempting Widevine challenge...
[info] Getting Keys...
unable to parse license - check protobufs
[info] Found Key!
Traceback (most recent call last):
  File "D:\narrowvine\narrowvine_reborn.py", line 245, in <module>
    print ("[info] Decrypting Audio Using KEY: " + keysOnly(KEYS))
  File "D:\narrowvine\narrowvine_reborn.py", line 176, in keysOnly
    return key
UnboundLocalError: local variable 'key' referenced before assignment

Hi, when I try to test it with bitmovin drm test, it fails, but the mpd and the shaka license key works on the bitmovin drm test (the original license key are no longer working), it seems the script only works when there's one kid only though

jcronan-slcc avatar Aug 27 '21 04:08 jcronan-slcc

Is that the right license url for the Bitmovin demo?

WHTJEON avatar Aug 27 '21 10:08 WHTJEON

Is that the right license url for the Bitmovin demo?

that licence url works for bitmovin demo when I play it on their site, the original licence url (https://widevine-proxy.appspot.com/proxy) doesn't seem to work anymore, either way, both of them didn't work with the script

jcronan-slcc avatar Aug 27 '21 10:08 jcronan-slcc

i have same issue. i using the following to test:

https://www.buydrm.com/multikey-demo

License URL: https://wv-keyos.licensekeyserver.com/

MPD URL: https://d2jl6e4h8300i8.cloudfront.net/netflix_meridian/4k-18.5!9/keyos-logo/g180-avc_a2.0-vbr-aac-128k/r30/dash-wv-pr/stream.mpd

Below the correct values taken from other WV tools Key: 084fa6fb74e3cd64c4ac6563f5dd54d5 Kid: 31fad910cc3b467ab2dd374a33baddfc

kenzhong0505 avatar Aug 27 '21 15:08 kenzhong0505

i have same issue. i using the following to test:

https://www.buydrm.com/multikey-demo

License URL: https://wv-keyos.licensekeyserver.com/

MPD URL: https://d2jl6e4h8300i8.cloudfront.net/netflix_meridian/4k-18.5!9/keyos-logo/g180-avc_a2.0-vbr-aac-128k/r30/dash-wv-pr/stream.mpd

Below the correct values taken from other WV tools Key: 084fa6fb74e3cd64c4ac6563f5dd54d5 Kid: 31fad910cc3b467ab2dd374a33baddfc

Bro can anyone please give the link of working widevine tools like key extractor and mpd extractor and From where we will get that licence key bro...?? Anyone please answer this question I'm a beginner bro and i have some tools but not working on specific websites now..

ank003 avatar Aug 28 '21 00:08 ank003

The License URL may need a token Tv2 play denmark has License URL https://lic.drmtoday.com/license-proxy-widevine/cenc/ but it also need at token to work

x-dt-auth-token: eyJhbGciOiJIUzUxMiJ9.eyJvcHREYXRhIjoie1widXNlcklkXCI6XCIyNTlmNzMxNC04YjlkLTRkZjgtYjRiNC1iMzVkN2I0MDRmZGVcIixcIm1lcmNoYW50XCI6XCJ0djJcIixcInNlc3Npb25JZFwiOlwiM2M5MjgwMjUtMjhkNC00NWQ5LTkxNTQtMGJiNDIwY2RmMjZmXCJ9IiwiY3J0IjoiW3tcImFjY291bnRpbmdJZFwiOlwib3ZwLWRybTp2aWRlby1vcmlnaW5cLzEwMDY5MDc2XC8yMDIxMDgzMDE3MTM1NTg0MzViOVwiLFwiYXNzZXRJZFwiOlwidmlkZW8tb3JpZ2luXC8xMDA2OTA3NlwvMjAyMTA4MzAxNzEzNTU4NDM1YjlcIixcInByb2ZpbGVcIjp7XCJyZW50YWxcIjp7XCJhYnNvbHV0ZUV4cGlyYXRpb25cIjpcIjIwMjEtMDktMDFUMDQ6MTU6NDUuNjY0WlwiLFwicGxheUR1cmF0aW9uXCI6ODY0MDAwMDB9fSxcIm91dHB1dFByb3RlY3Rpb25cIjp7XCJkaWdpdGFsXCI6dHJ1ZSxcImFuYWxvZ3VlXCI6dHJ1ZSxcImVuZm9yY2VcIjpmYWxzZX0sXCJzdG9yZUxpY2Vuc2VcIjp0cnVlfV0iLCJpYXQiOjE2MzA0MjY1NDUsImp0aSI6Ik4wMDBNZHJ4RlNYSVcwRzZYaGhaYnc9PSJ9.kf0pN4W8PxA0wPDm7Y3Uk-cqMMmVr2tvwWnvNmncEHtnRgf74Udxxb3YS-RaXAyYw79stYmBBJorzedluVRjDw

This is different from somthing like Viaplay wich gives a License URL and token in on line

https://widevine.entitlement.theplatform.eu/wv/web/ModularDrm/getRawWidevineLicense?schema=1.0&httpError=false&token=8-XDP8xsq_42ieBmFTwwQRAgoIDe0FBu&account=http%3A%2F%2Faccess.auth.theplatform.com%2Fdata%2FAccount%2F2361940180&releasePid=xzHYJLKqAoW_

The Viaplay version work with this script but the TV2Play one doesn't

Maybe adding license_token = input ('insert License Token : ')

and then add keys = decrypt(pssh, license_url, license_token)

But im not a 100% sure

BondeDK avatar Aug 31 '21 16:08 BondeDK

facing the same issue mpd url ->

https://d1z78r8i505acl.cloudfront.net/media/6vZFvUpP0PnGS/e38732e4/stream.mpd

licence url -> https://license.vdocipher.com/auth/wv/:eyJvdHAiOiIyMDE2MDMxM3ZlcnNBU0UzMjMxWmVzWG95WEd6NlZ2ckZ3YmhSZDgyWE84S2RqMW12VXRmYzNVQmVBeGsyNFZ6IiwicGxheWJhY2tJbmZvIjoiZXlKMmFXUmxiMGxrSWpvaU9ETTVZVEkyT1RRek5tUXhORFprTnpnek5EQXpPV1l3TkRneFpqSTJNalVpZlE9PSIsImhyZWYiOiJodHRwczovL3d3dy5zdHVkeWlxLmNvbS92aWRlby1wYWdlIiwidGVjaCI6Ind2IiwibGljZW5zZVJlcXVlc3QiOiJDQVE9In0=

anshulgupta5102002 avatar Sep 03 '21 07:09 anshulgupta5102002

Can somebody provide valid mpd url and licence url for test? Thanks.

zhjb7 avatar Sep 03 '21 07:09 zhjb7

https://studyiqdrm.herokuapp.com/studyiqdrm/51MNbWRRjoeBOnkHXx3X6YRrrBWN352uxgzgstQNc0Bihbj29Pqc/Ax87Meyftfr

You can get the mpd link and licence key from the source code

On Fri, 3 Sep, 2021, 1:24 PM jingbo zhang, @.***> wrote:

Anyone can provide valid mpd url and licence url for test? Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/WHTJEON/narrowvine-reborn/issues/5#issuecomment-912337409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKRVVP5HMX223OLKO6ZUZDUAB5MXANCNFSM5C4YG2XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

anshulgupta5102002 avatar Sep 03 '21 09:09 anshulgupta5102002

https://studyiqdrm.herokuapp.com/studyiqdrm/51MNbWRRjoeBOnkHXx3X6YRrrBWN352uxgzgstQNc0Bihbj29Pqc/Ax87Meyftfr You can get the mpd link and licence key from the source code On Fri, 3 Sep, 2021, 1:24 PM jingbo zhang, @.***> wrote: Anyone can provide valid mpd url and licence url for test? Thanks. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKRVVP5HMX223OLKO6ZUZDUAB5MXANCNFSM5C4YG2XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks. But this didn't work too. I copied from the source code, here is the mpd link and license link: mpd link: https://d1z78r8i505acl.cloudfront.net/media/6vZFvUpP0PnGS/e38732e4/stream.mpd license link: https://license.vdocipher.com/auth/wv/:eyJvdHAiOiIyMDE2MDMxM3ZlcnNBU0UzMjNBeDFPNW5SYWtRU0tCdXA5RkgzYWk1c0Vmd1JITkRoT0FxanVPaXJJeVRYNDdPIiwicGxheWJhY2tJbmZvIjoiZXlKMmFXUmxiMGxrSWpvaU9ETTVZVEkyT1RRek5tUXhORFprTnpnek5EQXpPV1l3TkRneFpqSTJNalVpZlE9PSIsImhyZWYiOiJodHRwczovL3d3dy5zdHVkeWlxLmNvbS92aWRlby1wYWdlIiwidGVjaCI6Ind2IiwibGljZW5zZVJlcXVlc3QiOiJDQVE9In0= I pasted to https://bitmovin.com/demos/drm, didn't work too.

zhjb7 avatar Sep 03 '21 10:09 zhjb7

Working

On Fri, 3 Sep, 2021, 3:58 PM jingbo zhang, @.***> wrote:

https://studyiqdrm.herokuapp.com/studyiqdrm/51MNbWRRjoeBOnkHXx3X6YRrrBWN352uxgzgstQNc0Bihbj29Pqc/Ax87Meyftfr You can get the mpd link and licence key from the source code … <#m_4116820756700081514_m_3387965641871349665_> On Fri, 3 Sep, 2021, 1:24 PM jingbo zhang, @.***> wrote: Anyone can provide valid mpd url and licence url for test? Thanks. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment) https://github.com/WHTJEON/narrowvine-reborn/issues/5#issuecomment-912337409>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKRVVP5HMX223OLKO6ZUZDUAB5MXANCNFSM5C4YG2XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

Thanks. But this didn't work too. I copied from the source code, here is the mpd link and license link: mpd link: https://d1z78r8i505acl.cloudfront.net/media/6vZFvUpP0PnGS/e38732e4/stream.mpd license link: https://license.vdocipher.com/auth/wv/:eyJvdHAiOiIyMDE2MDMxM3ZlcnNBU0UzMjNBeDFPNW5SYWtRU0tCdXA5RkgzYWk1c0Vmd1JITkRoT0FxanVPaXJJeVRYNDdPIiwicGxheWJhY2tJbmZvIjoiZXlKMmFXUmxiMGxrSWpvaU9ETTVZVEkyT1RRek5tUXhORFprTnpnek5EQXpPV1l3TkRneFpqSTJNalVpZlE9PSIsImhyZWYiOiJodHRwczovL3d3dy5zdHVkeWlxLmNvbS92aWRlby1wYWdlIiwidGVjaCI6Ind2IiwibGljZW5zZVJlcXVlc3QiOiJDQVE9In0= I pasted to https://bitmovin.com/demos/drm, didn't work too.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/WHTJEON/narrowvine-reborn/issues/5#issuecomment-912434638, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKRVVNLJP42QDDL33TI2ZTUACPLZANCNFSM5C4YG2XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

anshulgupta5102002 avatar Sep 03 '21 11:09 anshulgupta5102002

The License URL may need a token Tv2 play denmark has License URL https://lic.drmtoday.com/license-proxy-widevine/cenc/ but it also need at token to work

x-dt-auth-token: eyJhbGciOiJIUzUxMiJ9.eyJvcHREYXRhIjoie1widXNlcklkXCI6XCIyNTlmNzMxNC04YjlkLTRkZjgtYjRiNC1iMzVkN2I0MDRmZGVcIixcIm1lcmNoYW50XCI6XCJ0djJcIixcInNlc3Npb25JZFwiOlwiM2M5MjgwMjUtMjhkNC00NWQ5LTkxNTQtMGJiNDIwY2RmMjZmXCJ9IiwiY3J0IjoiW3tcImFjY291bnRpbmdJZFwiOlwib3ZwLWRybTp2aWRlby1vcmlnaW5cLzEwMDY5MDc2XC8yMDIxMDgzMDE3MTM1NTg0MzViOVwiLFwiYXNzZXRJZFwiOlwidmlkZW8tb3JpZ2luXC8xMDA2OTA3NlwvMjAyMTA4MzAxNzEzNTU4NDM1YjlcIixcInByb2ZpbGVcIjp7XCJyZW50YWxcIjp7XCJhYnNvbHV0ZUV4cGlyYXRpb25cIjpcIjIwMjEtMDktMDFUMDQ6MTU6NDUuNjY0WlwiLFwicGxheUR1cmF0aW9uXCI6ODY0MDAwMDB9fSxcIm91dHB1dFByb3RlY3Rpb25cIjp7XCJkaWdpdGFsXCI6dHJ1ZSxcImFuYWxvZ3VlXCI6dHJ1ZSxcImVuZm9yY2VcIjpmYWxzZX0sXCJzdG9yZUxpY2Vuc2VcIjp0cnVlfV0iLCJpYXQiOjE2MzA0MjY1NDUsImp0aSI6Ik4wMDBNZHJ4RlNYSVcwRzZYaGhaYnc9PSJ9.kf0pN4W8PxA0wPDm7Y3Uk-cqMMmVr2tvwWnvNmncEHtnRgf74Udxxb3YS-RaXAyYw79stYmBBJorzedluVRjDw

This is different from somthing like Viaplay wich gives a License URL and token in on line

https://widevine.entitlement.theplatform.eu/wv/web/ModularDrm/getRawWidevineLicense?schema=1.0&httpError=false&token=8-XDP8xsq_42ieBmFTwwQRAgoIDe0FBu&account=http%3A%2F%2Faccess.auth.theplatform.com%2Fdata%2FAccount%2F2361940180&releasePid=xzHYJLKqAoW_

The Viaplay version work with this script but the TV2Play one doesn't

Maybe adding license_token = input ('insert License Token : ')

and then add keys = decrypt(pssh, license_url, license_token)

But im not a 100% sure

Hi,and do you how to get mpd for tele2 and widevine/licens/ url on Telenor...Regards

HEROBBB avatar Feb 06 '23 21:02 HEROBBB