一,环境准备(手机有root):
PC端:frida==16.0.3
powershell
pip3 install frida==16.0.3
PC端:frida-tools==12.0.2
powershell
pip3 install frida-tools==12.0.2
手机端:frida-server==16.0.2
下载地址:https://github.com/frida/frida/releases/tag/16.0.3
二,hook得到文件
查看手机cpu架构:
powershell
adb shell getprop ro.product.cpu.abi
选择firda-server arm 64 解压导入手机端,保持手机端运行frida-server
powershell
adb push frida-server-16.0.3-android-arm64 /data/local/tmp
adb shell
su
chmod +x /data/local/tmp/frida-server-16.0.3-android-arm64
./data/local/tmp/frida-server-16.0.3-android-arm64
下载dump在窗口运行:https://github.com/wvdumper/dumper
powershell
python3 dump_keys.py
手机访问aHR0cHM6Ly9iaXRtb3Zpbi5jb20vZGVtb3MvZHJt,hook失败可清除浏览器所有缓存再次尝试
三,生成wvd文件
powershell
pywidevine create-device -t ANDROID -l 3 -k private_key.pem -c client_id.bin -o .