This commit is contained in:
2024-08-05 11:43:14 +08:00
parent b5dbfdf73a
commit 633201acf4
154 changed files with 41915 additions and 127 deletions

View File

@@ -99,18 +99,18 @@ void LenheartThread()
*/
//std::cout << "验证IP:" << ippack << std::endl;
bool In = DNFTOOL::ReqIpLicense(ippack);
//bool In = DNFTOOL::ReqIpLicense(ippack);
//std::vector<std::string> IpArr;
//DNFTOOL::Split(Rqip, IpArr, "->");
std::vector<std::string> IpArr;
DNFTOOL::Split(Rqip, IpArr, "->");
//for (auto it = IpArr.begin(); it != IpArr.end(); ++it) {
// //验证并请求加载脚本
// std::string Iname = *it;
// bool In = DNFTOOL::ReqIpLicense(ippack, Iname);
// //std::cout << Iname << "连接状态:" << In << std::endl;
// if (In)return;
//}
for (auto it = IpArr.begin(); it != IpArr.end(); ++it) {
//验证并请求加载脚本
std::string Iname = *it;
bool In = DNFTOOL::ReqIpLicense(ippack, Iname);
//std::cout << Iname << "连接状态:" << In << std::endl;
if (In)return;
}
return;
@@ -299,8 +299,6 @@ LRESULT CALLBACK LenheartCode(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
BOOL APIENTRY DllMain(HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
@@ -311,50 +309,33 @@ BOOL APIENTRY DllMain(HINSTANCE hModule,
{
case DLL_PROCESS_ATTACH:
{
//LoadLibrary(L"ksfp.dll");
//memcpy((void*)0x00F4AA66, "\xE9\xFA\x02\x00\x00\x90", 6);
//是否加载百级UI
FILE* file = fopen("ImagePacks2/!HUD_Yosin百级UI.NPK", "rb");
if (file)
{
HookHudUi();
}
//是否开启控制台
FILE* file2 = fopen("Xuefeng2_bConsole", "rb");
if (file2)
{
AllocConsole();
SetConsoleTitleA("Lenheart");
//SetConsoleOutputCP(65001);
SetConsoleTitleA("Rindro_Console");
SetConsoleOutputCP(65001);
freopen(("CONOUT$"), ("w"), stdout);
freopen(("CONOUT$"), ("w"), stderr);
freopen(("CONIN$"), ("r"), stdin);
*(BYTE*)0x006FCC7D = 0xEB;//双开jmp
*(BYTE*)0x006FCC7E = 0x09;
*(BYTE*)0x006FCC7F = 0x90;//双开nop
*(BYTE*)0x01122DA1 = 0xEB;//双开jmp
*(BYTE*)0x01162ACC = 0xEB;//双开jmp
}
//是否开启控制台
#ifdef COUTWINDOWS_SWITCH
AllocConsole();
SetConsoleTitle(L"Lenheart");
//SetConsoleOutputCP(65001);
freopen(("CONOUT$"), ("w"), stdout);
freopen(("CONOUT$"), ("w"), stderr);
freopen(("CONIN$"), ("r"), stdin);
*(BYTE*)0x006FCC7D = 0xEB;//双开jmp
*(BYTE*)0x006FCC7E = 0x09;
*(BYTE*)0x006FCC7F = 0x90;//双开nop
*(BYTE*)0x01122DA1 = 0xEB;//双开jmp
*(BYTE*)0x01162ACC = 0xEB;//双开jmp
#endif
hook::RegisterHook();
Lenheart();
break;
}