- Hook通道全量实现: frida_manager(三模式usb/gadget/remote)、hook_executor(30动作)、event_reporter - 微信Hook脚本 v2.1: wechat_hook_v2.js 消息/联系人/好友/群管理/朋友圈 完整RPC - 真机联调验证: ADB通道启动微信/截图/UI树/点击/发消息 全链路通过 - 54项单元测试全绿: test_frida_manager(14) + test_hook_executor(20) + test_hook_module_api(20) - SDK服务端 116 个API端点全部在线 - 开发文档/进度表更新: Phase 2 进度 90%, 整体 88% Made-with: Cursor
23 lines
662 B
Python
23 lines
662 B
Python
"""
|
|
Hook 模块 — Frida 注入通道
|
|
|
|
组件:
|
|
- FridaManager: 管理 Frida 与微信进程的连接
|
|
- HookExecutor: 将 unified 动作映射到 RPC 调用
|
|
- EventReporter: 将 Hook 事件上报到服务端
|
|
|
|
使用:
|
|
from hook import FridaManager, HookExecutor, EventReporter
|
|
|
|
mgr = FridaManager(on_event=reporter.on_hook_event)
|
|
mgr.start()
|
|
executor = HookExecutor(mgr)
|
|
result = executor.execute("send_message", {"to_id": "xxx", "content": "hello"})
|
|
"""
|
|
|
|
from .frida_manager import FridaManager
|
|
from .hook_executor import HookExecutor
|
|
from .event_reporter import EventReporter
|
|
|
|
__all__ = ["FridaManager", "HookExecutor", "EventReporter"]
|