From dfcb43e8184d34ddbcb1f5a0eeca5b5d86322d5e Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Fri, 4 Feb 2022 21:33:44 +0800 Subject: [PATCH] 1123 --- test/dllmain.cpp | 16 +++++++++++----- test/test.vcxproj | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/test/dllmain.cpp b/test/dllmain.cpp index 83cf46f..a3aed63 100644 --- a/test/dllmain.cpp +++ b/test/dllmain.cpp @@ -10,9 +10,18 @@ int 属性头地址; int 可开始执行判断; +typedef int func(int a,int b); +func* f = (func*)0x1127D60; +typedef int funa(); +funa* a = (funa*)0x1127EC0; - +void testcall() +{ + int num = *(int*)(0x1AEB6E4); + f(num, 0xf); + a(); +} //获取EXE使用头 号位数据 int GetExeNutWrtNum(int Pos) @@ -69,11 +78,7 @@ int GetHook(int Addr , std::string 地址) num = *(int*)(num + GetHookArr[z]); } } - - std::cout << num << std::endl; - return num; - } void ThreadFun(void) @@ -98,6 +103,7 @@ void ThreadFun(void) std::cout << u8"写成功" << std::endl;; SetExeNutWrtNum(0, 0); SetNutArrNum(20, 0); + testcall(); } } } diff --git a/test/test.vcxproj b/test/test.vcxproj index 16417d5..64e5514 100644 --- a/test/test.vcxproj +++ b/test/test.vcxproj @@ -73,11 +73,11 @@ true - D:\BaiduNetdiskWorkspace\DOF-Lenheart\Plugins + D:\BaiduNetdiskWorkspace\DOF-Lenheart\Plugins\ false - D:\BaiduNetdiskWorkspace\DOF-Lenheart\Plugins + D:\BaiduNetdiskWorkspace\DOF-Lenheart\Plugins\ true