When I type python3 l3.py in WKS_KEY folder, I receive
from pywidevine.L3.cdm import cdm, deviceconfig
ModuleNotFoundError: No module named 'pywidevine.L3'
Obviously, the folder pywidevine is here.
Any workaround to fix that?
+ Reply to Thread
Results 181 to 210 of 609
-
Last edited by joaopa0; 20th Oct 2022 at 19:32.
-
The line:- pywidevine.L3.cdm import cdm, deviceconfig is python's way of showing a hierarchy of directories or folders. In Windows your program l3.py expects you to have - from the WKS_KEYS folder
pywidevine\L3\cdm\ and therein it expects to find cdm.py and deviceconfig.py see below;
[Attachment 67300 - Click to enlarge]
Your error says there is no L3 ... just see what the folder path is to get to the cdm folder and change that line in your version of l3.py. Simples! -
I use Linux. How can I change this import
changing from pywidevine.L3.cdm import cdm, deviceconfig into
import /home/test/WKS/pywidevine.L3.cdm import cdm, deviceconfig does not work (WKS is the folder where I decompressed all the files) -
I just gave you the answer!! Read it carefully. THINK a bit and do what you were told.
It really doesn't matter if it is windows or linux; folder hierarchies are the same.
And if you really cannot follow what is going on - you have no business in this forum. Harsh but realistic and it preserves my sanity.Last edited by A_n_g_e_l_a; 21st Oct 2022 at 07:54. Reason: Expletive deleted!!!!
-
I managed to fix the problem; surely in a ugly way
For those having the problem:
when you need some imports: add
import sys
then before each problematic import
sys.path.insert(1, 'path_to_WKS_KEYS_folder//pywidevine/'[remaing_folders])
For instance in l3.py file
import os, sys
import base64, requests, sys, xmltodict
import headers
sys.path.insert(1, '/home/test/WKS-KEYS/pywidevine/L3/cdm')
import cdm, deviceconfig
from base64 import b64encode
sys.path.insert(1, '/home/test/WKS-KEYS/pywidevine/L3/')
from getPSSH import get_pssh
sys.path.insert(1, '/home/test/WKS-KEYS/pywidevine/L3/decrypt')
from wvdecryptcustom import WvDecryptLast edited by joaopa0; 21st Oct 2022 at 10:11.
-
I think I understand what is happening with your system now. You've been using a channel4 downloader - C4-dl that installs pywidevine as a module. Whenever your l3 code sees pywidvine it looks to the module installed under .local. You should choose either to use WKS-KEYS OR pywidevine otherwise you'll give yourself problems.
-
Last edited by codehound; 22nd Oct 2022 at 16:20.
-
Diazole:
The function name you need is 'kqzqahjq'
Is it possible to describe how to identify the 'right' function from the 30 or so other obscurely named functions? Are there some telltale signs to look out for? Or were the keys dumped quickly for other reasons maybe? -
Hi.. just curious here.. i able to push frida server to my android phone and run dump.py.. however, after "hook completed", nothing happened and no key dumped folder produced. May i know why??
Thanks.. -
-
You can dump working CDMs from Android Studio Emulators
I just dumped a working L3 CDM off one. Theres no need to go out and purchase a deviceI help all that ask. -
I wonder if it's possible to dump L1 now? I guess what I don't understand is a lot of content is 720p+ which can only be dumped via L1.
Its rhetorical I know only L1 are per device (hardware).
Any groups about tee and L1 security ? , I could care less about content and more how things work.
Is Magisk still being used?Last edited by AscensionDweller; 26th Oct 2022 at 15:38.
-
-
-
TEE -Trusted Execution Environment - it is beyond the skills of most people. Add the fact that rooting destroys L1 on phones (maybe not Xiaomi) means L1 remains a pipe dream for modern devices. I think it was possible for Android versions before TEE. But people keep very quiet if they have one and do not share - (for a very good reason). I have no knowledge of recent L1 'discoveries'.
-
I help all that ask.
-
When I tried using an Android Virtual Device as it came, I wasn't able to run anything in /data/local/tmp/ on the AVD. RootAVD exists for a purpose. I got as far as finding function names to hook and 'hooks completed' but little more.
Which flavour of Android was your AVD running? -
I help all that ask.
-
https://streamable.com/f1ajvi
Heres a video of me dumping a CDM on Android Studio.I help all that ask. -
Thanks for sharing your method!
First of all let me say that I am using google translator so something I write here might not be understandable.
I followed the video, succeeding until the minute 00:01:50, from here I couldn't and I had doubts, if you can help I appreciate it very much.
Where should I put the folder containing the dump_key.py? It looks like you just ran it with a double click, but I didn't succeed anyway. -
I help all that ask.
-
-
That's the problem I also faced today. Yesterday I learnt in a python lecture that there should be a __init__.py in a folder to refer that as a module. So just make a __init__.py file in pywidevine dir and you'll get there. I don't know actually I did understand it well but however it worked for me.
-
-
Thanks for sharing!
This method worked great for me. I'm running Android 11 so I used the dumper from Diazole/dumper with a rooted Redmi Note 11 -
Hello,
I am using the translator, so I hope to make myself understood.
I already did almost everything in this thread, but in the Dumper part, I have a problem. I get an error:
line 4, in <module>
import frida
ModuleNotFoundError: No module named 'frida'.
When I'm getting to this point: /data/local/tmp/frida-server-16.0.6-android-x86, and I have to open dumper_keys_py, it doesn't open anything (window opens and closes in seconds).
What am I doing wrong? -
-
It's already installed... Maybe that was the problem, many thanks!
Now the problem is different:
[Attachment 67943 - Click to enlarge]
I am an absolute newbie, and I have been 6 continuous days without success, trying everything to download from Vdocip***...
I'm about to give up.
Similar Threads
-
widevine decryption help
By birbal1 in forum Video Streaming DownloadingReplies: 2Last Post: 5th Dec 2021, 10:11 -
Help with video download and decryption
By herschel in forum Video Streaming DownloadingReplies: 4Last Post: 26th Jul 2021, 04:31 -
How do I get the decryption key
By Bakekalu in forum Video Streaming DownloadingReplies: 6Last Post: 5th Jul 2021, 01:25 -
Cloudfront video download, decryption?
By Md_95 in forum Newbie / General discussionsReplies: 7Last Post: 5th Apr 2020, 07:53 -
Question about decryption of .m2ts files
By mwalimu in forum Blu-ray RippingReplies: 8Last Post: 23rd Jun 2019, 14:47