aixed/WeChat-Hook logo

aixed/WeChat-Hook

Free

微信 收发消息功能/ PC微信4.1.9.30接口 微信Hook 微信机器人 微信Hook源码 PC微信协议 PC微信协议算法

FreeFree tier
Type
Open Source

About aixed/WeChat-Hook

WeChat-Hook is an open-source Windows DLL that hooks into the WeChat PC client via a version.dll proxy. It starts a local HTTP server within the WeChat process, exposing APIs for sending text and image messages, forwarding XML messages, decoding images, retrieving the current account profile, and querying the WeChat SQLite database. The tool supports specific WeChat versions (3.9.10.16 and 4.1.10.27) and is designed for developers building WeChat bots or automation tools. It provides comprehensive HTTP endpoints, detailed documentation, and Postman collection for easy integration. The project is maintained on GitHub and is free to use.

Key Features

Hooks into WeChat PC client via version.dll proxy
Local HTTP server on configurable port (default 30001)
Send text and image messages via POST /SendTextMsg and /SendImgMsg
Forward XML messages via POST /ForwardXMLMsg
Decode encrypted image files via POST /Decode_Pic
Retrieve current account profile via POST /GetSelfProfile
Query WeChat SQLite database within process
Supports WeChat versions 3.9.10.16 and 4.1.10.27
Includes Postman collection for easy testing
Open source under GitHub with detailed documentation

Pros & Cons

Pros
  • Free and open source
  • Extensive HTTP API with clear endpoint documentation
  • Supports multiple WeChat versions and provides separate docs
  • Lightweight DLL injection without modifying WeChat executable
  • Includes Postman collection for rapid prototyping
  • Active community and Telegram/QQ support groups
Cons
  • Only works on Windows x64 systems
  • Requires specific WeChat versions (3.9.10.16 or 4.1.10.27)
  • May be flagged by antivirus due to hooking behavior
  • Potential risk of violating WeChat terms of service
  • Limited to local network; no built-in authentication mechanism
  • Requires some technical skill to set up and use

Best For

Building WeChat chatbots for automated repliesAutomating message sending and forwarding in WeChatDecoding and saving WeChat images for analysisExtracting WeChat account profile informationQuerying WeChat chat history and databaseIntegrating WeChat with external automation workflows

FAQ

What WeChat versions does this tool support?
The current main branch targets WeChat 4.1.10.27, but the repository also provides documentation for version 3.9.10.16.
How do I install and use WeChat-Hook?
Download the version.dll from Releases, place it in the WeChat installation directory (e.g., C:\Program Files\Tencent\Weixin), and launch WeChat. The DLL will start an HTTP server on port 30001 by default. Use HTTP clients like Postman to call the endpoints.
What HTTP endpoints are available?
Key endpoints include /SendTextMsg, /SendImgMsg, /ForwardXMLMsg, /Decode_Pic, /GetSelfProfile, and /QueryDB (via SQLite query interface). All are documented in the repository.
Is the tool free?
Yes, it is completely free and open source under the repository aixed/WeChat-Hook.
Can I use this tool to build a WeChat bot?
Yes, the HTTP API allows sending text and images, forwarding messages, and retrieving profile data, making it suitable for building WeChat bots.