111
This commit is contained in:
72
dllmain.cpp
72
dllmain.cpp
@@ -5,47 +5,13 @@
|
||||
|
||||
|
||||
|
||||
void LenheartThread()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
Sleep(10);
|
||||
static int 可开始执行判断;
|
||||
if (DNFTOOL::GetHook(0x1A5FB4C, "0x14+0x28+",0) == 6)
|
||||
{
|
||||
可开始执行判断 = 1;
|
||||
}
|
||||
if (可开始执行判断 == 1)
|
||||
{
|
||||
//获取验证服务器ip
|
||||
std::string Rqip = DNFTOOL::GetIP();
|
||||
//获取用户IP
|
||||
std::string ippack = DNFTOOL::GetUserIp();
|
||||
|
||||
std::vector<std::string> IpArr;
|
||||
DNFTOOL::Split(Rqip, IpArr, "->");
|
||||
|
||||
for (auto it = IpArr.begin(); it != IpArr.end(); ++it) {
|
||||
//验证并请求加载脚本
|
||||
std::string Iname = *it;
|
||||
std::vector<std::string> YmArr;
|
||||
DNFTOOL::Split(Iname, YmArr, "$$");
|
||||
bool In = DNFTOOL::ReqIpLicense(ippack, YmArr[0], YmArr[1]);
|
||||
//std::cout << Iname << "连接状态:" << In << std::endl;
|
||||
if (In)return;
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//初始化入口
|
||||
void Init() {
|
||||
|
||||
|
||||
|
||||
|
||||
//是否加载百级UI
|
||||
FILE* file = fopen("ImagePacks2/!HUD_Yosin百级UI.NPK", "rb");
|
||||
if (file)
|
||||
@@ -73,24 +39,36 @@ void Init() {
|
||||
fclose(file2);
|
||||
}
|
||||
|
||||
//消息框黏贴
|
||||
*(WORD*)0x011C53B0 = 0x01B0;
|
||||
//修复233
|
||||
memcpy((void*)0x00727017, "\xEB\x11\x90\x90\x90\x90\x90", 7);
|
||||
|
||||
////是否是入梦登录器
|
||||
//FILE* mengyiqufile = fopen("mengyiqukey.dll", "rb");
|
||||
//if (mengyiqufile)
|
||||
//{
|
||||
// *(int*)0x400f00 = 11;
|
||||
// fclose(mengyiqufile);
|
||||
|
||||
// std::stringstream Ip;
|
||||
// Ip << static_cast<int>(*(BYTE*)0x400F50) << "."
|
||||
// << static_cast<int>(*(BYTE*)0x400F51) << "."
|
||||
// << static_cast<int>(*(BYTE*)0x400F52) << "."
|
||||
// << static_cast<int>(*(BYTE*)0x400F53);
|
||||
|
||||
// std::cout << *(int*)0x400F50 << std::endl;
|
||||
// std::cout << Ip.str() << std::endl;
|
||||
//}
|
||||
|
||||
|
||||
//注册HOOK
|
||||
RegisterHook();
|
||||
|
||||
#ifdef SELL
|
||||
//多线程验证
|
||||
DWORD threadID;
|
||||
HANDLE Thand = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)LenheartThread, NULL, 0, &threadID);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
__declspec(dllexport) void _cdecl Lenheart()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
BOOL APIENTRY DllMain( HMODULE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
|
||||
Reference in New Issue
Block a user