
注意frida和python frida-tools的版本匹配,Frida与Frida-tools对应关系
pip install frida==14.2.17
pip install frida-tools==9.2.4
在 官方github页面的release标签里,找到对应版本的frida-server,注意要匹配系统和架构,比如arm和arm64就不能搞错
PS C:\Users\Administrator> adb devices
List of devices attached
00eda37121888c2c device
PS C:\Users\Administrator> adb shell
bullhead:/ $ getprop ro.product.cpu.abi
arm64-v8a

linux原生的可执行文件,我们将它重命名为frida-server 使用adb命令将其推送到手机上去
$ adb push frida-server /data/local/tmp/
然后使用adb shell命令进入到手机中去,执行以下命令:
$ adb shell
bullhead:/ $ su
bullhead:/ # whoami
root
bullhead:/ # cd /data/local/tmp/
bullhead:/data/local/tmp # chmod 755 /data/local/tmp/frida-server
bullhead:/data/local/tmp # ./frida-server &
1 6669
frida-server运行成功。
电脑新开一个shell,执行如下命令
PS C:\Users\Administrator> adb shell
bullhead:/ $ su
bullhead:/ # cd /data/lo
local/ lost+found/
bullhead:/ # cd /data/local/tmp/
bullhead:/data/local/tmp # ./frida-server &
[1] 8610
bullhead:/data/local/tmp #
此时在电脑上新开一个shell,运行frida-ps -U命令,即可显示手机中正在运行的进程。

frida-server服务端启动成功!
查看frida进程
ps | grep frida杀死进程
kill -9 进程id
adb forward tcp:27042 tcp:27042 #查看进程中的信息
#process = frida.get_usb_device().enumerate_processes()
#print(process)
1.新开一个shell输入命令:
adb shell am monitor
2.启动需要获取包名的应用
本文仅供学习交流使用,如侵立删! |
|---|
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。