吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 161|回复: 5
收起左侧

[Android 求助] frida spawn 注入失败

[复制链接]
boychai 发表于 2025-4-1 19:01
通过简单的直接注入是没问题的,通过spawn就报错
(E:\Environment\conda\frIDA) E:\Android\frida-hook-lab>frida -U SimpleLogin -l src/dlopen.js
     ____
    / _  |   Frida 16.7.3 - 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 MHA AL00 (id=192.234.0.238:5555)

[MHA AL00::SimpleLogin ]-> quit

Thank you for using Frida!

(E:\Environment\conda\frida) E:\Android\frida-hook-lab>frida -U -f SimpleLogin -l src/dlopen.js
     ____
    / _  |   Frida 16.7.3 - 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 MHA AL00 (id=192.234.0.238:5555)
Failed to spawn: the connection is closed

(E:\Environment\conda\frida) E:\Android\frida-hook-lab>frida -U -f SimpleLogin -l src/dlopen.js
     ____
    / _  |   Frida 16.7.3 - 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 MHA AL00 (id=192.234.0.238:5555)
Failed to spawn: the connection is closed

(E:\Environment\conda\frida) E:\Android\frida-hook-lab>frida -U -f com.nctf.simplelogin -l src/dlopen.js
     ____
    / _  |   Frida 16.7.3 - 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 MHA AL00 (id=192.234.0.238:5555)
Failed to spawn: the connection is closed

(E:\Environment\conda\frida) E:\Android\frida-hook-lab>
听说是selinux的问题,我修改也报错,如下
(base) PS C:\Users\BoyChai> adb shell
HWMHA:/ $ su
HWMHA:/ # getenforce
Enforcing
HWMHA:/ # setenforce 0
setenforce: Couldn't set enforcing status to '0': Invalid argument
1|HWMHA:/ # getenforce
Enforcing
HWMHA:/ #
用的是华为mate9,具体信息如下
cbfd6ddde3482c399bb423da59aa7c2.png

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

 楼主| boychai 发表于 2025-4-2 13:26
本帖最后由 boychai 于 2025-4-2 13:29 编辑

问题已经解决,不行的原因应该不是selinux的问题,我这个版本的华为只有刷内核才可以修改selinux,不然都是强制模式。然后frdia尝试退回版本到15.2.2就可以用spawn注入了,大概率是因为frida版本与安卓版本不兼容导致的吧。我在github中也看到了相关问题,具体可以参考连接: https://github.com/frida/frida/issues/3409。
附frida-tools版本
[Shell] 纯文本查看 复制代码
1
pip install frida-tools==11.0.0 -i https://pypi.mirrors.ustc.edu.cn/simple/
y2500004yy 发表于 2025-4-2 00:27
 楼主| boychai 发表于 2025-4-2 10:41

软件检测到frida了吗是这个意思吗... 我去换个软件试试 还是系统检测道frida不让关闭selinux
 楼主| boychai 发表于 2025-4-2 10:50

在软件那块试过了 换软件都不行,用的是吾爱破解的安卓教程demo
lens 发表于 2025-4-2 14:23
boychai 发表于 2025-4-2 13:26
问题已经解决,不行的原因应该不是selinux的问题,我这个版本的华为只有刷内核才可以修改selinux,不然都是 ...

我日牛逼,刚刚遇到
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

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

GMT+8, 2025-4-9 14:52

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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