Method Swizzling(方法调配) 怎么说呢,先了解什么是钩子为什么用钩子,学过C++的朋友应该清楚,hook就是用来获得(截断/改变)底层调用的方法。这样我们可以自由的修改或者读取一些想要的东西。(个人理解) 下面...
分类:
移动开发 时间:
2015-05-06 18:26:14
阅读次数:
649
Hook(钩子)就是对Windows系统的一些消息或是API函数进行拦截和监控的处理平台,让可以根据程序员的设置获取其感兴趣的信息。
这里主要是介绍一下Hook拦截鼠标消息和键盘消息。
下面是CALLBACK Proc 回调函数 和 CallNextHookEx函数
LRESULT CALLBACK HookProc
(
int nCode, //指定是否需要处理该消息
WPAR...
分类:
其他好文 时间:
2015-05-06 18:03:39
阅读次数:
158
因为才接触Detours Hook,所以按照网上的去官网下了一个DetoursExpress30.msi 下载的地方也只有这一个可供下载。
(后来查资料才知道还有一个收费版的detour professional 3.0,听说蛮贵的,去官网也没有找到)
http://download.csdn.net/download/staver102/7648875这个是别人自己改写的专业版的 ,我还没有...
分类:
其他好文 时间:
2015-05-06 11:06:53
阅读次数:
233
分析:线段树的应用,区间修改,使用延迟标记进行延迟修改。
#include
using namespace std;
#define N 100010
class SegmentTree
{
private:
struct Node
{
int left,right; //左右子节点
int sum; //区间和
int lazy; ...
分类:
其他好文 时间:
2015-05-03 16:06:09
阅读次数:
126
Just a Hook
Time Limit: 2000MS
Memory Limit: 32768KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
In the game of DotA, Pudge’s meat hook is actually the m...
分类:
其他好文 时间:
2015-05-03 12:03:35
阅读次数:
172
It seems that in your case you are trying to use aninstance variableof the class you are hooking. Modifying the instance variable does not work that w...
分类:
移动开发 时间:
2015-04-30 10:22:00
阅读次数:
286
1using System; 2using System.Collections.Generic; 3using System.ComponentModel; 4using System.Data; 5using System.Drawing; 6using System.Text; 7using....
REPOS="$1"REV="$2"export LANG=en_US.UTF-8/usr/bin/svn update /home/wwwroot/yswifi --username yangxc --password yangxc >>/tmp/svn_hook_log.txtecho 'who...
分类:
其他好文 时间:
2015-04-29 19:40:14
阅读次数:
138
唉,说起来这就是一个坑,Cydia Substrate在其文档中也没找到详细说明,最后也只能来看看代码曾半仙最早给的那份substrate-master源码,然后一切就了然于胸了,这个坑很大,很大!!!现在我们先来看下MSHookFunction怎么Hook IDA中的sub_xxxx函数,然后再来...
分类:
其他好文 时间:
2015-04-29 18:58:47
阅读次数:
569
SSDT(systemservicedispatchtable)系统服务分派表SSPT(systemserviceparametertable)系统服务参数表#pragmapack(1)//SSDT表的结构typedefstructServiceDescriptorEntry{unsignedint...
分类:
其他好文 时间:
2015-04-29 15:01:44
阅读次数:
145