Giter Site home page Giter Site logo

wechatstudy's Introduction

WeChatStudy

StudyWechat,theoretically the following versions are supported:

  • 3.7.6.44
  • 3.8.0.33(建议使用此版本)

The project is for study only, it is prohibited to use it for illegal purposes.

项目仅供学习参考,禁止用于非法用途。

微信安装包:Releases · wechat-windows-versions (github.com)

项目说明

WeChatDLL为核心DLL,用于注入微信,并搭建一个http服务。

WeChatClient为客户端,通过http协议来与WeChatDLL进行交互,使用前需要安装以下python库。

pip3 install pywin32
pip3 install numpy
pip3 install pefile

作者本人并没有使用该项目的需求,因此该项目的代码几乎未进行测试。

微信各个版本下载

API接口说明

接收消息

resp = requests.get("http://127.0.0.1:5000/syncMsg")
print(resp.text)

接收朋友圈消息(不推荐频繁调用)

resp = requests.get("http://127.0.0.1:5000/syncSns")
print(resp.text)

获取通讯录列表

resp = requests.get("http://127.0.0.1:5000/getContactList")
print(resp.text)

获取通讯录

contactList = []
contactList.append("filehelper")
resp = requests.post("http://127.0.0.1:5000/getContactInfo",json = contactList)
print(resp.text)

发送文本消息

data = dict()
data["to_wxid"] = "filehelper"
data["msg"] = "hello wechat"
resp = requests.post("http://127.0.0.1:5000/sendTextMsg", json = data)
print(resp.text)

发送图片

data = dict()
data["to_wxid"] = "filehelper"
data["image_path"] = '''D:\\test.png'''
resp = requests.post("http://127.0.0.1:5000/sendImageMsg", json = data)
print(resp.text)

发送文件

data = dict()
data["to_wxid"] = "filehelper"
data["file_path"] = '''D:\\test.bin'''
resp = requests.post("http://127.0.0.1:5000/sendFile", json = data)
print(resp.text)

wechatstudy's People

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

wechatstudy's Issues

win10 vs2022 protobuf-3.21.12编译一直出错

请问本项目中用的protobuf是哪个版本?

win10 vs2022 protobuf-3.21.12,编译了两天,一直出错!

微信3.7.6.44,请问是否需要特定版本的protobuf才行!

微信3.8.0.33,没找到下载链接。

如果你有微信3.7.6.44、微信3.8.0.33,能否共享下!

把WeChatGUI\WeChatDLL\include\google\protobuf 下的头文件替换成最新版的protobuf头文件,终于可以编译成功了,在在C:\App\WeChat[3.8.0.33]下,生成WeChatDLL.dll、WeChatDLL.exp、WeChatDLL.lib、WeChatDLL.pdb

但是不管是debug、还是release模式,WeChat.exe都加载不了WeChatDLL.dll(已将WeChatDLL.dll复制到微信安装目录,和WeChat.exe同一目录)?不应该在生成WeChatDLL.dll时,同时生成一个WeChat.exe么?

微信登录后程序会崩溃

win10操作系统,visual studio2022 编译运行,3.7.6.44版本微信和3.8.0.33版本在手机授权登录后,微信都会崩溃,经测试发现,

3.7.6.44版注释掉代码
gHook_AccountSvrLogout.AddHook((LPVOID)(hWeChatWinDLL + 0x7240F0), AccountService_logout);
后可以正常进入微信;

3.8.0.33版则需要注释掉
gHook_AccountSvrLogin.AddHook((LPVOID)(hWeChatWinDLL + 0xCC7BC0), AccountService_login);
后可以正常进入微信。

5F88A502-6F20-4CA6-980A-5EFC3BD4E7D6

请问这个UpdateMgr 指的是哪里呢?

微信首先会从WeChatWin.dll中读出版本号,存在到一个全局变量中。
UpdateMgr里面存着一个要更新的微信地址,和全局变量进行对比来判断是否要更新。
请问这个UpdateMgr 指的是哪里呢?

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.