WeChatFerry/Spy/load_calls.cpp

28 lines
1.1 KiB
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"
2022-08-07 21:08:27 +08:00
WxCalls_t wxCalls = { 0x23631D0, // Login Status
{ 0x236307C, 0x23630F4, 0x2363128 }, // User Info: wxid, nickname, mobile
0x521D30, // Send Message
/* Receive Message:
Hook, call, type, self, id, msgXml, roomId, wxId, content */
{ 0x550F4C, 0xA94A50, 0x38, 0x3C, 0x184, 0x1EC, 0x48, 0x170, 0x70 },
{ 0xBD780, 0x770120, 0x521640 }, // Send Image Message
/* Get Contacts:
Base, head, wxId, Code, Name, Gender, Country, Province, City*/
{ 0x23638F4, 0x4C, 0x30, 0x44, 0x8C, 0x184, 0x1D0, 0x1E4, 0x1F8 } };
2021-02-12 23:21:57 +08:00
2022-08-07 21:08:27 +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;
}