环境,win+小米手机
1,python安装frida模块,pip install frida 然后注意查看版本号:>pip list |findstr /i frida
2,我这里为11.0.13,然后https://github.com/frida/frida/releases中下载对应版本的server和手机cpu型号,放在安卓下运行
如果查看自己手机是arm还是x64呢?查看/proc/cpuinfo信息,详见https://blog.csdn.net/qq_37858386/article/details/78905342
我的下载的frida-server-11.0.13-android-arm.xz
3,adb把文件放到手机,运行frida-server.
adb shell
su
cd /data/local/tmp
ls -al frida-server //可以查看有没有
chmod 777 frida-server //赋予运行权限
./frida-server
//转发android TCP端口到本地
adb forward tcp:27042 tcp:27042
adb forward tcp:27043 tcp:27043
验证:
frida-ps -R
出现进程就是可以了
主要遇到的问题,就是手机内核版本,和python 安装frida版本 对应 需要下载的frida-server 不符导致
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