Giter Club home page Giter Club logo

narrowvine's Introduction

NARROWVINE

made-with-python Github All Releases License: MIT

(2021.8.26) New Version Released: https://github.com/WHTJEON/narrowvine-reborn

(2021.6.1) Widevine revoked every exploit used in this script. It's dead.
It is reported to still work in some sites, but most of them are revoked.

The Ultimate Widevine Content Ripper (KEY Extract + Download + Decrypt)
Extracting decryption keys only supports Windows.

  • If you are using a different platform, you would need to extract decryption keys using Widevine L3 decryptor from a Windows Machine first and paste them into the script.
  • This is a combination of widevine-dl and widevineclient3 in my repo.
  • This exploit will be patched by Widevine in May 31st, 2021.

Requirements

  • ffmpeg, yt-dlp, aria2 (These must be in PATH. If you want to skip this procedure, download from Releases)
  • pycryptodome
$ pip install ffmpeg yt-dlp aria2p pycryptodome

or just simply

$ pip install -r requirements.txt

Instructions For Windows

  1. Clone or Download the Repo (It is more recommended to download a compiled version from Releases)
  2. Run narrowvine.py
$ python3 narrowvine.py
  1. Enter MPD_URL and LICENSE_URL of Widevine Content
  2. Enter VIDEO_ID and AUDIO_ID to download encrypted content.
  3. Once you are done downloading, the script will extract the keys and decrypt the contents.

2

  1. Enter FILENAME with extension! (ex. final.mp4)
  2. Your decrypted contents will be merged and saved to /output directory.

Inputs

  • MPD_URL - MPD URL of Widevine Content
  • LICENSE_URL - LICENSE URL of Widevine Content
  • VIDEO_ID - Video Track ID Shown in Stream Info (Leave blank for best)
  • AUDIO_ID - Audio Track ID Shown in Stream Info (Leave blank for best)
  • FILENAME - Desired File Name of Final Decrypted File (with extension!)

Arguments

  • You can also run the python script in a single line command
$ python3 narrowvine.py -mpd "https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd" -license "https://widevine-proxy.appspot.com/proxy"

DLL Dependencies

If you get ucrtbased.dll and vcruntime140d.dll missing error when running license_proxy.exe, download and unzip 32bit.zip to ..\Windows\System32 and download and unzip 64bit.zip to ..\Windows\SysWOW64.

Legal Notice

Educational purposes only. Downloading DRM'ed materials may violate their Terms of Service. DO NOT USE THIS FOR PIRACY.

If you enjoyed using the script, a star or a follow will be highly appreciated! 😎

narrowvine's People

Contributors

whtjeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

narrowvine's Issues

My5HD/ALL4 HD

has anyone got this working for all4hd? and my5hd (1080p) files? please help as i cant get keys from my5 or all4

license_proxy.exe

I have a problem with license_proxy.exe. When I try to open normally or via CMD, I get an application error (0xc000007b). Are you able to suggest something to fix it?

Contact

How can I contact you. Can you please send me an email id

Error parsing message

image

I tried it for amazon and got this error, maybe i need to fill the cookies but im not sure how, can you add an option like "--cookies" ?

google.protobuf.message.DecodeError: Truncated message.

How can I solve this error?
windows 10

Extracting Widevine Keys..
Traceback (most recent call last):
  File "C:\Python38\lib\site-packages\google\protobuf\internal\python_message.py", line 1145, in MergeFromString
    if self._InternalParse(serialized, 0, length) != length:
  File "C:\Python38\lib\site-packages\google\protobuf\internal\python_message.py", line 1198, in InternalParse
    (data, new_pos) = decoder._DecodeUnknownField(
  File "C:\Python38\lib\site-packages\google\protobuf\internal\decoder.py", line 989, in _DecodeUnknownField
    (data, pos) = _DecodeUnknownFieldSet(buffer, pos)
  File "C:\Python38\lib\site-packages\google\protobuf\internal\decoder.py", line 963, in _DecodeUnknownFieldSet
    (tag_bytes, pos) = ReadTag(buffer, pos)
  File "C:\Python38\lib\site-packages\google\protobuf\internal\decoder.py", line 192, in ReadTag
    while six.indexbytes(buffer, pos) & 0x80:
IndexError: index out of bounds on dimension 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 247, in <module>
    getkeys("%s/encrypted_video.mp4"%TEMPORARY_PATH,LICENSE_URL)
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 113, in getkeys
    cdm.work(pssh)
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 108, in work
    self.getContentKey(license_request_data, license_response_data)
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 81, in getContentKey
    responseMessage.ParseFromString(license_response_data)
  File "C:\Python38\lib\site-packages\google\protobuf\message.py", line 199, in ParseFromString
    return self.MergeFromString(serialized)
  File "C:\Python38\lib\site-packages\google\protobuf\internal\python_message.py", line 1151, in MergeFromString
    raise message_mod.DecodeError('Truncated message.')
google.protobuf.message.DecodeError: Truncated message.

Traceback while extracting keys.

getting this error:

###Traceback (most recent call last):
File "google\protobuf\internal\python_message.py", line 1145, in MergeFromString
File "google\protobuf\internal\python_message.py", line 1198, in InternalParse
File "google\protobuf\internal\decoder.py", line 989, in _DecodeUnknownField
File "google\protobuf\internal\decoder.py", line 963, in _DecodeUnknownFieldSet
File "google\protobuf\internal\decoder.py", line 192, in ReadTag
IndexError: index out of bounds on dimension 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "\Mac\Home\vliveplus-dl\VLIVEPLUS_POC\narrowvine.py", line 246, in
File "\Mac\Home\vliveplus-dl\VLIVEPLUS_POC\narrowvine.py", line 113, in getkeys
File "\Mac\Home\vliveplus-dl\VLIVEPLUS_POC\narrowvine.py", line 108, in work
File "\Mac\Home\vliveplus-dl\VLIVEPLUS_POC\narrowvine.py", line 81, in getContentKey
File "google\protobuf\message.py", line 199, in ParseFromString
File "google\protobuf\internal\python_message.py", line 1151, in MergeFromString
google.protobuf.message.DecodeError: Truncated message.
[600] Failed to execute script #narrowvine###

Why this problem occurs

Extracting Widevine Keys..
request license failed. --> HTTPSConnectionPool(host='license.kktv.com.tw', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:748)'),))

doesnt work

this no longer gets any keys for any website

faster

how can i get it to download faster??

name 'KEY_PROMPT' is not defined

trace:
Traceback (most recent call last):
File "narrowvine.py", line 251, in
decrypt_content()
File "narrowvine.py", line 177, in decrypt_content
parse_key(KEY_PROMPT)
NameError: name 'KEY_PROMPT' is not defined
question: what's the meaning and how to slove it ?

➜  narrowvine git:(main) ✗ python3 narrowvine.py
---------------------------------------------------------------------------------------------------------------------------------------------------------
**** NARROWVINE by vank0n **** (Linux Detected)
---------------------------------------------------------------------------------------------------------------------------------------------------------
Enter MPD URL:
> https://dowuwd6v9jrq0.cloudfront.net/E37EB7-606def4b92c59c2cc4284972/1618935677/607efd760e9b6757d475ba43.mpd
---------------------------------------------------------------------------------------------------------------------------------------------------------
Enter License URL:
> https://licensing.bitmovin.com/licensing
Enter WideVineDecryptor Prompt:
> 2a8b1f24-2c3c-4ab1-adeb-2b89af5171f0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.