Skip to content

Commit da07270

Browse files
authored
Merge pull request #263 from lich0821/3.9.11.25
Adatp 3.9.11.25
2 parents 5ab489c + af34a15 commit da07270

File tree

18 files changed

+132
-142
lines changed

18 files changed

+132
-142
lines changed

README.MD

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* 发送图片消息
3939
* 发送文件消息
4040
* 发送卡片消息
41+
* 发送 XML 消息
4142
* 发送 GIF 消息
4243
* 拍一拍群友
4344
* 转发消息
@@ -61,6 +62,10 @@
6162

6263
</details>
6364

65+
## 感谢大佬们贡献代码
66+
67+
<a href="https://github.com/lich0821/WeChatFerry/graphs/contributors">![](https://contrib.rocks/image?repo=lich0821/WeChatFerry)</a>
68+
6469
## 快速开始
6570
### Python
6671
[![PyPi](https://img.shields.io/pypi/v/wcferry.svg)](https://pypi.python.org/pypi/wcferry) [![Downloads](https://static.pepy.tech/badge/wcferry)](https://pypi.python.org/pypi/wcferry) [![Documentation Status](https://readthedocs.org/projects/wechatferry/badge/?version=latest)](https://wechatferry.readthedocs.io/zh/latest/?badge=latest)
@@ -97,6 +102,7 @@ pip install --upgrade wcferry
97102
## 一起开发
98103

99104
> 🚫 非开发用户不需要往下看。
105+
>
100106
> **开发用户**:可以根据文档和错误提示,自行解决编译错误的人员。
101107
102108
### 安装开发环境
@@ -202,9 +208,9 @@ WeChatFerry
202208

203209
## 版本更新
204210

205-
### v39.2.4
211+
### v39.3.0
206212

207-
* 修复 wxid 问题
213+
* 适配 `3.9.11.25`
208214

209215
<details><summary>点击查看更多</summary>
210216

@@ -216,6 +222,10 @@ WeChatFerry
216222
* `y``WeChatFerry` 的版本,从 0 开始
217223
* `z` 是各客户端的版本,从 0 开始
218224

225+
### v39.2.4
226+
227+
* 修复 wxid 问题
228+
219229
### v39.2.3
220230

221231
* 实现发送 GIF

WeChatFerry/com/log.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ void InitLogger(std::string path)
1414
if (logger != nullptr) {
1515
return;
1616
}
17-
17+
// check and create logs folder
18+
std::filesystem::path logDir = std::filesystem::path(path) / "logs";
19+
if (!std::filesystem::exists(logDir)) {
20+
std::filesystem::create_directory(logDir);
21+
}
1822
auto filename = std::filesystem::path(path + LOGGER_FILE_NAME).make_preferred().string();
1923
try {
2024
logger = spdlog::rotating_logger_mt(LOGGER_NAME, filename, LOGGER_MAX_SIZE, LOGGER_MAX_FILES);

WeChatFerry/rpc/proto/wcf.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ message XmlMsg
117117
string receiver = 1; // 消息接收人
118118
string content = 2; // xml 内容
119119
string path = 3; // 图片路径
120-
int32 type = 4; // 消息类型
120+
uint64 type = 4; // 消息类型
121121
}
122122

123123
message MsgTypes { map<int32, string> types = 1; }

WeChatFerry/sdk/SDK.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
<PrecompiledHeaderOutputFile />
118118
<SupportJustMyCode>true</SupportJustMyCode>
119119
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
120+
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
120121
</ClCompile>
121122
<Link>
122123
<SubSystem>Windows</SubSystem>

WeChatFerry/spy/Spy.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)..\clients\python\wcferry</Com
192192
<OmitFramePointers>false</OmitFramePointers>
193193
<PrecompiledHeaderOutputFile />
194194
<DisableSpecificWarnings>4251;4731;4819</DisableSpecificWarnings>
195-
<AdditionalOptions>/EHa %(AdditionalOptions)</AdditionalOptions>
195+
<AdditionalOptions>/EHa /utf-8 %(AdditionalOptions)</AdditionalOptions>
196196
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
197197
</ClCompile>
198198
<Link>

WeChatFerry/spy/chatroom_mgmt.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
using namespace std;
1010
extern QWORD g_WeChatWinDllAddr;
1111

12-
#define OS_GET_CHATROOM_MGR 0x1C4E200
13-
#define OS_ADD_MEMBERS 0x221B8A0
14-
#define OS_DELETE_MEMBERS 0x221BEE0
15-
#define OS_INVITE_MEMBERS 0x221B280
12+
#define OS_GET_CHATROOM_MGR 0x1B83BD0
13+
#define OS_ADD_MEMBERS 0x2155100
14+
#define OS_DELETE_MEMBERS 0x2155740
15+
#define OS_INVITE_MEMBERS 0x2154AE0
1616

1717
typedef QWORD (*GetChatRoomMgr_t)();
1818
typedef QWORD (*AddMemberToChatRoom_t)(QWORD, QWORD, QWORD, QWORD);

WeChatFerry/spy/contact_mgmt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
using namespace std;
88
extern QWORD g_WeChatWinDllAddr;
99

10-
#define OS_GET_CONTACT_MGR 0x1C0BDE0
11-
#define OS_GET_CONTACT_LIST 0x2265540
10+
#define OS_GET_CONTACT_MGR 0x1B417A0
11+
#define OS_GET_CONTACT_LIST 0x219ED10
1212
#define OS_CONTACT_BIN 0x200
1313
#define OS_CONTACT_BIN_LEN 0x208
1414
#define OS_CONTACT_WXID 0x10

WeChatFerry/spy/exec_sql.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
#include "sqlite3.h"
66
#include "util.h"
77

8-
#define OFFSET_DB_INSTANCE 0x5A40598
9-
#define OFFSET_DB_MICROMSG 0xb8
10-
#define OFFSET_DB_CHAT_MSG 0x2c8
11-
#define OFFSET_DB_MISC 0x5f0
12-
#define OFFSET_DB_EMOTION 0x15f0
8+
#define OFFSET_DB_INSTANCE 0x5902000
9+
#define OFFSET_DB_MICROMSG 0xB8
10+
#define OFFSET_DB_CHAT_MSG 0x2C8
11+
#define OFFSET_DB_MISC 0x5F0
12+
#define OFFSET_DB_EMOTION 0x15F0
1313
#define OFFSET_DB_MEDIA 0xF48
1414
#define OFFSET_DB_BIZCHAT_MSG 0x1A70
15-
#define OFFSET_DB_FUNCTION_MSG 0x1b98
15+
#define OFFSET_DB_FUNCTION_MSG 0x1B98
1616
#define OFFSET_DB_NAME 0x28
17-
#define OFFSET_DB_MSG_MGR 0x5ABB5D8
17+
#define OFFSET_DB_MSG_MGR 0x595F900
1818

1919
extern UINT64 g_WeChatWinDllAddr;
2020

WeChatFerry/spy/funcs.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ extern QWORD g_WeChatWinDllAddr;
2424
#define HEADER_GIF1 0x47
2525
#define HEADER_GIF2 0x49
2626

27-
#define OS_LOGIN_STATUS 0x5AB86A8
28-
#define OS_GET_SNS_DATA_MGR 0x22A91C0
29-
#define OS_GET_SNS_FIRST_PAGE 0x2ED9080
30-
#define OS_GET_SNS_TIMELINE_MGR 0x2E6B110
31-
#define OS_GET_SNS_NEXT_PAGE 0x2EFEC00
32-
#define OS_NEW_CHAT_MSG 0x1C28800
33-
#define OS_FREE_CHAT_MSG 0x1C1FF10
34-
#define OS_GET_CHAT_MGR 0x1C51CF0
35-
#define OS_GET_MGR_BY_PREFIX_LOCAL_ID 0x2206280
36-
#define OS_GET_PRE_DOWNLOAD_MGR 0x1CD87E0
37-
#define OS_PUSH_ATTACH_TASK 0x1DA69C0
27+
#define OS_LOGIN_STATUS 0x595C9E8
28+
#define OS_GET_SNS_DATA_MGR 0x21E2200
29+
#define OS_GET_SNS_FIRST_PAGE 0x2E212d0
30+
#define OS_GET_SNS_TIMELINE_MGR 0x2DB3390
31+
#define OS_GET_SNS_NEXT_PAGE 0x2EC8970
32+
#define OS_NEW_CHAT_MSG 0x1B5E140
33+
#define OS_FREE_CHAT_MSG 0x1B55850
34+
#define OS_GET_CHAT_MGR 0x1B876C0
35+
#define OS_GET_MGR_BY_PREFIX_LOCAL_ID 0x213FB00
36+
#define OS_GET_PRE_DOWNLOAD_MGR 0x1C0EE70
37+
#define OS_PUSH_ATTACH_TASK 0x1CDF4E0
3838

3939
typedef QWORD (*GetSNSDataMgr_t)();
4040
typedef QWORD (*GetSnsTimeLineMgr_t)();

WeChatFerry/spy/receive_msg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ extern QWORD g_WeChatWinDllAddr;
3131
#define OS_RECV_MSG_THUMB 0x280
3232
#define OS_RECV_MSG_EXTRA 0x2A0
3333
#define OS_RECV_MSG_XML 0x308
34-
#define OS_RECV_MSG_CALL 0x2205510
34+
#define OS_RECV_MSG_CALL 0x2147680
3535
#define OS_PYQ_MSG_START 0x30
3636
#define OS_PYQ_MSG_END 0x38
3737
#define OS_PYQ_MSG_TS 0x38
3838
#define OS_PYQ_MSG_XML 0x9B8
3939
#define OS_PYQ_MSG_SENDER 0x18
4040
#define OS_PYQ_MSG_CONTENT 0x48
41-
#define OS_PYQ_MSG_CALL 0x2EFAA10
42-
#define OS_WXLOG 0x26DA2D0
41+
#define OS_PYQ_MSG_CALL 0x2E42C90
42+
#define OS_WXLOG 0x2613D20
4343

4444
typedef QWORD (*RecvMsg_t)(QWORD, QWORD);
4545
typedef QWORD (*WxLog_t)(QWORD, QWORD, QWORD, QWORD, QWORD, QWORD, QWORD, QWORD, QWORD, QWORD, QWORD, QWORD);

0 commit comments

Comments
 (0)