05-02-2016, 04:47 PM
Есть у кого под 273 протокол main.cpp (сурсы rguard)
Или мб кто знает, какое значение в 273 unsigned int startVMT = (unsigned int) hEngine + ????
Или мб кто знает, какое значение в 273 unsigned int startVMT = (unsigned int) hEngine + ????
Код:
unsigned int GetSendPacketAddress(void)
{
HMODULE hEngine = LoadLibraryA("engine.dll");
unsigned int startVMT = (unsigned int) hEngine + 0x51F658;
unsigned int AddNetworkQueue = (unsigned int) GetProcAddress(hEngine, "?AddNetworkQueue@UNetworkHandler@@UAEHPAUNetworkPacket@@@Z");
unsigned int currVMT = startVMT;
if (AddNetworkQueue == 0)
{
return 0;
}
while (true)
{
if (*(unsigned int*) currVMT == AddNetworkQueue)
{
return *(unsigned int*) (currVMT - 0xA4);
}
currVMT++;
if (currVMT - startVMT > 10000)
{
return 0;
}
}
return 0;
}