Hallo,
ich hab jetzt Source kopiert und die addies rein gemacht!
Wie gehts jetzt weiter?
Hab ich hier ein Fehler oder sonst was?
ich hab jetzt Source kopiert und die addies rein gemacht!
Wie gehts jetzt weiter?
Hab ich hier ein Fehler oder sonst was?
Quote:
#include <stdio.h>
#include <windows.h>
#define OFS_NORECOIL1 0x0000001c
#define OFS_NORECOIL2 0x00000020
#define OFS_NORECOIL3 0x00000024
#define ADR_NOSPREAD 0x8AB4C4
#define ADR_SCOPE 0x007CFE84
#define ADR_PLAYERPTR 0x00A69C88
#define ADR_SERVERPOINTER 0x00964A40
DWORD *ingame= (DWORD*)ADR_PLAYERPTR ;
DWORD *megame= (DWORD*)ADR_SERVERPOINTER ;
void NoRecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPTR;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}
void NoSpread ()
{
*(int*)ADR_NOSPREAD = 0;
}
void Scope ()
{
if(GetAsyncKeyState(VK_RBUTTON))
{
*(int*)(ADR_SCOPE) = (int)1;
}
else
{
*(int*)(ADR_SCOPE) = (int)5;
}
}
void HackThread()
{
for(;;)
{
if(*ingame)
{
NoRecoil ();
NoSpread ();
Scope ();
}
if(*megame)
{
}
Sleep(20);
}
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
ShellExecuteA(NULL,"Open","http://*************",NULL,NULL,1);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
break;
case 2:
break;
}
return TRUE;
}