I need some help.

Posts 111 of 11 · Page 1 of 1
I need some help.
I been working on a hot key hack. I do not D\C but the hacks will not turn on when I press the hot key in a game I try look at the hook. I did inject right because the message box show and goes to this website when the hacks are injected .if I need to hook the hot keys in a D3D base can some1 show me how to make detours or update detours. here is the source:

Code:
#include <windows.h>
#include <stdio.h>

#define EngLtc 0x004F9E00

bool IsGameReadyForHook()
{
	if( GetModuleHandleA( "d3d9.dll"     ) != NULL
		&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
        && GetModuleHandleA( "CShell.dll"   ) != NULL )
		return true;
	return false;
}
void __cdecl Put_It_IN(char* szVal)
{
	if ( GetModuleHandleA( "CShell.dll"   ) != NULL )
	{
		void* vSetVar = (void*)EngLtc;
		__asm
		{
			mov eax, vSetVar;
			push szVal;
			call eax;
			add esp, 4;
		}
	}
}
void main()
{
	if(*(int*)0x37829B4C == 1){
		{
			bool HackStatus = false;
			while(true)
			{
				if(GetAsyncKeyState(VK_INSERT)<0 && HackStatus == true ){
					Put_It_IN("ShowFps 1");
					Sleep(50);
					Put_It_IN("SkelModelStencil 1" );
					Sleep(50);
					Put_It_IN("FogEnable 0" );
					Sleep(50);
					Put_It_IN("PerturbRotationEffect  0.000000"); 
					Sleep(50);
					Put_It_IN("PerturbIncreaseSpeed 0.000000");
					Sleep(50);
					Put_It_IN("PerturbWalkPercent 0.000000");
					Sleep(50);
					Put_It_IN("PerturbFiringIncreaseSpeed 0.000000");
					Sleep(50);
					memcpy((LPVOID)no recoil1, "\x90\x90\x90", 3);
					Sleep(50);
					memcpy((LPVOID)no recoil2, "\x90\x90\x90", 3);
					Sleep(50);
					memcpy((LPVOID)no recoil3, "\x90\x90\x90", 3);
					Sleep(50);
					memcpy((LPVOID)no recoil4, "\x90\x90\x90", 3);
					Sleep(50);
					memcpy((LPVOID)no recoil5, "\x90\x90\x90", 3);
					Sleep(50);
					memcpy((LPVOID)name tag1, "\x90\x90", 2);
					Sleep(50);
					memcpy((LPVOID)name tag2, "\x90\x90", 2);
					Sleep(50);
				}
				if(*(int*)0x37829B4C == 5){
					{
						bool HackStatus = true;
						while(false)
						{
							if(GetAsyncKeyState(VK_INSERT)<0 && HackStatus == true ){
								Put_It_IN("ShowFps 0");
								Sleep(50);
								Put_It_IN("SkelModelStencil 0" );
								Sleep(50);
								Put_It_IN("FogEnable 1" );
								Sleep(50);
								Put_It_IN("PerturbRotationEffect  3.000000"); 
								Sleep(50);
								Put_It_IN("PerturbIncreaseSpeed 3.000000");
								Sleep(50);
								Put_It_IN("PerturbWalkPercent 9.000000");
								Sleep(50);
								Put_It_IN("PerturbFiringIncreaseSpeed 0.500000");
								Sleep(50);
								memcpy((LPVOID)no recoil1, "\x00\x00\x00", 3);
								Sleep(50);
								memcpy((LPVOID)no recoil2, "\x00\x00\x00", 3);
								Sleep(50);
								memcpy((LPVOID)no recoil3, "\x00\x00\x00", 3);
								Sleep(50);
								memcpy((LPVOID)no recoil4, "\x00\x00\x00", 3);
								Sleep(50);
								memcpy((LPVOID)no recoil5, "\x00\x00\x00", 3);
								Sleep(50);
								memcpy((LPVOID)name tag1, "\x00\x00", 2);
								Sleep(50);
								memcpy((LPVOID)name tag2, "\x00\x00", 2);
							}
						}
					}
				}
			}
		}
	}
}
DWORD WINAPI dwHackThread(LPVOID)
{
	while( !IsGameReadyForHook())
		Sleep(100);
	main();
	return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		if( MessageBox(0, TEXT("Is MPGH #1 ???"), TEXT("ProGamerX`s Hacks"), MB_YESNO)==IDYES)
			system("start https://www.mpgh.net/");
		CreateThread(NULL, NULL,dwHackThread, NULL, NULL, NULL);
	}
	return TRUE;
}
It is noob proof I remove the addresses and change the bytes because of leechers.

Credit topblast for the PTC, flashlight95 for the gamestatus, Departure for the Engine LTC, me and others.
Download a Menu base. Strip it down to it's simple features. Then make hotkey. Thats how my hotkey hack works
Except it overlays shit over the game.

Code:
void RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
	ReCreate(pDevice);
	MenuText(pFont, pDevice);
	if(Hack.Chams && IsIngame()){
		RunConsoleCommand("SkelModelStencil 1" );
	}else{
		RunConsoleCommand("SkelModelStencil 0");
	}
	if(Hack.Fly && IsIngame()){
		if(GetAsyncKeyState(VK_MENU)<0){
			RunConsoleCommand("PlayerGravity 800");
		}else{RunConsoleCommand("PlayerGravity -800.000000");}
	}else{
		RunConsoleCommand("PlayerGravity -800.000000");
	}
	if(Hack.Spread && IsIngame()){
		RunConsoleCommand("PerturbRotationEffect  0.000000"); 
		RunConsoleCommand("PerturbIncreaseSpeed 0.000000"); 
		RunConsoleCommand("PerturbWalkPercent 0.000000"); 
		RunConsoleCommand("PerturbFiringIncreaseSpeed 0.000000");
	}else{
		RunConsoleCommand("PerturbRotationEffect 3.000000");
		RunConsoleCommand("PerturbIncreaseSpeed 3.000000");
		RunConsoleCommand("PerturbDecreaseSpeed 9.000000");
		RunConsoleCommand("PerturbWalkPercent 0.500000");
	}
	if(Hack.ESP && IsIngame()){
		BoxEsp(pDevice);
	}
	// Time stuff
	struct tm * current_tm;
	time_t current_time;
	time (&current_time);
	current_tm = localtime (&current_time);
	sprintf( date,"%02d:%02d:%02d", current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec );
	// Time stuff end
	PrintText( pFont, 3, 3, GREEN, date);
	PrintText( pFont, 1, 20, GREEN, "Flameswor10 Hotkey Menu Hack [v1.0] :: Numpad 1 - 5 to turn hacks On and Off");
	//Hacks Here
	DrawCrosshair(pDevice);
	//Hacks End
}
Like dat
Your ltclient is wrong I think...differs.t from mine
Quote Originally Posted by supercarz1991 View Post
Your ltclient is wrong I think...differs.t from mine
Code:
void __cdecl RunConsoleCommand(const char* cmd)
{
	_asm
	{
		PUSH cmd
		MOV EAX, 0x00485E10
		CALL EAX
		ADD ESP, 0x4
	}
}


My one his one basically the same
Quote Originally Posted by supercarz1991 View Post
Your ltclient is wrong I think...differs.t from mine
because its different from yours(which is not yours but has been posted on the forum) it must be wrong???

You are joking right?

ProGamerX try this

[highlight=c++]
void __cdecl RenameMePTC(const char* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x004F9E00
CALL EAX
ADD ESP, 0x4
}
}
[/highlight]
Quote Originally Posted by Departure View Post
because its different from yours(which is not yours but has been posted on the forum) it must be wrong???

You are joking right?

ProGamerX try this

[highlight=c++]
void __cdecl RenameMePTC(const char* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x004F9E00
CALL EAX
ADD ESP, 0x4
}
}
[/highlight]
Just do
[ code]
[ /code] (without spaces)
makets it easier to read.
Quote Originally Posted by flameswor10 View Post
Just do
[ code]
[ /code] (without spaces)
makets it easier to read.
You mean easier to C&P?
Quote Originally Posted by Departure View Post
You mean easier to C&P?
I guess easier to C+P but you can just always press the "quote" button.
Quote Originally Posted by flameswor10 View Post
Code:
void __cdecl RunConsoleCommand(const char* cmd)
{
	_asm
	{
		PUSH cmd
		MOV EAX, 0x00485E10
		CALL EAX
		ADD ESP, 0x4
	}
}


My one his one basically the same
That will not work.. ONE ASM IS NOT THE SAME PROGRAMMING LANGUAGE AS C++!!!!!!!!!!!!!!!.. YOU GUYS MAKE STUPID MISTAKES ALL THE TIME>... Sorry for raging but even i knew this from the beginin and i dont kno asm
FIX
Code:
void __cdecl RunConsoleCommand(const char* cmd)
{
	_asm
	{
		PUSH cmd
		MOV EAX, 485E10h
		CALL EAX
		ADD ESP, 4h
	}
}


Quote Originally Posted by Departure View Post
because its different from yours(which is not yours but has been posted on the forum) it must be wrong???

You are joking right?

ProGamerX try this

[highlight=c++]
void __cdecl RenameMePTC(const char* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x004F9E00
CALL EAX
ADD ESP, 0x4
}
}
[/highlight]
OMG you with the same problem.. Does these ptc even work or are you guys just copy and pasting.
Mine problem is the detours in a menu base. I do not know how to update them or make them but I can strip down a hack and make a hot key hack. ty for the help.
Lol @ topblast and the Hex Decimal system
Posts 111 of 11 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?