hook消息

This commit is contained in:
hugy 2023-03-23 11:04:58 +08:00
parent b8db52d522
commit 8ea5cbec8a
3 changed files with 12 additions and 24 deletions

View File

@ -1,14 +1,14 @@
3.9.2.23 测试版,临时测试 3.9.2.23 测试版,临时测试
#### 功能预览: #### 功能预览:
<!-- 0.检查是否登录 --> 0.检查是否登录
<!-- 1.获取登录微信信息 --> 1.获取登录微信信息
2.发送文本 2.发送文本
5.发送图片 5.发送图片
6.发送文件 6.发送文件
<!-- 9.hook消息 9.hook消息
10.取消hook消息 10.取消hook消息
11.hook图片 <!-- 11.hook图片
12.取消hook图片 12.取消hook图片
13.hook语音 13.hook语音
14.取消hook语音 14.取消hook语音

View File

@ -10,8 +10,8 @@
using namespace nlohmann; using namespace nlohmann;
using namespace std; using namespace std;
#define WX_RECV_MSG_HOOK_OFFSET 0xca0284 #define WX_RECV_MSG_HOOK_OFFSET 0xd19a0b
#define WX_RECV_MSG_HOOK_NEXT_OFFSET 0x7d5030 #define WX_RECV_MSG_HOOK_NEXT_OFFSET 0x756960
#define WX_SNS_HOOK_OFFSET 0x143ef09 #define WX_SNS_HOOK_OFFSET 0x143ef09
#define WX_SNS_HOOK_NEXT_OFFSET 0x143f1b0 #define WX_SNS_HOOK_NEXT_OFFSET 0x143f1b0

View File

@ -6,24 +6,12 @@
#include "wechat_data.h" #include "wechat_data.h"
using namespace std; using namespace std;
#define WX_SELF_NAME_OFFSET 0x2E2CE48
#define WX_SELF_MOBILE_OFFSET 0x2E2CDB8
#define WX_SELF_CITY_OFFSET 0x2E2CE18
#define WX_SELF_PROVINCE_OFFSET 0x2E2CE00
#define WX_SELF_COUNTRY_OFFSET 0x2E2CDE8
#define WX_SELF_ACCOUNT_OFFSET 0x2e2d1d0
#define WX_SELF_ID_OFFSET 0x2E2CD3C
#define WX_SELF_SMALL_IMG_OFFSET 0x2E2D014
#define WX_SELF_BIG_IMG_OFFSET 0x2E2CFFC
#define WX_LOGIN_STATUS_OFFSET 0x2E2D1C0
#define WX_APP_DATA_ROOT_PATH_OFFSET 0x2E73010
#define WX_APP_DATA_SAVE_PATH_OFFSET 0x2E52DB0
#define WX_CURRENT_DATA_PATH_OFFSET 0x2E4F290
#define WX_LOGOUT_OFFSET 0xdd5c90
#define WX_ACCOUNT_SERVICE_OFFSET 0x707960 #define WX_LOGOUT_OFFSET 0xe58870
#define WX_GET_APP_DATA_SAVE_PATH_OFFSET 0xeb4b00 #define WX_ACCOUNT_SERVICE_OFFSET 0x768c80
#define WX_GET_CURRENT_DATA_PATH_OFFSET 0xc11140 #define WX_GET_APP_DATA_SAVE_PATH_OFFSET 0xf3a610
#define WX_GET_CURRENT_DATA_PATH_OFFSET 0xc872c0
int GetSelfInfo(SelfInfoInner &out) { int GetSelfInfo(SelfInfoInner &out) {
DWORD base = GetWeChatWinBase(); DWORD base = GetWeChatWinBase();
DWORD accout_service_addr = base + WX_ACCOUNT_SERVICE_OFFSET; DWORD accout_service_addr = base + WX_ACCOUNT_SERVICE_OFFSET;