Can frida be used in python to wait for Android app spawn ?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, python
调研方向
从 issue 引用的 frida/core.py 中的 device.spawn()、device.resume()、device.attach() 和 session.create_script() 入手,然后将这些入口点与 frida-trace 的 -W 行为进行比较。完成的标准是:Python workflow、可附加状态的含义,以及 spawn/resume 是否会启动主 activity,都已得到记录或明确回答。
由索引模型根据 Issue 内容生成。
描述
In frida-trace there is a -W option that can be used to await spawn, i.e. one can specify API filter with -j flag for a Android APK and use -W to have frida wait for the app to be started.
In python, I see the following APIs:
https://github.com/frida/frida-python/blob/ebd797e4bc248b8d895d68ebf244a34744cb3ea9/frida/core.py#L821
- device.spawn(package name) and device.resume(pid) --> spawn process to attachable state, resume process from attachable state
- device.attach(pid) --> attach to a process to give session
- session.create_script() --> create a new script
So based on the above, it appears the app has to be started before JS scripts can be added to monitor APIs.
My questions are as follows:
- How is attachable state defined ? Does it mean process has started executing ?
- Is there a way in python to match behavior of the -W flag, i.e. mention which scripts need to be loaded before app process is started, and then start the app process ?
- Does spawn / resume by default starts the main activity of the specified app ?
- 主要语言
- Python
- 星标
- 873
- 派生
- 173
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
frida/frida-python 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
frida/frida-python#265 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
frida/frida-python#262 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
frida/frida-python#247 · 2 条评论 · 2 个 reaction ·
-
After a long period of hooking applications on Ubuntu, Python and JavaScript are unable to interact. 未关闭
难度 4/5 3-5 天 新手友好度 25/100
frida/frida-python#246 ·
-
难度 4/5 3-5 天 新手友好度 20/100
frida/frida-python#243 ·
查看 frida/frida-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
难度 2/5 1-3 小时 新手友好度 70/100
NousResearch/hermes-agent#121143 ·