Foros del Web » Programación para mayores de 30 ;) » C/C++ »

alguien puede explicarme este codigo

Estas en el tema de alguien puede explicarme este codigo en el foro de C/C++ en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 02/06/2008, 14:38
 
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.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:43.