HelpPushToConsole

Posts 1–6 of 6 · Page 1 of 1
PushToConsole
So, I'm just 'coding' a DLL for shits and giggles, these are the relevant parts:

Code:
void __cdecl PushToConsole(char* Command ) 
{

	DWORD CShell = (DWORD)GetModuleHandleA(EncCShell);
	if( CShell != NULL )
	{
		DWORD *LTClient = ( DWORD* )( (CShell + 0x4C914C) );
		void* CallOffset = ( void* )*( DWORD* )( *LTClient + 0x200 );
		
		_asm
		{
			push Command;
			call CallOffset;
			add esp, 0x4;
		}
	}
}

UINT WINAPI Memory(void *)
{
	while(1)
	{
		if(GetAsyncKeyState(VK_LEFT))
		{
			Beep(1000,250);
			PushToConsole("WireframeModels 1");
		}
	}
	return 0;
}

extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
{
	DisableThreadLibraryCalls(hDLL);

	if(dwReason == DLL_PROCESS_ATTACH)
	{
		MessageBoxA(0,"Hack Injected Successfuly , Using VI simple base","www.mpgh.net",0);
		_beginthreadex(0,0,Memory,0,0,0);
		
	}
	return true;
}
As you guys can see, nothing complex, just PTC... But I have a problem: it injects fine, but when I join a match and push the left arrow, I hear a beep, but shortly after CF just closes(sometimes with the 'Send error report' message). Is it patched or my code is screwed up?
Code:
if(GetAsyncKeyState(VK_LEFT))
{
Beep(1000,250);
		{
			
			PushToConsole("WireframeModels 0");
		}else{
                        PushToConsole("WireframeModels 1");

                    }
}
I think it works well, have not tested.
List of consoles!
http://www.mpgh.net/forum/242-crossf...-commands.html
Hm... I've tested my base with reload and it worked(client error, but at least functioned)... Maybe they patched some PTC commands.
when you got send error report then is your address wrong.. in CFNA is the current address 0x4A4B64 you can find it in text string FogEnable 0
Quote Originally Posted by -[I]fLuX View Post
when you got send error report then is your address wrong.. in CFNA is the current address 0x4A4B64 you can find it in text string FogEnable 0
Уёбищная тупомордная спермоблядская хуета.
Quote Originally Posted by -[I]fLuX View Post
when you got send error report then is your address wrong.. in CFNA is the current address 0x4A4B64 you can find it in text string FogEnable 0
Yeah, I was using the outdated addy, just fired up Olly and got the new one ;-;

I guess I'll release a simple dll with Spy Mode...
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us