Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/06/2008, 14:38
xsmilex83
 
Fecha de Ingreso: mayo-2008
Mensajes: 31
Antigüedad: 16 años
Puntos: 0
alguien puede explicarme este codigo

Alguien puede explicarme como compilar y entender este codigo??

Cita:
the code in blue is what you are looking for. So you hook that and ur offset is this 0x4DD7C notice where its found in the sub.

so hooking it is quite easy

Code:

Código:
int(*teh_Bypass)( int a1, size_t Count, char *Dest );
int Bypass_Hook( int a1, size_t Count, char *Dest )
{

//Your log code goes here.
	return orig_Bypass(a1,Count,Dest);
}
then in load library like so just call your function.

Code:

Código:
teh_Bypass		=	(int (__cdecl *)(int,size_t,char *))DetourFunction( ( PBYTE )pBase + 0x4DD7C,	( PBYTE )Bypass_Hook );
		__asm mov [ teh_Bypass ], eax;
all credits go to okiedokie i just updated from where he left off enjoy.