Android13 安装最新版 Frida

本文介绍了如何在Windows10环境下,为Android13的Pixel4设备安装最新版的Frida和frida-tools。首先,通过pip安装指定版本的Frida和frida-tools,然后根据手机的CPU架构(例如arm64-v8a)下载并推送frida-server到设备上。接着,启动frida-server服务,并使用frida-ps-U命令查看手机上的进程。最后,文章强调了这些操作仅限于技术研究,禁止非法用途。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本文所有教程及源码、软件仅为技术研究。不涉及计算机信息系统功能的删除、修改、增加、干扰,更不会影响计算机信息系统的正常运行。不得将代码用于非法用途,如侵立删!

Android13 安装最新版 Frida

环境

  • win10
  • Pixel4
  • Android13
  • Python3.9
  • Frida16.1.0
  • Frida-tools12.1.3

PC安装frida和frida-tools

注意frida和python frida-tools的版本匹配,Frida与Frida-tools对应关系

最新版安装:

# 安装frida
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple frda
# 安装frida-tools
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple frda-tools

指定版本安装:

# 安装frida
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple frda==16.1.0
# 安装frida-tools
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple frda-tools==12.1.3

查看版本:

PS C:\Users\Administrator> frida version
     ____
    / _  |   Frida 16.1.0 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to Local System (id=local)
Failed to spawn: unable to find process with name 'version'

手机安装frida-server

官方github页面的release标签里,找到对应版本的frida-server

注意要匹配系统和架构,比如arm和arm64就不能搞错

  • 查看手机CPU 架构类型

    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
    

    在这里插入图片描述

  • 根据frida版本和手机CPU版本下载对应的frida-server
    在这里插入图片描述
    下载完成后进行解压,获得linux原生的可执行文件,重命名为:frida-server

  • 将frida-server安装至手机
    使用adb命令将其推送到手机上去

    adb push frida-server /data/local/tmp/
    

Frida 常用命令

  • 启动frida-server服务
    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
    
    此时在电脑上新开一个shell,运行frida-ps -U命令,即可显示手机中正在运行的进程。
    在这里插入图片描述
  • 关闭frida-server服务
    查看frida进程
    ps | grep frida
    
    杀死进程
    kill -9 进程id
    
  • 端口转发
    adb forward tcp:27042 tcp:27042 
    

本文仅供学习交流使用,如侵立删!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

拉灯的小手

您的鼓励将是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值