A tool for playing WeChat. For more introduction, see: WeChatFerry: a tool for playing WeChat.
This tool is only for learning and technical research and may not be used for any commercial or illegal activities, otherwise you will be responsible for the consequences.
The author of this tool does not make any express or implied warranty as to the safety, completeness, reliability, validity, correctness or applicability of this tool, nor any direct or indirect losses or damages resulting from the use or misuse of this tool. any liability, claim, demand or proceeding.
The author of this tool reserves the right to modify, update, delete, or discontinue this tool at any time without prior notice or obligation.
Users of this tool should abide by relevant laws and regulations, respect the copyright and privacy of WeChat, and must not infringe the legitimate rights and interests of WeChat or other third parties, or engage in any illegal or unethical behavior.
When users of this tool download, install, run or use this tool, they are deemed to have read and agreed to this disclaimer. If you have any objection, please stop using this tool immediately and delete all related files.
Python documentation | Python video tutorial | ? FAQ |
---|
WeChatRobot?, a Python robot framework based on WeChatFerry.
![]() | ![]() |
---|---|
Backend reply to WCF group communication | If you find it useful |
pip install --upgrade wcferry
Non-development users do not need to look below.
Development users : People who can solve compilation errors by themselves based on documentation and error prompts.
cd C: T ools
git clone https://github.com/microsoft/vcpkg
. v cpkg b ootstrap-vcpkg.bat
vcpkg
to the environment variable (this article is: C:Toolsvcpkg
): setx VCPKG_ROOT " C:/Tools/vcpkg " /M
vcpkg integrate install # 失败则说明未正确安装或者未正确配置环境变量
It will be installed automatically when compiling. But if you need to use protoc.exe
, you need to configure the protoc.exe
environment variable: <vcpkg_package_installed_path>x64-windows-staticx64-windows-statictoolsprotobuf
.
(This article is: C:ProjsWeChatFerryWeChatFerryvcpkg_installedx64-windows-staticx64-windows-statictoolsprotobuf
)
You can download it yourself through the Microsoft store or python.org (note that the python
version cannot be too high, otherwise you need to compile the dependencies yourself. It is recommended to use python 3.10), and then configure the environment variables to ensure that python
is available on the command line.
Install dependencies:
pip install grpcio-tools==1.48.2
Use VS2019 to open the project and compile. After successful compilation, you will see the corresponding DLL file in the WeChatFerryWeChatFerryOut
directory.
Note : If you encounter a 9009 error when executing protoc
, check whether there is a problem with the python3 environment, or the environment variables of the protoc command are incorrectly configured.
import ctypes
# 加载 sdk.dll (需要绝对路径)
sdk = ctypes . cdll . LoadLibrary ( "C:/Projs/WeChatFerry/WeChatFerry/Out/sdk.dll" )
# 初始化
sdk . WxInitSDK ( False , 10086 )
# 退出 SDK
sdk . WxDestroySDK ()
# 注意关闭 Python 进程
DbgMsg ( "ListenMessage" ); // 封装的 OutputDebugString
OutputDebugString ( L"ListenMessagen" );
MessageBox ( NULL , L"ListenMessage" , L"ListenMessage" , 0 );
WeChatFerry
├── LICENSE # LICENSE
├── README.MD # 说明
├── WeChatFerry
│ ├── WeChatFerry.sln # VS2019 工程文件
│ ├── com # 公共模块
│ ├── rpc # RPC 模块
│ ├── sdk # 注入及启动模块
│ ├── smc # Silk-Mp3 转换模块
│ └── spy # 核心功能实现模块
├── assets
│ ├── QR.jpeg # 二维码,测试用图
│ ├── TEQuant.jpg # 二维码,测试用图
│ └── demo.gif # 示例动图
├── clients
│ ├── go # Go 客户端
│ ├── gohttp # HTTP 客户端
│ ├── http # HTTP 客户端
│ ├── java # Java 客户端
│ ├── node # Node.js 客户端
│ ├── pyauto # 群友封装的客户端
│ ├── python # Python 客户端
│ └── rust # Rust 客户端
└── docs # 文档
There are more and more clients, and the version number becomes confusing, so the version number is redefined: wxyz
.
in:
w
is the large version number of WeChat, such as 37
(3.7.aa), 38
(3.8.aa), 39
(3.9.aa)x
is the adapted minor version number of WeChat, starting from 0y
is the version of WeChatFerry
, starting from 0z
is the version of each client, starting from 03.9.11.25
3.9.10.27
3.9.10.19