安卓雷电模拟器安装frida调试

1.在模拟器中设置调试root和adb



2.在vscode中安装autox.js

3.在github上下载auto.js组件

新地址链接看来大佬的项目也经历了波折https://blog.csdn.net/weixin_41961749/article/details/145669531

github地址https://github.com/aiselp/AutoX/releases

将下载的apk放入雷电模拟器中

auto的详细配置可以参考大佬的文章python中frida的安装+frida-server(雷电模拟器)保姆级安装教程
4.在Windows系统中安装adb组件

参考文档安装adb并配置环境变量
5.安装frida组件下载frida工具

python 复制代码
pip install frida
pip install frida-tools

下载组件
https://github.com/frida/frida/releases/tag/16.4.7

确保开启root权限并启动frida后

6.在Python中开启端口转发并获取数据

获取端口转发

python 复制代码
import subprocess

subprocess.getoutput("adb forward tcp:27042 tcp:27042")

查看获取数据

python 复制代码
import frida
redv = frida.get_remote_device()
processes = redv.enumerate_processes()
for process in processes:
  print(process)