Bom dia !!!
A uns dias eu estava fazendo um hack para SuddenAttack, mais não tive sucesso na hora de ativar o hack, toda vez que eu ativo a gameguard detecta, gostaria de pedir a ajuda de vocês !!!!
O hack que eu fiz é WeaponHack !!
Code:
#include <Windows.h>
//Pointer das armas
#define pointerArma 0xA68F80
//função que dará a arma para o players
DWORD __stdcall Principal(LPVOID) {
bool armaHack = false,
armaHack1 = false
;
DWORD CShell = (DWORD) GetModuleHandleA ("CShell.dll");
DWORD pointerarma = *(PDWORD)(CShell + pointerArma);
while(1) {
DWORD* scout = (DWORD *) ((*(DWORD*) (CShell + pointerArma)) +17*4);
DWORD* m12 = (DWORD *) ((*(DWORD*) (CShell + pointerArma)) +608*4);
if (GetAsyncKeyState (VK_F1)) {
armaHack1 = 0;
armaHack = 1;
}
if (armaHack) {
int i = 1;
for(; i <= 9556; ++i)
*(DWORD*)( scout + i ) = *(DWORD*)(m12 + i);
}
}
}
}
bool hookSuddenAttack () {
return GetModuleHandleA ("CShell.dll") != NULL ? true : false;
}
DWORD WINAPI Wait (LPVOID)
{
while (! hookSuddenAttack ()) Sleep (200);
CreateThread (NULL, NULL, (LPTHREAD_START_ROUTINE) Principal, NULL, NULL, NULL);
return 0;
}
//carregar a dll para dentro do jogo
int __stdcall DllMain(HMODULE hModule,DWORD dwReason,LPVOID lpvReserved)
{
static int jaExecutado = 0;
if (! jaExecutado) {
DisableThreadLibraryCalls(hModule);
CreateThread(NULL,NULL,&Wait,NULL,NULL,NULL);
jaExecutado = 1;// o arquivo foi injetado com sucesso
MessageBeep (MB_OK);
MessageBoxA(0, "Criado por: Ryder'\n\nSkyper: iryder10", "WeaponHack Injetado com Sucesso", 0);
}
return TRUE;
}
Por favor ajude-me