问题背景:使用python-frida获取到device通过adb命令执行spwan操作时,产生的一系列报错
问题一:
报错内容:
frida.NotSupportedError: need Gadget to attach on jailed Android; its default location is:
报错原因:
python-frida版本与Remote-frida(即push到Android收集的frida)版本不匹配
解决方式:
pip install frida的版本要与push到Android的版本一致,如pip install frida==14.2.14 则push到Android版本为frida-server-14.2.14-android-x86_64
注意:
此处需根据Android虚拟机的cpu架构选择server版本,arm选arm,x86选x86 x86_64选x86_64,不能选错,如果选错,则会产生报错二
此处附一个frida下载server的官方链接https://github.com/frida/frida/releases?page=9
问题二:
Failed to enumerate processes: unable to communicate with remote frida-server; please ensure that major versions match and that the remote Frida has the feature you are trying to use
报错原因:
frida的架构版本不对,你的模拟器可能是arm架构,结果你下了个x86架构的frida,肯定不行,所以一定要对应好后面的架构类型,同时注意push的文件是frida-server不是frida-inject,注意注意
最后另附,如果问题一还没有解决,记得查看是否安装objection,目前objection的版本为1.11.0,对应到frida是14.2.14,因为objection是辅助frida开发的,所以更新没有frida快