Hi,
Man kann auf 32bit Systemen ja die WriteProcessMemory, OpenProcess usw...
nicht benutzen, weil das Hackshield das ja blockt deswegen hab ich lange zeit Dll hacks gemacht. Doch die gehen jetzt auch nicht mehr sobald ich auf den Speicher zugreife Crashed es.Die ganzen VirtualProtects sind nur zum testzweck, aber war auch nur ein kläglicher Versuch.
mfg Lazeboy
Man kann auf 32bit Systemen ja die WriteProcessMemory, OpenProcess usw...
nicht benutzen, weil das Hackshield das ja blockt deswegen hab ich lange zeit Dll hacks gemacht. Doch die gehen jetzt auch nicht mehr sobald ich auf den Speicher zugreife Crashed es.Die ganzen VirtualProtects sind nur zum testzweck, aber war auch nur ein kläglicher Versuch.
Code:
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
bool bHack = false;
char buf[100];
DWORD lol = 0;
void Hack()
{
hProc = GetCurrentProcess();
if(GetAsyncKeyState(VK_F1)&1)
{
DWORD old;
DWORD Pointer = 0;
VirtualProtect((DWORD*)0x007C0460,4,PAGE_READWRITE,&old);
memcpy(&Pointer,(DWORD*)0x007C0460,4);
VirtualProtect((DWORD*)0x007C0460,4,old,&old);
VirtualProtect((DWORD*)(Pointer + 0x0),4,PAGE_READWRITE,&old);
memcpy(&Pointer,(DWORD*)(Pointer + 0x0),4);
VirtualProtect((DWORD*)(Pointer + 0x0),4,PAGE_READWRITE,&old);
VirtualProtect((DWORD*)(Pointer + 0x68),4,PAGE_READWRITE,&old);
memcpy(&Pointer,(DWORD*)(Pointer + 0x68),4);
VirtualProtect((DWORD*)(Pointer + 0x68),4,PAGE_READWRITE,&old);
VirtualProtect((DWORD*)(Pointer + 0xa58),4,PAGE_READWRITE,&old);
memcpy(&Pointer,(DWORD*)(Pointer + 0xa58),4);
VirtualProtect((DWORD*)(Pointer + 0xa58),4,PAGE_READWRITE,&old);
VirtualProtect((DWORD*)(Pointer + 0x28),4,PAGE_READWRITE,&old);
memcpy(&Pointer,(DWORD*)(Pointer + 0x28),4);
VirtualProtect((DWORD*)(Pointer + 0x28),4,PAGE_READWRITE,&old);
VirtualProtect((DWORD*)(Pointer + 0x90),4,PAGE_READWRITE,&old);
memcpy(&Pointer,(DWORD*)(Pointer + 0x90),4);
VirtualProtect((DWORD*)(Pointer + 0x90),4,PAGE_READWRITE,&old);
sprintf(buf,"0x%x",Pointer);
MessageBox(0,buf,0,0);
}
}
DWORD WINAPI LoopFunction( LPVOID lpParam )
{
while(1)
{
Hack();
Sleep(100);
}
}
BOOL WINAPI DllMain( HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
CreateThread(0,0,&LoopFunction,0,0,0);
}break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}