![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hook
ICode_Ya
这个作者很懒,什么都没留下…
展开
-
inline hook
原理: JMP后的偏移量 =目标地址 – 原地址 - 5 #include "stdafx.h" #include "MyHook.h" #include <iostream> using namespace std; void MyPint() { cout << "test" << endl; } void MyPint2() { cout << "test2" << endl; } int _tmain(int argc, _..原创 2020-09-05 15:07:30 · 116 阅读 · 0 评论 -
学习Hook
基本概念 钩子(Hook),是Windows消息处理机制的一个平台,应用程序可以在上面设置子程以监视指定窗口的某种消息,而且所监视的窗口可以是其他进程所创建的。当消息到达后,在目标窗口处理函数之前处理它。钩子机制允许应用程序截获处理window消息或特定事件。 钩子实际上是一个处理消息的程序段,通过系统调用,把它挂入系统。每当特定的消息发出,在没有到达目的窗口前,钩子程序就先捕获该消息,亦...原创 2019-04-20 14:31:07 · 425 阅读 · 0 评论