This commit is contained in:
Yosin-Lenheart 2022-02-06 11:33:52 +08:00
parent dfcb43e818
commit a06f53ffc1
1 changed files with 25 additions and 11 deletions

View File

@ -9,19 +9,12 @@ int Nut头地址;
int ; int ;
int ; int ;
/*
typedef int func(int a,int b); typedef int func(int a,class b);
func* f = (func*)0x1127D60; func* f = (func*)0x1127D60;
*/
typedef int funa();
funa* a = (funa*)0x1127EC0;
void testcall()
{
int num = *(int*)(0x1AEB6E4);
f(num, 0xf);
a();
}
//获取EXE使用头 号位数据 //获取EXE使用头 号位数据
int GetExeNutWrtNum(int Pos) int GetExeNutWrtNum(int Pos)
@ -81,6 +74,27 @@ int GetHook(int Addr , std::string 地址)
return num; return num;
} }
typedef DWORD funa();
funa* a = (funa*)0x1127EC0;
typedef DWORD testc;
testc* tc = (testc*)0x1AEB6E4;
typedef int(__fastcall* sendp)(DWORD thisc, int de, int a);
sendp psendp = (sendp)0x1127D60;
void testcall()
{
psendp(*tc, 0, 0x2D);
a();
}
void ThreadFun(void) void ThreadFun(void)
{ {
while (true) while (true)
@ -101,9 +115,9 @@ void ThreadFun(void)
if (GetExeNutWrtNum(0) == 666) if (GetExeNutWrtNum(0) == 666)
{ {
std::cout << u8"写成功" << std::endl;; std::cout << u8"写成功" << std::endl;;
testcall();
SetExeNutWrtNum(0, 0); SetExeNutWrtNum(0, 0);
SetNutArrNum(20, 0); SetNutArrNum(20, 0);
testcall();
} }
} }
} }