Unable to spawn Android process when use python API in subprocess
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, python
- 领域
- api, mobile-dev
调研方向
从提供的 start_dump_dex multiprocessing 示例和 device.spawn([package_name]) 调用开始,然后检查附加后如何加载 DumpDex.js。使用所示的包名重现 Android 进程生成失败,并确定 Python API 是否支持这种用法;记录结果或隔离出一个可复现的修复方案。
由索引模型根据 Issue 内容生成。
描述
I want to hook Android process in subprocess, but when I use frida python API to do so , code below will stop on ' pid = device.spawn([package_name])'
import os
import sys
import traceback
from multiprocessing import Process
import frida
def start_dump_dex(package_name):
def on_message(message, data):
if message['type'] == 'send':
print(message['payload'])
else:
print(message)
try:
device = frida.get_usb_device()
pid = device.spawn([package_name])
session = device.attach(pid)
script = session.create_script(open(os.getcwd()+'/../hook/DumpDex.js').read())
script.on('message', on_message)
script.load()
device.resume(pid)
sys.stdin.read()
except Exception as e:
traceback.print_exc()
process = Process(target=start_dump_dex, args=('com.acadsoc.talkshow',))
process.start()
Does python API not support this usage?
- 主要语言
- 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
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·