wechat hook 。支持3.8.0.41,3.8.1.26, 3.9.0.28, 3.9.2.23版本。
Go to file
ttttupup a39dad9e31 feat:群功能 2024-05-07 20:40:29 +08:00
.github/ISSUE_TEMPLATE Update issue templates 2023-04-17 16:35:59 +08:00
app feat:群功能 2024-05-07 20:40:29 +08:00
cmake feat:增加3.9.9.43空实现 2024-04-08 16:06:59 +08:00
doc feat:增加3.9.9.43空实现 2024-04-08 16:06:59 +08:00
.gitignore feat: 3.9.7.29 first commit 2023-10-17 20:53:57 +08:00
.gitmodules 'feat:base' 2024-04-06 11:45:10 +08:00
CMakeLists.txt feat: 3.9.7.29 first commit 2023-10-17 20:53:57 +08:00
LICENSE Create LICENSE 2023-01-10 10:02:56 +08:00
README.md feat:增加3.9.9.43空实现 2024-04-08 16:06:59 +08:00

README.md

wxhelper

wechat hook 。PC端微信逆向学习。

免责声明:

本仓库发布的内容,仅用于学习研究,请勿用于非法用途和商业用途!如因此产生任何法律纠纷,均与作者无关!

项目说明:

本项目是逆向学习项目,可能会造成封号等后果。请自行承担风险。仅用于学习研究,请勿于非法用途。

实现原理:

逆向分析PC端微信客户端定位相关功能关键Call编写dll调用关键Call。然后将该dll文件注入到微信进程。
dll在注入成功时创建了一个默认端口为19088的http服务端然后所有的功能直接可以通过http协议调用。


                                      |----------------
--------------------------    注入    |  WeChat.exe    |
| ConsoleApplication.exe  |————————>  |----------------           --------------    访问      ---------
|                         |           | wxhelper.dll   |————————>| 启动http服务  | <----------| clent |
|--------------------------           |-----------------          --------------              --------    

快速开始:

1.使用注入工具将wxhelper.dll注入到WeChat中。
2.执行

curl --location --request POST '127.0.0.1:19088/api/checkLogin'

即可检查登录状态。 如果已经登录则执行获取登录用户信息

curl --location --request POST '127.0.0.1:19088/api/userInfo'

3.其他更多接口参考相关文档。

参与项目

个人精力和水平有限,项目还有许多不足,欢迎提出 issues 或 pr。

问题讨论

个人常用的方法,请参考https://github.com/ttttupup/wxhelper/wiki
使用上的问题,可查询https://github.com/ttttupup/wxhelper/discussions
数据库解密,请参考https://github.com/ttttupup/wxhelper/wiki
个人精力有限,该项目随缘更新。

编译环境

Visual Studio 2022

Visual Studio code

cmake

vcpkg

编译构建

cd wxhelper/app/3rdparty
git clone https://github.com/microsoft/Detours.git  
git clone https://github.com/gabime/spdlog.git 
git clone https://github.com/nlohmann/json.git 
或者使用vcpkg 安装相应库
vcpkg  install detours:x64-windows 
vcpkg  install nlohmann-json:x64-windows
vcpkg  install spdlog:x64-windows

cd  wxhelper/cmake
copy detours.cmake  wxhelper/app/3rdparty/Detours/CMakeLists.txt

cd wxhelper  
mkdir build  
cd build  
cmake -DCMAKE_C_COMPILER=cl.exe  \
-DCMAKE_CXX_COMPILER=cl.exe \
-DCMAKE_ASM_MASM_COMPILER=ml64.exe \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=${SOURCE_DIR}/wxhelper/install/x64-debug \
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=${VCPKG_INSTALL_DIR}/scripts/buildsystems/vcpkg.cmake \
-SC:${SOURCE_DIR}/wxhelper \
-BC:${SOURCE_DIR}/wxhelper/build/x64-debug\
-G Ninja  
cmake --build ..  

如果有错误按错误提示修正即可。

讨论组

https://t.me/+LmvAauweyUpjYzJl