//简单的线段树,注意成段更新,以免超时
#include
#include
#include
using namespace std ;
const int maxn = 100010 ;
struct node
{
int value ;
int r , l;
int flag ;//记录到当前区间的状态
}tree[maxn
void buil...
分类:
其他好文 时间:
2015-04-07 21:49:12
阅读次数:
154
介绍这个壳的核心——字节码解释器,它参考了dalvik虚拟机的解释器。不需要hook、注入。目前只支持算数运算指令。我个人把dalviki指令分为这么几类:算数运算指令。引用类指令。如const-string、invoke-kind,这类指令需要引用dex的资源。其他指令解释执行算数运算指令较为简单...
分类:
移动开发 时间:
2015-04-07 08:28:37
阅读次数:
534
Just a HookTime Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1698DescriptionIn the game of DotA, Pudge’s meat hook is...
分类:
其他好文 时间:
2015-04-06 21:44:54
阅读次数:
201
难点总结1.先HOOK 库,支持x86/x64。先了easyhook,还要把easyhook编译成static library形式2.ipc通讯,hook到信息后,要综合到服务中心进程保存。选择了rpc通讯3.编写的勾子dll注入采用了appinit_dll方式,dll不能依赖太多库。只能使用ker...
分类:
其他好文 时间:
2015-04-05 23:06:50
阅读次数:
203
E - Just a Hook
Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status Practice
Description
In the game of DotA, Pudge’s meat hook is actually the most horrible thing...
分类:
其他好文 时间:
2015-04-05 09:12:34
阅读次数:
293
Just a HookTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1698DescriptionIn the game of DotA, Pudge’s meat ...
分类:
其他好文 时间:
2015-04-04 16:26:22
阅读次数:
157
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1698Let us number the consecutive metallic sticks of the hook from 1 to N. For each operation, Pudge ca...
分类:
其他好文 时间:
2015-04-03 23:45:47
阅读次数:
150
参考 http://9200cs.blog.163.com/blog/static/134577369201041111656659/环境:VS2008一、新建一个dll程序add,程序非常简单,其功能就是实现简单的a+b。1、新建一个项目名为add选择dll然后打开dllmain.cpp,代码:/...
分类:
其他好文 时间:
2015-04-03 01:29:33
阅读次数:
194
最近使用WebBrower做了几个Hook小程序,收集积累如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;//namespa...
分类:
Web程序 时间:
2015-04-02 18:45:24
阅读次数:
247
Objective-C的hook方案(一): Method Swizzling
在没有一个类的实现源码的情况下,想改变其中一个方法的实现,除了继承它重写、和借助类别重名方法暴力抢先之外,还有更加灵活的方法吗?在Objective-C编程中,如何实现hook呢?标题有点大,计划分几篇来总结。本文主要介绍针对selector的hook,主角被标题剧透了———— Method Swizzling 。...
分类:
移动开发 时间:
2015-03-29 22:16:21
阅读次数:
242