1 Star 0 Fork 14

vincentlin/frida_wechat_hook

forked from Zhan/frida_wechat_hook 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
receive_message.py 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hoangfuqing 提交于 2021-02-02 17:24 . Add files via upload
import frida
import sys
import codecs
def on_message(message, data):
if message['payload']['wxid2'] is None:
print('[个人消息]: ' + message['payload']['wxid'] + ': ' + message['payload']['content'])
else:
print('[群消息]: ' + message['payload']['wxid'] + ': ' + message['payload']['wxid2'] + ': ' +
message['payload']['content'])
def main(target_process):
session = frida.attach(target_process)
with codecs.open('lib/rev_msg.js', 'r', 'utf-8') as f:
source = f.read()
script = session.create_script(source)
script.on('message', on_message)
script.load()
print("[!] Ctrl+D on UNIX, Ctrl+Z on Windows/cmd.exe to detach from instrumented program.\n\n")
sys.stdin.read()
session.detach()
if __name__ == '__main__':
main('wechat.exe')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vicentlin/frida_wechat_hook.git
git@gitee.com:vicentlin/frida_wechat_hook.git
vicentlin
frida_wechat_hook
frida_wechat_hook
main

搜索帮助