How to Protect your dll ( Hack )
This is newest how to protect your dll ( hack )
Code:
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
DisableThreadLibraryCalls(hModule);
if (dwReason == DLL_PROCESS_ATTACH) {
CreateThread(0, 0, LoopFunction, 0, 0, 0);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Beginhack, 0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hModule, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "Qmo.dll") <= 0)
{
Sleep(1500);
// system("start C:/Windows/System32/shutdown.exe -s -f -t 00");
ExitProcess(0);
}
}
return TRUE;
}
If dll renamed, then hack will not work
And If
Code:
Sleep(10000); //automatically shut Down
// system("start C:/Windows/System32/shutdown.exe -s -f -t 00");
Then computer will automatically shut Down
This Prevents action of the Leecher
Hopefully useful to all hack makers