雷电模拟器app抓包
雷电9 模拟器
某app中发送验证码报错java.security.cert.CertPathValidatorException:Trust anchor for certification path not found.
报错的原因就是SSL握手时,app发现从burp过来的CA凭证不在系统CA库中,导致握手失败。
打开burpsuite后访问127.0.0.1:8080导出证书,改名为burp.der
传到ubuntu虚拟机上处理一下
openssl x509 -inform DER -in burp.der -out burp.pem
获取subject_hash_old值并修改文件名为该值同时以 .0结尾
# 获取subject_hash_old值,9a5ba575
openssl x509 -inform PEM -subject_hash_old -in burp.pem |head -1
# 修改文件名
mv burp.pem 9a5ba575.0
将制作好的文件放在C:\leidian\LDPlayer9
下,开启cmd
adb提升root权限,并重新挂载,然后将文件放入/sdcard/下。然后使用adb shell进入系统将文件移动至/system/etc/security/cacerts/下,同时更改权限为644后,重启即可
C:\leidian\LDPlayer9>adb devices
List of devices attached
emulator-5554 device
C:\leidian\LDPlayer9>adb root
C:\leidian\LDPlayer9>adb remount
C:\leidian\LDPlayer9>adb push 9a5ba575.0 /sdcard/
C:\leidian\LDPlayer9>adb shell
star2qltechn:/ # mv /sdcard/9a5ba575.0 /system/etc/security/cacerts/
star2qltechn:/ # chmod 644 /system/etc/security/cacerts/9a5ba575.0
star2qltechn:/ # reboot