Working PushToConsole and Hook

Posts 114 of 14 · Page 1 of 1
Working PushToConsole and Hook
Hey guys I was just wondering if you guys have a working PushToConsole as this one doesn't work

Code:
//Console Unwrapped
#define ADDR_CONSOLEUNWRAPPED	0x486010

void __cdecl push( const char* cCommand)
{
	void* address = ( void* ) ADDR_CONSOLEUNWRAPPED;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}
I also need a working Hook for the PTC to work. I will surely add you in my credits once Glycerine v1.3 OFFICIAL release. (Not the noob ichiigox whose been leeching Shadow and my work.) Thanks.
#define ADDR_CONSOLEUNWRAPPED (BlaBlaBla)

void PushHack(const char* Command)
{
void* Console = (void*)ADDR_CONSOLEUNWRAPPED;
_asm
{
push Command
mov eax, Console
call eax
add esp, 0x4
}
}
@arun823 it works fine for me
Quote Originally Posted by wicho_koz View Post
#define ADDR_CONSOLEUNWRAPPED (BlaBlaBla)

void PushHack(const char* Command)
{
void* Console = (void*)ADDR_CONSOLEUNWRAPPED;
_asm
{
push Command
mov eax, Console
call eax
add esp, 0x4
}
}
@arun823 it works fine for me
Then how come if I activate a certain hack nothing happens and the game crashes after 2 minutes. Is it because I don't have a hook?
Quote Originally Posted by arun823 View Post
Then how come if I activate a certain hack nothing happens and the game crashes after 2 minutes. Is it because I don't have a hook?
Detours/Hook
Quote Originally Posted by Reflex- View Post


Detours/Hook
That's what I need, a working detour and hook -___-
Quote Originally Posted by arun823 View Post
That's what I need, a working detour and hook -___-
Try learning how they work and then developing one. In all honesty, it isn't even hard.
Quote Originally Posted by arun823 View Post
Hey guys I was just wondering if you guys have a working PushToConsole as this one doesn't work

Code:
//Console Unwrapped
#define ADDR_CONSOLEUNWRAPPED	0x486010

void __cdecl push( const char* cCommand)
{
	void* address = ( void* ) ADDR_CONSOLEUNWRAPPED;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}
I also need a working Hook for the PTC to work. I will surely add you in my credits once Glycerine v1.3 OFFICIAL release. (Not the noob ichiigox whose been leeching Shadow and my work.) Thanks.
this works perfectly.

Make Sure That Your Dllmain is working Along with a hook

make sure you doing the coding right 2

like
push("SkelModelStencil 1"); <--- that is the nx chams PTC
Quote Originally Posted by Teddy-B View Post
this works perfectly.

Make Sure That Your Dllmain is working Along with a hook

make sure you doing the coding right 2

like
push("SkelModelStencil 1"); <--- that is the nx chams PTC
Yea, thanks. I just need a hook and I'm working on that now.
Quote Originally Posted by arun823 View Post
Yea, thanks. I just need a hook and I'm working on that now.
Detour Possibilty - http://www.mpgh.net/forum/207-combat...ions-more.html

And a hook -

Code:
DWORD WINAPI Hook(LPVOID lpArgs)
{
	DWORD dwD3D9 = 0;

	while(!dwD3D9) {
		Sleep(100);
		dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll");
	}

	DWORD dwVTable[2] = { 0 };
	CreateDevice(dwVTable);

	oReset   = (tReset)  DetourCreate((PBYTE) dwVTable[0], (PBYTE) &hkReset, 5);
	oPresent = (tPresent)DetourCreate((PBYTE) dwVTable[1], (PBYTE) &hkPresent, 5);
	
	return FALSE;
}
Thank ME If This Helped
Quote Originally Posted by Teddy-B View Post
Detour Possibilty - http://www.mpgh.net/forum/207-combat...ions-more.html

And a hook -

Code:
DWORD WINAPI Hook(LPVOID lpArgs)
{
	DWORD dwD3D9 = 0;

	while(!dwD3D9) {
		Sleep(100);
		dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll");
	}

	DWORD dwVTable[2] = { 0 };
	CreateDevice(dwVTable);

	oReset   = (tReset)  DetourCreate((PBYTE) dwVTable[0], (PBYTE) &hkReset, 5);
	oPresent = (tPresent)DetourCreate((PBYTE) dwVTable[1], (PBYTE) &hkPresent, 5);
	
	return FALSE;
}
Thank ME If This Helped
There's nothing even close to detours in that link you provided and that's an old public hook which i'm not even sure still works.
Quote Originally Posted by Xipher View Post


There's nothing even close to detours in that link you provided and that's an old public hook which i'm not even sure still works.
The Hook Works Fine On My Teddy-B Public Which is being updated
Quote Originally Posted by Teddy-B View Post
The Hook Works Fine On My Teddy-B Public Which is being updated
Cause you're an aussie i'll let you off the hook, but this teddy b public better be cool
Hooks arent easy to find
I seen 3 already in source on this section. Also try encoding your "commands".
I don't know if you still need this or not but here it is.

Code:
void cHacks::PushCommands(const char* Command)
{
	void* Console = (void*)ADDR_CONSOLEUNWRAPPED;
	_asm
	{
		call get_eip
			push Command
			add eax, 0xF
			push eax
			jmp Console
			add esp, 0x4
	}
	return;
	_asm
	{
get_eip:
		mov eax, [esp]
		sub eax, 5
			ret
	}
}
Credits to master113 or something like that.
Posts 114 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?