hola a todos.
Intentando seguir el manual de Mazard
http://foro.elhacker.net/hacking_avanzado/paper_inyecciones_dll-t159111.0.html
cuando intento compilar la dll del ejemplo : setwindowshookex, me sale un error:
fatal error C1083: No se puede abrir el archivo incluir: 'setwindowshookex.h': No such file or directory dllmazard
.ccp
#include "setwindowshookex.h"
extern "C"
LRESULT CALLBACK FunHook(int nCode,WPARAM wParam,LPARAM lParam)
{
if (nCode==HCBT_SETFOCUS) //Si obtenemos el foco
{
LoadLibrary("c:\\ladll.dll"); //Cargamos la dll final
}
//En principo además aquí se debería introducir un CallNextHookEx pero así
//nos encargamos en
//cierto modo de que nadie más reciba hooks de nuestro programa
return 0;
}
.h
#include <windows.h>
extern "C"
{
LRESULT CALLBACK FunHook(int nCode,WPARAM wParam,LPARAM lParam);
}
.def
LIBRARY "dllmazard"
DESCRIPTION 'Inyecciones Windows Dynamic Link Library'
EXPORTS
FunHook
Ni que decir tiene,que estoy empezando.
Me podeis echar una mano?