GithubHelp home page GithubHelp logo

magicalyu / wechatspy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from celesteqaq/wechatspy

0.0 1.0 0.0 5.51 MB

PC微信Hook逆向程序:Hook到微信消息,然后与Python程序进行交互。

License: Apache License 2.0

C++ 82.64% C 17.36%

wechatspy's Introduction

PC微信Hook:

PC微信Hook逆向程序:Hook到微信消息,然后与Python程序进行交互。

使用教程:

更新日志

1.0.0.8:

  • 增大接收消息的buffer大小,修复接收图文消息出错的bug。

1.0.0.7:

  • 增加self类型说明
  • 增加msg_type类型说明
  • 增加防止Socket通信黏包的分隔符

1.0.0.6:

  • 增加获取用户个人信息的功能。

1.0.0.5:

  • 完善代码逻辑。

1.0.0.4:

  • 增加支持发送中文文本消息的功能。

原因分析:
python的data = json.dumps(data)函数会把data里面的中文以ACSII进行编码,如:
"python server收到" --> "python server\u6536\u5230"
导致python的socket_client.send(data.encode(encoding="utf8"))没有把中文转成对应的utf-8编码,
而是把"python server\u6536\u5230"当成一般的英文字符串进行编码。
最后的data.encode(encoding="utf8")为:b"python server\u6536\u5230"
解决办法:
修改python代码为:data = json.dumps(data, ensure_ascii=False)
最后的data.encode(encoding="utf8")为:b"python server\xe6\x94\xb6\xe5\x88\xb0"

1.0.0.3:

  • 增加Python程序可以向微信发送英文文本信息的功能,暂不支持发送中文。

1.0.0.2:

  • 增加server和client之间的心跳验证功能。

1.0.0.1:

  • 实现了Hook微信收到的文本消息。

作者寄语

  • 本项目为开源项目,若你开发了新的功能,可以pull request给我。

wechatspy's People

Contributors

maoningguan avatar

Watchers

James Cloos avatar

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.