吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2502|回复: 9
收起左侧

[Android 分享] 高版本frida使用objection的方法

  [复制链接]
lhro 发表于 2023-12-21 22:02
本帖最后由 lhro 于 2023-12-21 22:18 编辑

前言

objection 的最新版本 1.11.0 发布时间为2021年,与其匹配的frida版本为14.2.18。然而frida server 14.2.18在我的测试机一加Ace 2V 会导致系统崩溃重启,似乎是与MTK的兼容性问题。frida 降级到 12 后,虽然手机不崩溃了,但是这个版本在Mac上仅有X86的版本,与M2芯片不匹配。。。
另一方面,虽然objection虽然较长时间没有新发布,但是仓库代码仍保持更新,最近一次提交时间为9月10日,因此萌生了从源码编译安装的意图。

objection编译步骤

测试环境:

  • macos 14
  • python 3.8
  • frida 16.1.8
  • node.js 20.10.0
  • Android 13
  1. 准备工作
    1. 安装 node.js:https://nodejs.org/en
    2. 下载objection源码
      git clone https://github.com/sensepost/objection.git
    3. 进入objection源码目录
      cd path/to/objection/
  2. 准备 npm 项目依赖
    cd agent
    npm install
  3. 编译
    cd .. # objection源码目录
    make frida-agent
    make sdist
  4. 安装
    pip install dist/objection-1.11.0.tar.gz

PS

此时编译的objection与1.11.0版本的命令有一定变化。常用命令变化为:

-g --> -n
explore --> start  
Usage: objection [OPTIONS] COMMAND [ARGS]...

       _   _         _   _
   ___| |_|_|___ ___| |_|_|___ ___
  | . | . | | -_|  _|  _| | . |   |
  |___|___| |___|___|_| |_|___|_|_|
        |___|(object)inject(ion)

       Runtime Mobile Exploration
          by: @leonjza from @sensepost

Options:
  -N, --network            Connect using a network connection instead of USB.
  -h, --host TEXT          [default: 127.0.0.1]
  -p, --port INTEGER       [default: 27042]
  -ah, --api-host TEXT     [default: 127.0.0.1]
  -ap, --api-port INTEGER  [default: 8888]
  -n, --name TEXT          Name or bundle identifier to attach to.
  -S, --serial TEXT        A device serial to connect to.
  -d, --debug              Enable debug mode with verbose output.
  -s, --spawn              Spawn the target.
  -p, --no-pause           Resume the target immediately.
  -f, --foremost           Use the current foremost application.
  --debugger               Enable the Chrome debug port.
  --uid TEXT               Specify the uid to run as (Android only).
  --help                   Show this message and exit.

Commands:
  api       Start the objection API server in headless mode.
  patchapk  Patch an APK with the frida-gadget.so.
  patchipa  Patch an IPA with the FridaGadget dylib.
  run       Run a single objection command.
  signapk   Zipalign and sign an APK with the objection key.
  start     Start a new session
  version   Prints the current version and exits.

PPS

单元测试不通过,影响未知。。。

免费评分

参与人数 3吾爱币 +9 热心值 +3 收起 理由
hshhs + 1 + 1 用心讨论,共获提升!
ZDavy + 1 + 1 我很赞同!
正己 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

xixicoco 发表于 2023-12-22 22:06
不错,高版本的问题可以解决
kk1024lyl 发表于 2023-12-29 10:22
我竟然没有遇到这种问题,一直用的15、16的frida和objection......没啥影响
wantwill 发表于 2023-12-29 11:56
WXjzc 发表于 2024-1-6 17:23
一直用的15的frida,没遇到objection报错
一片小朵朵 发表于 2024-2-22 17:56
在未root的手机上,安装用objection patchapk的apk并启动后,frida-ps 看不到Gadget进程,objection连接提示
Unable to connect to the frida server: need Gadget to attach on jailed Android; its default location is: C:\Users\xxx\AppData\Local\Microsoft\Windows\INetCache\frida\gadget-android-arm64.so
bilibioo 发表于 2024-3-11 11:27
kk1024lyl 发表于 2023-12-29 10:22
我竟然没有遇到这种问题,一直用的15、16的frida和objection......没啥影响

你的objection是哪一个版本的呢
ShadowJokerN7 发表于 2024-3-11 14:47
虽然没遇到过Objection兼容问题,但还是要学习一下,以后遇到了不至于懵逼。
timel0rd 发表于 2024-3-22 09:55
完美解决我的问题
kk1024lyl 发表于 2024-4-7 13:25
bilibioo 发表于 2024-3-11 11:27
你的objection是哪一个版本的呢

objection: 1.11.0
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-27 18:18

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表