From befbc0f70ee82555e700a6d68fdc2fa839eec9b0 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 8 Aug 2024 08:53:23 +0800 Subject: [PATCH] 3.9.11.19 --- inc/offset.h | 120 +++++++++++++++++++++++++++++++++++++++ src/wechat_service.cc | 3 +- wxhelper.vcxproj | 2 +- wxhelper.vcxproj.filters | 9 +++ 4 files changed, 132 insertions(+), 2 deletions(-) diff --git a/inc/offset.h b/inc/offset.h index 873af15..ecda5cb 100644 --- a/inc/offset.h +++ b/inc/offset.h @@ -6,6 +6,7 @@ namespace wechat { #define V_3_9_9_43 39943 #define V_3_9_10_19 391019 #define V_3_9_11_19 391119 +#define V_3_9_11_25 391125 #ifndef WECHAT_VERSION #error " WECHAT_VERSION not defined ." #endif @@ -467,6 +468,125 @@ const uint64_t kAddFriend = 0x1f3a350; const uint64_t kVerifyApply = 0x1f3a940; const uint64_t kDoDelContact = 0x2310120; +const uint64_t kGetSearchContactMgr = 0x1f9a730; +const uint64_t kStartSearch = 0x22a4200; +#elif WECHAT_VERSION == V_3_9_11_25 +const uint64_t kGetAccountServiceMgr = 0x1b50d00; +const uint64_t kSyncMsg = 0xc39680; +const uint64_t kSyncMsgNext = 0xc39680; +const uint64_t kGetCurrentDataPath = 0x2248ce0; +const uint64_t kGetAppDataSavePath = 0x25dc0e0; +const uint64_t kGetSendMessageMgr = 0x1b4f500; +const uint64_t kSendTextMsg = 0x22c2010; +const uint64_t kFreeChatMsg = 0x1b50d80; + +const uint64_t kDoAddMsg = 0x230a3e0; +const uint64_t kSendImageMsg = 0x22b77a0; +const uint64_t kChatMsgInstanceCounter = 0x1b59670; +const uint64_t kSendFileMsg = 0x20cb6f0; +const uint64_t kGetAppMsgMgr = 0x1b544a0; +const uint64_t kGetContactMgr = 0x1b3ccd0; +const uint64_t kGetContactList = 0x219a1c0; + +const uint64_t k_sqlite3_exec = 0x3a59b30; +const uint64_t k_sqlite3_prepare = 0x3a617b0; +const uint64_t k_sqlite3_open = 0x3a98fa0; +const uint64_t k_sqlite3_step = 0x3a1db30; +const uint64_t k_sqlite3_column_count = 0x3a1e350; +const uint64_t k_sqlite3_column_name = 0x3a1ed50; +const uint64_t k_sqlite3_column_type = 0x3a1eba0; +const uint64_t k_sqlite3_column_blob = 0x3a1e380; +const uint64_t k_sqlite3_column_bytes = 0x3a1e470; +const uint64_t k_sqlite3_finalize = 0x3a1cbe0; + +const uint64_t kGPInstance = 0x58dd300; +const uint64_t kMultiDBMgr = 0x593abf8; +const uint64_t kPublicMsgMgr = 0x5938198; +const uint64_t kFavoriteStorageMgr = 0x593b790; +const uint64_t kHardLinkMgr = 0x593ab28; + +const uint64_t kChatRoomMgr = 0x1b7f100; +const uint64_t kGetChatRoomDetailInfo = 0x2160bb0; +const uint64_t kNewChatRoomInfo = 0x2505120; +const uint64_t kFreeChatRoomInfo = 0x2505300; +const uint64_t kDoAddMemberToChatRoom = 0x21505b0; +const uint64_t kDoModChatRoomMemberNickName = 0x215a360; +const uint64_t kDelMemberFromChatRoom = 0x2150bf0; +const uint64_t kGetMemberFromChatRoom = 0x2162400; +const uint64_t kNewChatRoom = 0x2502540; +const uint64_t kFreeChatRoom = 0x2502740; + +const uint64_t kTopMsg = 0x1d7d160; +const uint64_t kRemoveTopMsg = 0x2166090; +const uint64_t kInviteMember = 0x214ff90; +const uint64_t kHookLog = 0x1304e60; + +const uint64_t kCreateChatRoom = 0x214fc60; +const uint64_t kQuitChatRoom = 0x215ac00; +const uint64_t kForwardMsg = 0x22c1590; + +const uint64_t kOnSnsTimeLineSceneFinish = 0x1a73150; +const uint64_t kSNSGetFirstPage = 0x2e1bec0; +const uint64_t kSNSGetNextPageScene = 0x2e41a70; +const uint64_t kSNSDataMgr = 0x21dd6b0; +const uint64_t kSNSTimeLineMgr = 0x2dadf20; +const uint64_t kGetMgrByPrefixLocalId = 0x213afb0; +const uint64_t kAddFavFromMsg = 0x2930e40; +const uint64_t kGetChatMgr = 0x1b82bf0; +const uint64_t kGetFavoriteMgr = 0x1b57ba0; +const uint64_t kAddFavFromImage = 0x293d0f0; +const uint64_t kGetContact = 0x21945d0; +const uint64_t kNewContact = 0x2519300; +const uint64_t kFreeContact = 0x25199b0; +const uint64_t kNewMMReaderItem = 0x8c79a0; +const uint64_t kFreeMMReaderItem = 0x8c6da0; +const uint64_t kForwordPublicMsg = 0xddc6c0; +const uint64_t kParseAppMsgXml = 0x11b0a70; +const uint64_t kNewAppMsgInfo = 0x91a550; +const uint64_t kFreeAppMsgInfo = 0x8fd1a0; +const uint64_t kGetPreDownLoadMgr = 0x1c0a3a0; +const uint64_t kPushAttachTask = 0x1cda920; +const uint64_t kGetCustomSmileyMgr = 0x1ca0320; +const uint64_t kSendCustomEmotion = 0x21b04c0; +const uint64_t kNewJsApiShareAppMessage = 0x26cda20; +const uint64_t kInitJsConfig = 0x137bc00; +const uint64_t kSendApplet = 0x13c0920; +const uint64_t kSendAppletSecond = 0x13c1150; +const uint64_t kGetAppInfoByWaid = 0x13c5790; +const uint64_t kCopyShareAppMessageRequest = 0x13c0670; +const uint64_t kNewWAUpdatableMsgInfo = 0x919ca0; +const uint64_t kFreeWAUpdatableMsgInfo = 0x8fc230; +const uint64_t kSendPatMsg = 0x2ca9790; +const uint64_t kGetOCRManager = 0x999780; +const uint64_t kDoOCRTask = 0x2c53910; + +const uint64_t kGetLockWechatMgr = 0x1c85010; +const uint64_t kRequestLockWechat = 0x1c397d0; +const uint64_t kRequestUnLockWechat = 0x1c39a70; + +const uint64_t kOnLoginBtnClick = 0x202bc30; + +const uint64_t kGetQRCodeLoginMgr = 0x201e350; + +const uint64_t kUpdateMsg = 0x21421a0; +const uint64_t kGetVoiceMgr = 0x1e13320; +const uint64_t kChatMsg2NetSceneSendMsg = 0x1b70fd0; +const uint64_t kTranslateVoice = 0x2353d50; +const uint64_t kNewWebViewPageConfig = 0x1b53ae0; +const uint64_t kFreeWebViewPageConfig = 0x1b53d10; +const uint64_t kGetWebViewMgr = 0x1b43950; +const uint64_t kShowWebView = 0x302ed30; +const uint64_t kSetUrl = 0x13dd410; + +const uint64_t kNewPayInfo = 0x1bcd930; +const uint64_t kFreePayInfo = 0x1b92450; +const uint64_t kTransferConfirm = 0x2f8c750; +const uint64_t kTransferRefuse = 0x2f8d340; + +const uint64_t kAddFriend = 0x1f3a350; +const uint64_t kVerifyApply = 0x1f3a940; +const uint64_t kDoDelContact = 0x2310120; + const uint64_t kGetSearchContactMgr = 0x1f9a730; const uint64_t kStartSearch = 0x22a4200; #else diff --git a/src/wechat_service.cc b/src/wechat_service.cc index 6e58ed2..e659605 100644 --- a/src/wechat_service.cc +++ b/src/wechat_service.cc @@ -1506,7 +1506,7 @@ int64_t wechat::WeChatService::SearchContact( (func::__GetSearchContactMgr)search_mgr_addr; func::__StartSearch search = (func::__StartSearch)search_addr; uint64_t mgr = get_mgr(); - //success = search(mgr,&key); + // success = search(mgr,&key); return success; } @@ -1584,6 +1584,7 @@ int64_t wechat::WeChatService::DoRefuseReceipt( memcpy(&pay_info[0x58], &transfer_id, sizeof(transfer_id)); // memcpy(&pay_info[0xA0], &recv_id, sizeof(recv_id)); success = do_refuse(reinterpret_cast(&pay_info), reinterpret_cast(&recv_id)); + free_pay_info(reinterpret_cast(&pay_info)); return success; } diff --git a/wxhelper.vcxproj b/wxhelper.vcxproj index 6a09509..d050655 100644 --- a/wxhelper.vcxproj +++ b/wxhelper.vcxproj @@ -120,7 +120,7 @@ Level3 ProgramDatabase Disabled - stdcpp14 + stdcpp17 inc\nlohmann;inc\tinyxml2;inc\mongoose;inc\lz4;inc\Detours;inc\include;inc\base64;inc;inc\spdlog;%(AdditionalIncludeDirectories) diff --git a/wxhelper.vcxproj.filters b/wxhelper.vcxproj.filters index cebce69..84ba33c 100644 --- a/wxhelper.vcxproj.filters +++ b/wxhelper.vcxproj.filters @@ -72,6 +72,15 @@ Source Files + + Source Files + + + Source Files + + + Source Files +