Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
/ narrowvine Public archive

The Ultimate Widevine Content Ripper (KEY Extract + Download + Decrypt)

License

Notifications You must be signed in to change notification settings

WHTJEON/narrowvine

Repository files navigation

NARROWVINE

made-with-python Github All Releases License: MIT

(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! 😎