Return Address Logger

Posts 31–45 of 76 · Page 3 of 6
Quote Originally Posted by why06 View Post
Sounds like a bad hook. Or your not rendering. insert:
Code:
MessageBoxA(NULL,"","",MB_OK);
Into your hooked function. If the messagebox pops up, it means ur hooking successfully.
will do. brb


EDIT: Back. @why06 I put that in hook and it appears. So its somethin wrong with my endscene probs..
Well if it appears it means ur hooking endscene correctly, so its a problem with ur rendering. Perhaps you have the wrong D3DDevice.
Quote Originally Posted by why06 View Post
Well if it appears it means ur hooking endscene correctly, so its a problem with ur rendering. Perhaps you have the wrong D3DDevice.
I put it in endscene and it didnt work and then I put it in the HOOK and it worked... so its endscene... idk what to do..

@Hell_Demon

Its midfunction.
Are you doing a midfunction hook?
Then you're probably too far in(rendering after everything is locked again)
Try doing a midfunction on beginscene
I'm sending my source to whit. That's all I'm sending it to.
i mean the text doesn't show up
Code:
void Hook()
{	
	DWORD D3DBase = (DWORD)GetModuleHandleA("d3d9.dll");

	while(!D3DBase);
	DevPtr = FindPattern(D3DBase, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");

	if(DevPtr){
		memcpy(&vTable,(void *)(DevPtr+2),4);
		oReset   = (tReset)   DetourFunction((PBYTE)vTable[16],(PBYTE)hkReset );
		oEndScene = (tEndScene)DetourFunction((PBYTE)vTable[42],(PBYTE)nEndScene);
		oDrawIndexedPrimitive = ( tDrawIndexedPrimitive ) DetourFunction(( PBYTE ) vTable[82], ( PBYTE ) &hkDrawIndexedPrimitive );
		oSetStreamSource = ( tSetStreamSource ) DetourFunction(( PBYTE ) vTable[100], ( PBYTE ) &hkSetStreamSource );

	}
}

Code:
DWORD D3DBase = (DWORD)GetModuleHandleA("d3d9.dll");

	while(!D3DBase);
	DevPtr = FindPattern(D3DBase, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
will bug up if d3d9.dll wasnt loaded when Hook was called :P
Quote Originally Posted by Alessandro10 View Post
Thanks for the Source
You are welcome.
do anyone of you know how to make an address logger for warrock PH
Oh damn! YES! SP Chams! FUCK EPIC!
/Thanked.
Quote Originally Posted by user590177 View Post
Oh damn! YES! SP Chams! FUCK EPIC!
/Thanked.
ahahahaha .
Posts 31–45 of 76 · Page 3 of 6

Post a Reply

Tags for this Thread

None

Talk with us