Results 1 to 11 of 11
  1. #1
    ProGamerX's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    124
    Reputation
    9
    Thanks
    20
    My Mood
    Cool

    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.

  2. #2
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    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
    No I do not make game hacks anymore, please stop asking.

  3. #3
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    Your ltclient is wrong I think...differs.t from mine

  4. #4
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    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
    No I do not make game hacks anymore, please stop asking.

  5. #5
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    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]

  6. #6
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    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.
    No I do not make game hacks anymore, please stop asking.

  7. #7
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    Quote Originally Posted by flameswor10 View Post
    Just do
    [ code]
    [ /code] (without spaces)
    makets it easier to read.
    You mean easier to C&P?

  8. #8
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    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.
    No I do not make game hacks anymore, please stop asking.

  9. #9
    ProGamerX's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    124
    Reputation
    9
    Thanks
    20
    My Mood
    Cool
    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.

  10. #10
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    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.
    Last edited by topblast; 03-09-2011 at 06:32 PM.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  11. #11
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Lol @ topblast and the Hex Decimal system