文件名称:HookCode
- 所属分类:
- 系统编程
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 70kb
- 下载次数:
- 0次
- 提 供 者:
- Massac*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VC++写的APIHook实例源代码,大致翻了一下,只挂引入表的函数,注入有SetWindowHookEx和CreateRemoteThread两种方式,进程枚举也区分了不同系统下使用的psai和toolhelp,另外为了获得Process的创建消息,做了一个驱动来注册回调函数,总的来说,在注入部分做得相当棒,如果想挂各种函数,可以结合detour使用。-VC++ to write the source code examples APIHook generally turned a bit, only linked to the introduction of the function table, there SetWindowHookEx and CreateRemoteThread into two ways, the process of enumeration to distinguish between the different systems are used psai and toolhelp, the other in order to obtain Process the creation of news, so a drive to register a callback function, in general, has done quite a part in the injection rod, if you want to hang a variety of functions can be combined with the use of detour.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
HookCode
........\Common
........\......\Common.h
........\......\CustomMessages.h
........\......\IniFile.cpp
........\......\IniFile.h
........\......\LockMgr.cpp
........\......\LockMgr.h
........\......\LogFile.h
........\......\ModuleInstance.cpp
........\......\ModuleInstance.h
........\......\SysUtils.h
........\HookSrv
........\.......\ApplicationScope.cpp
........\.......\ApplicationScope.h
........\.......\HookSrv.cpp
........\.......\HookSrv.dsp
........\.......\HookSrv.h
........\.......\HookSrv.plg
........\.......\HookSrv.rc
........\.......\LimitSingleInstance.cpp
........\.......\LimitSingleInstance.h
........\.......\MainFrm.cpp
........\.......\MainFrm.h
........\.......\res
........\.......\...\HookSrv.rc2
........\.......\...\trayicon.ico
........\.......\Resource.h
........\.......\StdAfx.cpp
........\.......\StdAfx.h
........\.......\TrayIcon.cpp
........\.......\TrayIcon.h
........\HookSystem.dsw
........\HookTool
........\........\ApiHook.cpp
........\........\ApiHook.h
........\........\HookTool.cpp
........\........\HookTool.def
........\........\HookTool.dsp
........\........\Injector.cpp
........\........\Injector.h
........\........\Interlocked.h
........\........\ModuleScope.cpp
........\........\ModuleScope.h
........\........\NtDriverController.cpp
........\........\NtDriverController.h
........\........\NtInjectorThread.cpp
........\........\NtInjectorThread.h
........\........\NtProcessMonitor.cpp
........\........\NtProcessMonitor.h
........\NTProcDrv
........\.........\NTProcDrv.c
........\.........\NTProcDrv.dsp
........\TestApp
........\.......\TestApp.cpp
........\.......\TestApp.dsp
........\Common
........\......\Common.h
........\......\CustomMessages.h
........\......\IniFile.cpp
........\......\IniFile.h
........\......\LockMgr.cpp
........\......\LockMgr.h
........\......\LogFile.h
........\......\ModuleInstance.cpp
........\......\ModuleInstance.h
........\......\SysUtils.h
........\HookSrv
........\.......\ApplicationScope.cpp
........\.......\ApplicationScope.h
........\.......\HookSrv.cpp
........\.......\HookSrv.dsp
........\.......\HookSrv.h
........\.......\HookSrv.plg
........\.......\HookSrv.rc
........\.......\LimitSingleInstance.cpp
........\.......\LimitSingleInstance.h
........\.......\MainFrm.cpp
........\.......\MainFrm.h
........\.......\res
........\.......\...\HookSrv.rc2
........\.......\...\trayicon.ico
........\.......\Resource.h
........\.......\StdAfx.cpp
........\.......\StdAfx.h
........\.......\TrayIcon.cpp
........\.......\TrayIcon.h
........\HookSystem.dsw
........\HookTool
........\........\ApiHook.cpp
........\........\ApiHook.h
........\........\HookTool.cpp
........\........\HookTool.def
........\........\HookTool.dsp
........\........\Injector.cpp
........\........\Injector.h
........\........\Interlocked.h
........\........\ModuleScope.cpp
........\........\ModuleScope.h
........\........\NtDriverController.cpp
........\........\NtDriverController.h
........\........\NtInjectorThread.cpp
........\........\NtInjectorThread.h
........\........\NtProcessMonitor.cpp
........\........\NtProcessMonitor.h
........\NTProcDrv
........\.........\NTProcDrv.c
........\.........\NTProcDrv.dsp
........\TestApp
........\.......\TestApp.cpp
........\.......\TestApp.dsp