Giter Site home page Giter Site logo

wechatopendevtools-python's Introduction

注意本库只能作为学习用途, 造成的任何问题与本库开发者无关, 如侵犯到你的权益,请联系删除。

注意本库只能作为学习用途, 造成的任何问题与本库开发者无关, 如侵犯到你的权益,请联系删除。

注意本库只能作为学习用途, 造成的任何问题与本库开发者无关, 如侵犯到你的权益,请联系删除。


目录

1. 支持版本列表

2. 如何查看当前运行版本?

3. 食用方法

4. 常见问题


支持版本列表

感谢志远大佬的WeChatOpenDevTool开源 代码只是把node改用python3重写,简单实现了一些自动化问题,重要代码都是原作者的。

Windows 微信版本 小程序版本 是否为最新版
3.9.10.19_x64 9129_x64
3.9.10.19_x64 9115_x64
3.9.10.19_x64 8555_x64
3.9.10.19_x64 9105_x64
3.9.9.43_x64 8555_x64
3.9.9.43_x64 9079_x64
3.9.8.25_x64 8531_x64
3.9.8.25_x64 8529_x64
3.9.8.25_x64 8519_x64
3.9.8.25_x64 8501_x64
3.9.8.25_x64 8461_x64
3.9.8.25_x64 8447_x64

Mac x64微信版本 是否为最新版 x
MacWechat/3.8.8(0x13080811) 点我下载

如何查看当前运行版本?

windows

image

image image

mac

ps aux | grep 'WeChatAppEx' |  grep -v 'grep' | grep  "wmpf-mojo-handle" 

食用方法

开启小程序F12

只支持windows版本微信,运行前先启动微信运行前先启动微信(建议小号,别被封了。。。)

  1. 安装python3版本
  2. 下载WeChatOpenDevTools-Python或直接下载编译好的exe WeChatOpenDevTools_64.exe

安装依赖

pip3  install -r requirements.txt

运行✅

python main.py -x

image image


开启微信内置浏览器F12

python  main.py -c

1709657739316

1709657739316

image


常见问题

Star History

Star History Chart

wechatopendevtools-python's People

Contributors

flamefires avatar javeleyqaq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wechatopendevtools-python's Issues

使用闪退,然后无f12

版本是最新的3.99,小程序版本是9051好像,提示不匹配,我就卸载下旧版本
3.9.8.25 小程序版本8555可以注入了 小程序列表页可以f12但是点进小程序后闪退一下,列表页的f12也没了
升级到最新版wechat 小程序现在依旧8555,但是也依旧闪退 闪退之后就没注入
另外 没有安装任何杀毒软件,自带的win defer也关了
x模式和全开模式都试过了

请求添加微信小游戏的注入功能

目前支持的是微信小程序的注入,希望作者增加一下微信小游戏端的注入

  • 进程名:WeChatPlayer
  • 小游戏版本:4071
  • 微信版本:3.9.10.19

报错

image

您好请问这个是啥情况0.0

无法使用

大佬为什么未找到呢?是因为小程序版本问题吗?
image
image

3.9.10.19 9115 提示成功, 但没有出现 DevTools 按钮

问题描述

3.9.10.19 9115 提示HOOK到, 但没有出现 DevTools 按钮, 所有小程序和网页都没有, 重启微信试了也不行

←[0m
←[92m[+] WeChatAppEx.exe 注入成功! ←[0m
←[92m[+] 当前小程序版本: 9115 ←[0m
←[92m[+] 等待小程序加载... ←[0m
←[92m[+] HOOK到小程序加载! wx9627eb7f4b1c69d5 ←[0m

image

环境信息

  • 操作系统及版本:Windows 10
  • 编程语言和版本:Python 3.10.5

2024年03月03日无法使用

微信版本:3.9.8.25
描述:前一天正常使用的,目前再启动python提示 ”未匹配到版本的微信进程或微信未运行“

发生异常: InvalidArgumentError script(line 18): SyntaxError: parse error

1713666855861
发生异常: InvalidArgumentError
script(line 18): SyntaxError: parse error
File "C:\Users\Administrator\Desktop\WeChatOpenDevTools-Python\utils\commons.py", line 25, in inject_wehcatEx
script = session.create_script(code)
File "C:\Users\Administrator\Desktop\WeChatOpenDevTools-Python\utils\commons.py", line 49, in load_wechatEx_configs
self.inject_wehcatEx(pid, wehcatEx_hookcode)
File "C:\Users\Administrator\Desktop\WeChatOpenDevTools-Python\main.py", line 31, in main
commons.load_wechatEx_configs()
File "C:\Users\Administrator\Desktop\WeChatOpenDevTools-Python\main.py", line 43, in
main()
大佬这个问题有遇到吗

# 是否支持Mac,看readme以为支持mac,实际运行了一下报错

问题描述

python main.py -x
Traceback (most recent call last):
File "/Users/katakuri/Documents/ai/WeChatOpenDevTools-Python/main.py", line 3, in
from utils.commons import Commons
File "/Users/katakuri/Documents/ai/WeChatOpenDevTools-Python/utils/commons.py", line 4, in
from utils.wechatutils import WechatUtils
File "/Users/katakuri/Documents/ai/WeChatOpenDevTools-Python/utils/wechatutils.py", line 1, in
import os,re,winreg
ModuleNotFoundError: No module named 'winreg'

环境信息

  • 操作系统及版本:macOS Sonoma 14.4.1
  • 编程语言和版本:python 3.10
  • 相关库或框架及版本:github源码未做任何修改
  • GitHub 仓库名称和问题相关的代码分支:JaveleyQAQ/WeChatOpenDevTools-Python main分支

复现步骤

  1. 步骤一:git clone [email protected]:JaveleyQAQ/WeChatOpenDevTools-Python.git
  2. 步骤二:cd WeChatOpenDevTools-Python
  3. 步骤三:pip3 install -r requirements.txt
  4. 步骤四:python main.py -x

Traceback (most recent call last):
File "/Users/katakuri/Documents/ai/WeChatOpenDevTools-Python/main.py", line 3, in
from utils.commons import Commons
File "/Users/katakuri/Documents/ai/WeChatOpenDevTools-Python/utils/commons.py", line 4, in
from utils.wechatutils import WechatUtils
File "/Users/katakuri/Documents/ai/WeChatOpenDevTools-Python/utils/wechatutils.py", line 1, in
import os,re,winreg
ModuleNotFoundError: No module named 'winreg'

预期结果

  • 期望正常运行

实际结果

  • ModuleNotFoundError: No module named 'winreg'

其他信息

附加文件

查了下winreg是window下的包,但貌似运行又强依赖的了,所以macos下无法运行

frida拉不起 程序

问题描述

  • 从执行顺序来看,应该是要frida拉起程序,然后执行注入,但是最新的代码来看,始终是无法拉起程序进行注入。
  • 从说明文档看,说是要先启动程序,所以是不是有什么矛盾的地方。

环境信息

  • 操作系统及版本:windows 11
  • 编程语言和版本:python3.12
  • 相关库或框架及版本:例如 Django 3.1.7
  • GitHub 仓库名称和问题相关的代码分支:如果有的话,提供仓库链接和分支信息。
2f2afb8bf97261fc80b7caf6dcad0449

请在提交问题之前,检查您的描述是否清晰、准确,并且提供了足够的信息以便他人理解您的问题。感谢您的合作!

MACOS缺少配置文件

` % ps aux | grep 'WeChatAppEx' | grep -v 'grep' | grep "wmpf-mojo-handle"

marvel 43403 8.1 0.5 444937760 45584 ?? S 2:59PM 0:01.94 /Applications/WeChat.app/Contents/MacOS/WeChatAppEx.app/Contents/MacOS/WeChatAppEx --log-level=2 --lang=en --wechat-files-path=/Users/marvel/Library/Containers/com.tencent.xinWeChat/Data/.wxapplet --no-codecache --product-id=1000 --wechat-sub-user-agent=MicroMessenger/6.8.0(0x16080000) MacWechat/3.8.7(0x13080710) --appshim-flags=7 --client_version=319293200 --bundle-id=5A4RE8SF68.com.tencent.xinWeChat --wmpf-mojo-handle=2992147555`

发现没有相关的版本号,所以分析版本的时候失败。

`marvel@wenmaos-MacBook-Pro WeChatOpenDevTools-Python % python main.py -x
\ \ /\ \ / __ \ __ | |
\ \ \ / \ / | | _ \ \ / | _ \ _ \ | |
\ \ \ / \ | | / \ \ / | ( | ( | |_
_/_/ _/_\ ____/ _
| _/ _|_
/ _
_/ |___/

    公众号: 一位不愿透露姓名的热心网友
    Github:https://github.com/JaveleyQAQ

/Users/marvel/Nutstore Files/programs/WeChatOpenDevTools-Python/utils/wechatutils.py(59)extract_version_number()
-> version_match = re.search(r'"version":(\d+)', str)
(Pdb) p str
'/Applications/WeChat.app/Contents/MacOS/WeChatAppEx.app/Contents/MacOS/WeChatAppEx --log-level=2 --lang=en --wechat-files-path=/Users/marvel/Library/Containers/com.tencent.xinWeChat/Data/.wxapplet --no-codecache --product-id=1000 --wechat-sub-user-agent=MicroMessenger/6.8.0(0x16080000) MacWechat/3.8.7(0x13080710) --appshim-flags=7 --client_version=319293200 --bundle-id=5A4RE8SF68.com.tencent.xinWeChat --wmpf-mojo-handle=2992147555'
(Pdb) c
[-] 未找到匹配版本的微信进程或微信未运行
marvel@wenmaos-MacBook-Pro WeChatOpenDevTools-Python %`

p.s. 代码中win的路径是\,但mac下应该是/。

开启小程序F12功能出现WeChatAppEx已停止工作

问题描述

使用开启小程序F12功能的时候,第一次打开小程序会报如下错误,之后再运行其它小程序,无法检测出来

环境信息

微信:3.9.10.19_x64
小程序:9105_x64
python:3.10

image

image

微信内置浏览器注入容易闪退

微信版本:3.9.9.43
运行命令:python main.py -c
问题:
输入指令后,微信启动到登录界面过会,微信就会闪退了,控制台界面是没有报错的

# 问题标题:search搜索会卡死,一直都搜不出东西

问题描述

  • search搜索不出东西,一直都搜不出东西,我使用2个月之前的版本,search正常可以搜索,我git pull以后,search无法搜索出东西, 不知道什么原因,大佬请赐教。

环境信息

  • 操作系统及版本 :Windows 10
  • 编程语言和版本: Python 3.11.0b4
  • 当前小程序版本: 8555
    WechatIMG32

devtools问题

开启devtools后,

1、使用中文,抓不到包

2、使用搜索功能,一直卡住,无法搜索

注入浏览器会卡死

注入微信浏览器就卡死,重启微信后注入小程序也会提示[-] 未找到匹配版本的微信进程或微信未运行(没有注入浏览器之前是正常的)
微信版本:3.9.9.43
[+] 命令行参数:"D:\Program Files (x86)\Tencent\WeChat[3.9.9.43]\mmcrashpad_handler64.exe" --no-rate-limit --database=C:\Users\tang\AppData\Roaming\Tencent\WeChat\cr
ash --annotation=crash_notify=1 "--annotation=ext_info={"app_call_name":"微信","app_name":"WechatWindows","app_path":"D:\Program Files (x86)\Tencent\WeC
hat\WeChat.exe","dwbuild":"43","log_path":"C:\Users\tang\AppData\Roaming\Tencent\WeChat\crash","major_ver":"3","minor_ver":"0","module_name
":"Wechat_Windows","modules_dir":"D:\Program Files (x86)\Tencent\WeChat\[3.9.9.43]","product":"WECHAT","report_type":"9999","restart_app_cmd":""
,"upload_choice":"3","version":"1661536555"}" --annotation=log_path=C:\Users\tang\AppData\Roaming\Tencent\WeChat\crash --annotation=product=WECHAT --initial-client-data=0x5a0,0x5a4,0x5a8,0x5ac,0x59c,0x5b0,0x7ffae43be3f8,0x7ffae43be438,0x7ffae43be468
[+] 命令行参数:"C:\Users\tang\AppData\Roaming\Tencent\WeChat\XPlugin\Plugins\RadiumWMPF\8555\extracted\runtime\WeChatAppEx.exe" --log-level=0 --xweb-enable-inspect=1
--helper-handle-value=619419332 --wechat-files-path="C:\Users\tang\Documents\WeChat Files\" --product-id=1000 --wechat-sub-user-agent="MicroMessenger/7.0.20.1781(0x
6700143B) WindowsWechat(0x6309092b)" --wmpf_extra_config="{ "reportId":-1, "version":8555, "cmd6@default":"true", "cmd8@default":"true" }" --web-translate --client_version=1661536555 --wmpf-mojo-handle=4112 --helper-handle-value=619419332 --wechat-files-path="C:\Users\tang\Documents\WeChat Files\" --product-id=1000 --wechat-sub-user-agent="MicroMessenger/7.0.20.1781(0x
6700143B) WindowsWechat(0x6309092b)" --wmpf_extra_config="{ "reportId":-1, "version":8555, "cmd6@default":"true", "cmd8@default":"true" }" --web-translate --client_version=1661536555 --wmpf-mojo-handle=4112

# Error: Unable to access process with pid 1452 from the current user account

问题描述

Error: Unable to access process with pid 1452 from the current user account

环境信息

  • 操作系统及版本:macOS Sonoma 14.4.1
  • 编程语言和版本:python 3.10
  • 相关库或框架及版本:无
  • GitHub 仓库名称和问题相关的代码分支:无

复现步骤

  1. 步骤一:下载release包
    https://github.com/JaveleyQAQ/WeChatOpenDevTools-Python/releases/download/0.3.1/WeChatOpenDevTools-macos-x64.zip
  2. 步骤二:ps aux | grep 'WeChatAppEx' | grep -v 'grep' | grep "wmpf-mojo-handle"

katakuri 1452 0.0 0.4 445175952 61680 ?? S 19 424 5:42.04 /Applications/WeChat.app/Contents/MacOS/WeChatAppEx.app/Contents/MacOS/WeChatAppEx --log-level=2 --lang=zh-CN --wechat-files-path=/Users/katakuri/Library/Containers/com.tencent.xinWeChat/Data/.wxapplet --no-codecache --product-id=1000 --wechat-sub-user-agent=MicroMessenger/6.8.0(0x16080000) MacWechat/3.8.7(0x13080712) --appshim-flags=7 --client_version=319293202 --bundle-id=5A4RE8SF68.com.tencent.xinWeChat --wmpf-mojo-handle=3786453881
3. 步骤三:解压执行

/Users/katakuri/Downloads/WeChatOpenDevTools-macos-x64 ; exit;
(base) katakuri@192 ~ % /Users/katakuri/Downloads/WeChatOpenDevTools-macos-x64 ; exit;


\ \ / /\ / / | _ \ _____ | | ___ ___ | |___
\ \ /\ / / \ / | | | |/ _ \ \ / / / _ \ / _ | / |
\ V V / / \ | || | __/\ V /| | | () | () | _
_/_/ //_\ |___/ _| _/ ___
/ _/||/

公众号: 一位不愿透露姓名的热心网友
Github:https://github.com/JaveleyQAQ 

[+] WeChatAppEx 进程PID: 1452
Error: Unable to access process with pid 1452 from the current user account

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

预期结果

  • 期望正常运行

实际结果

Error: Unable to access process with pid 1452 from the current user account

其他信息

附加文件

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.