mac 安装 frida
mac
上执行如下命令。
$ pip install frida
报了如下错误。
image.png
看错误信息是在 /Users/yanfangxiong/
下没有找到 frida-15.0.19-py3.7-macosx-10.9-x86_64.egg
。然后我们到 官网 搜索并下载 frida-15.0.19-py3.7-macosx-10.9-x86_64.egg
。
image.png
image.png
这里因为在下载页也没有搜索到 frida-15.0.19-py3.7-macosx-10.9-x86_64.egg
,就找个相近的版本下载然后改名为 frida-15.0.19-py3.7-macosx-10.9-x86_64.egg
。
image.png
再将下载并改名的文件放到 /Users/yanfangxiong
下,再次执行 pip install frida
。
安装完 frida
后继续执行下面命令。
$ pip install frida-tools
手机上安装 frida-server
先查看手机的 cpu
类型。
$ adb shell getprop ro.product.cpu.abi
然后 下载 对应的 frida-server
,我的设备是 arm64-v8a
,这里我下载的是 frida-server-15.1.1-android-arm64.xz
。
image.png
解压文件得到 frida-server
,然后通过 adb
将 frida-server
推到设备内存并启动。
$ adb push frida-server-15.0.19-android-arm64 /data/local/tmp
$ adb shell
$ su
$ cd /data/local/tmp
$ chmod 777 frida-server
$ ./frida-server
在 mac
上执行如下命令验证一下。
$ frida-ps -U
image.png