Skip to content

A repo modified for bypassing Widevine L3 DRM and obtaining keys.

License

Notifications You must be signed in to change notification settings

CrymanChen/WKS-KEYS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WKS-KEYS

更新 Update

2024.11.12

l3_NowE 文件夹 (l3_NowE Folder)

简介:该文件夹是一个用于下载NowE当中受Widevine保护的视频资源,且该项目为全自动实现,只需输入视频的URL即可自动获取所有所需的数据,并自动通过N_m3u8DL-REmp4box来下载、解密和对视频进行混流。
Introduction: This folder is designed for downloading Widevine-protected video resources from NowE. The project is fully automated; simply input the video URL to automatically retrieve all the necessary data and use N_m3u8DL-RE and mp4box to download, decrypt, and mux the video.

  1. 通过selenium实现自动登录和登录token的获取。
  2. 通过zhconv将例如视频标题自动转换成简体中文(当然你也可以自己修改)
  3. 自动获取Chrome浏览器的版本号(该版本号至关重要)

(a. Achieve automatic login and retrieval of login tokens using selenium.
b. Automatically convert text, such as video titles, to Simplified Chinese using zhconv (of course, you can modify this as needed).
c. Automatically obtain the version number of the Chrome browser (this version number is crucial).)

提示:原则上来说,你只需要下载该文件夹到WKS-KEYS文件夹内,安装requirements.txt内的第三方库,运行main.py,输入视频的URL地址即可。
Note: In principle, you only need to download this folder into the WKS-KEYS folder, install the third-party libraries listed in requirements.txt, run main.py, and input the video URL.

再注:该程序为约一年前的作品,因为缺少维护,代码略显丑陋,请大家见谅。
P.S.: It's been around a year since I wrote this script, and it may look pretty ugly due to insufficient maintenance, about which I'm sorry.

2023.11.12

l3mubi.py

  1. 输入base64编码或十六进制的Key ID即可自动转化为PSSH.
  2. 优化标头部分,仅需要关键参数。
  3. 增加帮助部分,加入-h--help即可阅读更详细的说明。

(a. Either Key ID in base64 or in hex will convert to PSSH automatically.
b. Only critical params are needed in headers (rather than full headers).
c. Adding -h or --help will enable help text which is more datailed and beneficial to using this script.)

非常感谢 Spectrumhsm 的宝贵意见! Really appreciate the great idea from Spectrumhsm!
示例截图 Screenshot:
20231112001310

简介 Abstract

项目名称 Project Name

WKS-KEYS

项目介绍 Introduction

这是一个经过修改的项目, 用于获取L3等级下, Widevine的密钥
A repo modified for bypassing Widevine L3 DRM and obtaining keys.
在这里我会不定期上传一些我写好的程序(下称脚本),以方便新手直接使用。每个脚本都对应不同的网站。请注意,所有经过我编写的脚本均不得用于商业用途,且上传脚本并不是我的义务。
I will upload some programs that I have edited from time to time (hereinafter referred to as scripts) for new-beginners' convenience. Each script works for getting keys from different websites. Please note that, no commercial usage to all my scripts, and it's not an obligation to update them so DO NOT rush please.

版权信息 Copyright Information

本项目原发行于WKS-KEY, 其中WKS-KEY又来自于WKS-KEY, 在此对两位作者WKS-uwuweapon121表示感谢。同时若此修改版不慎触犯了您的利益, 请第一时间与我联系。本项目无任何商业用途, 仅为个人学习, 方便个人使用。
Copyright Information: This project came from WKS-KEY, and WKS-KEY was forked from WKS-KEY. I'd like to express my sincerest thanks to both developers WKS-uwu and weapon121. In case this modified version unintentionally infringes upon your interests, please contact me as soon as possible. This project is purely for personal learning and convenience, without any commercial purpose. This also means that if the modifications made to your project are unintentionally harmful, please contact me immediately.

Usage (Chinese Simplified)

本项目需要一定的专业知识(A bit technical), 如果您对该领域不了解, 请不要进行尝试, 我亦不会对相应问题进行解答, 敬请谅解。

需要预先准备的东西

  1. 本程序(WKS-KEYS.zip)
  2. 一个有效的CDM

步骤说明

  1. 准备好CDM。
  2. 将CDM放置在这个目录(WKS-KEYS\pywidevine\L3\cdm\devices\android_generic)下。
  3. 播放受DRM保护的视频, 收集需要的信息(包括但不限于PSSH和License URL)。 image image
  4. 将收集的信息进行整理, 放置在相对应的Python文件中。
  5. 输入PSSH和License URL, 等待服务器返回信息以及等待程序返回密钥。
  6. 获得密钥, 请继续后续操作。

本项目修改之处

  1. 对原项目进行了中文注释, 旨在提高代码的可识别性。
  2. 对原项目进行了功能上的增加, 主要是增加了一个“自动复制密钥”的功能。

运行示意图

image 同时, 剪贴板上自动复制了你获得的密钥, 方便在使用例如N_m3u8DL-RE时, 可快速粘贴密钥信息, 无需手动逐一复制。
你的剪贴板上的内容如下图所示: image 达到一键自动粘贴的功能, 无需手动复制粘贴。

About

A repo modified for bypassing Widevine L3 DRM and obtaining keys.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages