#include <windows.h> #define OFS_NoDelay 0x80F694 LPTSTR ModulGame = "lostsaga.exe"; void Ari(void *adr, void *ptr, int size) { DWORD OldProtection; VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection); memcpy(adr,ptr,size); VirtualProtect(adr,size,OldProtection, &OldProtection); } void Jr(void *adr, void *ptr, int size) { DWORD OldProtection; VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection); memcpy(adr,ptr,size); VirtualProtect(adr,size,OldProtection, &OldProtection); } void NotFound(void *adr, void *ptr, int size) { DWORD OldProtection; VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection); memcpy(adr,ptr,size); VirtualProtect(adr,size,OldProtection, &OldProtection); } void WritePointer(unsigned long ulBase, int iOffset, int iValue) { if (!IsBadReadPtr((VOID*)ulBase, sizeof(unsigned long))) { if (!IsBadWritePtr((void*)(*(unsigned long*)ulBase + iOffset), sizeof(unsigned long))) { *(int*)(*(unsigned long*)ulBase + iOffset) = iValue; } } } void LovelyLoopy() { while(1) { if (GetAsyncKeyState(VK_F1)&1) { DWORD adrMin1, adrMin2 = 0; MessageBeep(0); DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe"); if (dwPB > 0) { adrMin1 = dwPB + (DWORD)OFS_WinMode; // your offset here ! Ari,Jr,NotFound((void *)(adrMin1),(void*)(PBYTE)"\x00\x00\x00\x00", 4); } } Sleep(1); } } BOOL APIENTRY DllMain(HINSTANCE hDll, DWORD callReason, LPVOID lpReserved) { DisableThreadLibraryCalls(hDll); if(callReason == DLL_PROCESS_ATTACH) { CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&LovelyLoopy,0, 0, 0); } return 1; }