文件名称:HookToolsrc
- 所属分类:
- 钩子与API截获
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 67kb
- 下载次数:
- 0次
- 提 供 者:
- s**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
前两天有个朋友想让我帮做个ApiHook的东西,公司的网较慢,只能搜国内网站,结果搜了n个没有完整原代码,极度郁闷,现转一个codeproject的原代码,以后也方便自己下载使用。
说明一下,这个代码在CodeProject有下,代码我大致翻了一下,只挂引入表的函数,注入有SetWindowHookEx和CreateRemoteThread两种方式,进程枚举也区分了不同系统下使用的psai和toolhelp,另外为了获得Process的创建消息,做了一个驱动来注册回调函数,总的来说,在注入部分做得相当棒,如果想挂各种函
数,可以结合detour使用。
-A couple of days ago a friend wanted me to help be a ApiHook things, the company' s Net slow, can only be found internally website, the results of the n-found no complete source code, an extremely depressing, it is a codeproject to the original code, after Convenience also download their own use. Explain that this code has CodeProject, the code I am generally turned a little, only linked to the introduction of the function table into SetWindowHookEx and CreateRemoteThread have two ways, the process of enumeration to distinguish between the different systems are used psai and toolhelp, the other in order to Process to create access to the message, make a drive to register a callback function, in general, has done quite a part in the injection rod, if want to hang a variety of functions, can be combined to use detour.
说明一下,这个代码在CodeProject有下,代码我大致翻了一下,只挂引入表的函数,注入有SetWindowHookEx和CreateRemoteThread两种方式,进程枚举也区分了不同系统下使用的psai和toolhelp,另外为了获得Process的创建消息,做了一个驱动来注册回调函数,总的来说,在注入部分做得相当棒,如果想挂各种函
数,可以结合detour使用。
-A couple of days ago a friend wanted me to help be a ApiHook things, the company' s Net slow, can only be found internally website, the results of the n-found no complete source code, an extremely depressing, it is a codeproject to the original code, after Convenience also download their own use. Explain that this code has CodeProject, the code I am generally turned a little, only linked to the introduction of the function table into SetWindowHookEx and CreateRemoteThread have two ways, the process of enumeration to distinguish between the different systems are used psai and toolhelp, the other in order to Process to create access to the message, make a drive to register a callback function, in general, has done quite a part in the injection rod, if want to hang a variety of functions, can be combined to use detour.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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.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