参考了https://xz.aliyun.com/t/6102
不过文章里是用的windows,我是用的mac
模拟器因为Genymotion是付费的,所以我选择了网易mumu,关于网易mumu如何使用adb连接以及配置代理可参考http://mumu.163.com/help/func/20190129/30131_797867.html
mac安装adb 参考https://www.jianshu.com/p/69ba21b2996c
安装frida的话直接执行
pip install frida
pip install frida-tools
就可以,需要注意的是安装完默认执行frida命令会报command not found错误,我find了一下找到文件在~/Library/Python/2.7/bin/ 下
微信的包名为com.tencent.mm,注入进程的时候需要
此外,原文中给的注入进程的命令
frida -U -f com.twitter.com D:\ADB\fridascript.js --no-paus
少了一个参数,路径前要加-l,实际命令为
frida -U -f com.twitter.com -l D:\ADB\fridascript.js --no-paus
后续再次使用仅需要执行以下步骤
1.
adb shell /data/local/tmp/frida-server-12.10.0-android-x86 &
2.
~/Library/Python/2.7/bin/frida-ps -U #路径根据实际情况替换
3.
~/Library/Python/2.7/bin/frida -U -f com.tencent.mm -l ~/Downloads/fridascript.js --no-paus
#路径根据实际情况替换
4.配置代理