Dear All,
Long time no see, i have many real life bussiness..
I now i want to share, dll hack base that i've finished last day..
Code:
#include <windows.h>
#include <stdio.h>
#ifdef COMPILE_MYLIBRARY
#define MYLIBRARY_EXPORT __declspec(dllexport)
#else
#define MYLIBRARY_EXPORT
#endif
class MYLIBRARY_EXPORT ClassHack{
//OFFSET GAME HACK
#define OneHitCSD 0x0000
public :
static DWORD WINAPI MainHack(LPVOID param){
LPCSTR ModulGame = "gamename.exe";
while(true) // Always run (working like Freeze on CE
{
if (GetAsyncKeyState(VK_F1)&1) { // activated when press F1
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(ModulGame);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)OneHitCSD;
EditMemory((void *)(adrMin1),(void*)(PBYTE)"\x4D\x49\x4e", 3);//4d494e
}
}
Sleep(50);
}
};
private :
static void EditMemory (void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,OldProtection, &OldProtection);
}
};
extern "C"
BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(module);
MessageBoxA(NULL,"Created By Nephilim@dremnant / emoisback@progamercity","D'Remnant & ProgamerCity",MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)LostSaga::ClassHack, 0, 0, 0);
}
return TRUE;
}
After you compile it, u will have 1 DLL, that u can try use injector out there or your own injector to inject dll to game process, and kick game ass..