game crashes when injected......

Posts 1–10 of 10 · Page 1 of 1
game crashes when injected......
hi sir, can i ask question?????, when i injected this to a game it crashes????
maybe there is a wrong?????
help me please????
base address = 00087454
offsets= 60, 0, 24, 4

Code:
#include <Windows.h>


void mine()
{
	if (GetAsyncKeyState(VK_NUMPAD1)&1)	

	{
        Beep(512, 100);
		
		MessageBoxA(0,"HaCk AcTiVaTeD","sUcCsEs!!!",0);
	*(float*)(0x00087454+0x60+0x0+0x24+0x4)=0;
	}
	
	
	else
	{
		Beep(612, 100);
		MessageBoxA(0,"FaIlEd","HaCk NoT aCtIvAtEd!!!",0);
		DLL_PROCESS_DETACH;

	}
		if (GetAsyncKeyState(VK_NUMPAD2)&1)	
	{
        Beep(512, 100);
		MessageBoxA(0,"HaCk DeAcTiVaTeD","sUcCsEs!!!",0);
			*(float*)(0x00087454+0x60+0x0+0x24+0x4)=true;
		}
	
	
}
void huk()
{
	GetModuleHandleA("MineSweeper.exe");
}


BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	DisableThreadLibraryCalls(hDll);
	if (dwReason == DLL_PROCESS_ATTACH)
	{ 
//MessageBoxA(0,"D3d HaCk","ShEn LeI lIaNg", MB_OK); 
//CreateThread(0,0,0,huk,0,0);
CreateThread(0,0,0,mine,0,0);

	}	
	return TRUE;
}
advance thanks to whom will help on me ^_^

and also, i have a cheat engine source beta, but its detected, can someone help me make the strings undetected?????, the compiler is lazarus, the same with delphi but somethin differs in it.............
What is that?
*(float*)(0x00087454+0x60+0x0+0x24+0x4)=true;
1. You are trying to write to the address 874DC (0x00087454+0x60+0x0+0x24+0x4)
2. Float != Bool

3. Why do you want to check if hotkeys are pressed in a thread which closes after the first check?
Quote Originally Posted by derh.acker View Post
What is that?
*(float*)(0x00087454+0x60+0x0+0x24+0x4)=true;
1. You are trying to write to the address 874DC (0x00087454+0x60+0x0+0x24+0x4)
2. Float != Bool

3. Why do you want to check if hotkeys are pressed in a thread which closes after the first check?
4. WTF DLL_PROCESS_DETACH;
What i love is that he is trying to hack MineSweeper and this game is Crossfire ....
hahaha, i posted it here cause i know the pro coder are in here ^_^
it is a multi level pointer...
base address = 00087454
offsets= 60, 0, 24, 4
and i want to freeze the value to 0....
but it crashes when injected to game...
(MineSweeper)
im sorry, im not good in coding at all, can you help me to finish that minesweeper cheat?????? ^_^
can you re arrange the codes????
The address & offsets are not from mine, it's your. So figure it out yourself if this doesn't work.
Code:
#include <Windows.h>

#define hackaddy 0x87454

void minesweeper()
{
	HWND Game = FindWindowA(NULL, "MineSweeper");

	//offsets
	DWORD offset4 = *((DWORD*)hackaddy) + 0x60;
	DWORD offset3 = *((DWORD*)offset4 ) + 0x0; 
	DWORD offset2 = *((DWORD*)offset3 ) + 0x24;
	DWORD offset1 = *((DWORD*)offset2 ) + 0x4;

	for(;;Sleep(25))
	{
		if(Game != NULL)
		{
			if(GetAsyncKeyState(VK_F11) &1)
			{
				Beep(512, 100);
				MessageBoxA(0,"HaCk AcTiVaTeD","sUcCsEs!!!",0);
				*(float*)offset1 = 0.0f;
			}
			
			if (GetAsyncKeyState(VK_F12) &1)	
			{
				Beep(512, 100);
				MessageBoxA(0,"HaCk DeAcTiVaTeD","sUcCsEs!!!",0);
				*(float*)offset1 = 1.0f;
			}
		}
		else
		{
			Beep(612, 100);
			MessageBoxA(0,"FaIlEd","HaCk NoT aCtIvAtEd!!!",0);
			//ExitProcess(0);
		}
	}
}

BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	DisableThreadLibraryCalls(hDll);

	if (dwReason == DLL_PROCESS_ATTACH)
	{
		CreateThread(0,0,0,minesweeper,0,0);
	}	
	return TRUE;
}
I suggest you to visit here instead: C++/C Programming - MPGH - MultiPlayer Game Hacking
Hi, this is my first time doing it, he is my base.
I just do not understand why I get the X-Trap popin up saying abnormal memory access. I used ur logger to log the addys and offsets, but it didnt show the
WeaponMgr so I had to google it and i found this latest one. and confirmed it from CShell
but I really do not understand why X-Trap pops up

#include "windows.h"
#define WeaponMgr 0xAB2940
#define NoRecoil1 0x53C
#define NoRecoil2 0x6A4
#define NoRecoil3 0x1958
#define NoRecoil4 0x1964
#define NoRecoil5 0x1FC0
#define NoRecoil6 0x2128
#define NoRecoil7 0x2290
using namespace std;

DWORD WINAPI hack1(LPVOID param) {
bool noreload = true;
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD Wapenclass = *(PDWORD)(CShell + WeaponMgr);

int main();

if(noreload) {
for(int i=0 ; i<600 ; i++) {
for(int y = 0; y<10; y++)
{
DWORD curwapen = *(DWORD*)(Wapenclass +(4*i));
if (curwapen) {
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil2) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil3) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil4) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil5) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil6) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil7) = 0.0f;
}
}
}
}
return true;
}

BOOL WINAPI test1(LPVOID) {
Sleep(9800);
try {
DWORD dllfile = (DWORD)GetModuleHandleA("CShell.dll");
if(dllfile == false) {
throw 1;
}
}
catch (int error) {
switch(error) {
case 1:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)test1, NULL, NULL, NULL);
return false;
default:
return true;
}
}
Beep(1000,1000);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hack1, NULL, NULL, NULL);
return true;
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us