WeChatFerry/Spy/load_calls.cpp

27 lines
792 B
C++
Raw Normal View History

2021-02-12 23:21:57 +08:00
#include <iostream>
#include <map>
#include "load_calls.h"
2022-08-06 16:49:37 +08:00
#define SUPPORT_VERSION L"3.7.0.29"
2021-08-22 21:57:16 +08:00
WxCalls_t wxCalls = {
2022-08-06 16:49:37 +08:00
0x23631D0, // Login Status
2022-08-06 17:26:32 +08:00
{ 0x236307C, 0x23630F4, 0x2363128 }, // User Info: wxid, nickname, mobile
2022-08-06 17:29:37 +08:00
0x521D30, // Send Message
2021-08-22 21:57:16 +08:00
/* Receive Message:
Hook, call, type, self, id, msgXml, roomId, wxId, content */
2022-08-06 17:26:32 +08:00
{ 0x550F4C, 0xA94A50, 0x38, 0x3C, 0x184, 0x1EC, 0x48, 0x170, 0x70 },
2022-08-06 21:44:26 +08:00
{ 0xBD780, 0x770120, 0x521640 } // Send Image Message
2021-08-22 21:57:16 +08:00
};
2021-02-12 23:21:57 +08:00
2021-08-22 21:57:16 +08:00
int LoadCalls(const wchar_t* version, WxCalls_t* calls)
2021-02-12 23:21:57 +08:00
{
2021-08-22 21:15:49 +08:00
if (wcscmp(version, SUPPORT_VERSION) != 0) {
2021-02-12 23:21:57 +08:00
return -1;
}
2021-08-22 21:15:49 +08:00
memcpy_s(calls, sizeof(WxCalls_t), &wxCalls, sizeof(WxCalls_t));
2021-02-12 23:21:57 +08:00
return 0;
}