学习记录 & 以及为需要的人节约时间
1.拿到burp 的证书文件,
2.使用kali 自带的openssl 对证书进行处理
openssl x509 -inform DER -in cacert.der -out cacert.pem
openssl x509 -inform PEM -subject_hash_old -in cacert.pem|head -1
将文件cacert.pem重命名为9a5ba575.0
3.将拿到的证书放在 system/etc/sercurity/cacerts
//也可以使用adb 指令移动进去
eg: ./adb push C:\Users\19654\Desktop\test9a5ba575.0 /system/etc/security/cacerts
4.通过adb指令修改文件权限
chmod 644 /system/etc/security/cacerts/<hash>.0
//此时应进入adb shell 模式。
此处是: chmod 644 /system/etc/security/cacerts/9a5ba575.0
5.在信任证书哪里,启用证书
至此就可以愉快的,配置burp 代理抓取数据包了。
如果出现//<hash>.0:Read-only file system 警告,这是因为system文件为只读,需要将其挂载为可读写。
解决方法1
mount -o rw,remount /system
修改system读写权限,然后再尝试继续操作。