修改时间容器前

This commit is contained in:
2022-06-20 03:10:33 +08:00
parent ff48fc1d25
commit e17ffc3965
9 changed files with 116 additions and 73 deletions

View File

@@ -8,46 +8,15 @@
#if defined LOCALHOSTS_SWITCH
void LenheartThread(void)
{
// 下方写全局变量
static int Nut头地址;
static int ;
static int ;
while (true)
{
Sleep(10);
if (DNFTOOL::GetHook(0x1A5FB4C, "0x14+0x28+") == 6) = 1;
if ( == 1)//选频道界面 游戏初始化完毕
{
//hook::InitGameScript();
while (true)
{
Sleep(10);
if (DNFTOOL::GetExeNutWrtNum(61) != 0 && Nut头地址 == 0)Nut头地址 = DNFTOOL::GetExeNutWrtNum(61);
//if (GetExeNutWrtNum(61 != 0))属性头地址 = GetExeNutWrtNum(61);
if (DNFTOOL::GetExeNutWrtNum(0) == 666)
{
std::cout << "写成功" << std::endl;;
DNFTOOL::SetExeNutWrtNum(0, 0);
DNFTOOL::SetNutArrNum(Nut头地址 , 20, 0);
}
}
}
}
}
#else
void LenheartThread()
{
while (true)
{
Sleep(10);
static int ;
if (DNFTOOL::GetHook(0x1A5FB4C, "0x14+0x28+") == 6) = 1;
if ( == 1)
{
Sleep(3000);
//获取验证服务器ip
std::string Rqip = DNFTOOL::GetIP();
//std::cout << "验证服务器IP:" << Rqip << std::endl;
@@ -81,7 +50,6 @@ void LenheartThread()
//std::cout << "验证IP:" << ippack << std::endl;
//已经获取了要发送的验证IP
LenheartBase::CBASE64 bb;
ippack += "nima";
std::string rsastring = bb.RsaPriEncrypt(ippack, Pri_key);
@@ -108,30 +76,30 @@ void LenheartThread()
__int64 absnum = abs(nowdate - redate);
if (absnum < 18000)
{
hook::InitGameScript();
return;
Sleep(300000);
}
else
{
//ExitProcess(0);
ExitProcess(0);
}
}
else
{
//ExitProcess(0);
ExitProcess(0);
}
return;
}
}
}
#endif
__declspec(dllexport) void Lenheart()
{
DWORD threadID;
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)LenheartThread, NULL, 0, &threadID);
HANDLE Thand = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)LenheartThread, NULL, 0, &threadID);
//Sleep(300000);
//CloseHandle(Thand);//销毁线程
//return Lenheart();
}
@@ -145,7 +113,6 @@ BOOL APIENTRY DllMain( HMODULE hModule,
{
case DLL_PROCESS_ATTACH:
#if defined COUTWINDOWS_SWITCH
AllocConsole();
freopen(("CONOUT$"), ("w"), stdout);