首页
社区
课程
招聘
[旧帖] [求助]15.1.3 CheckHeapFlags 在win7下失效 0.00雪花
发表于: 2010-7-20 11:30 1220

[旧帖] [求助]15.1.3 CheckHeapFlags 在win7下失效 0.00雪花

2010-7-20 11:30
1220
在15.1.3章节提到的checkHeapFlags函数,在win7 下检测失败(本来没有调试跟踪,检测却认为有),书中代码是:
BOOL
CheckHeapFlags(
    VOID)
{
    __asm {
        mov eax, fs:[0x30]
        mov eax, [eax+0x18]
        cmp dword ptr [eax+0x0C], 2
        jne __debugger_detected
        cmp dword ptr [eax+0x10], 0
        jne __debugger_detected
        xor eax, eax
__debugger_detected:
    }
}

这个代码在xp,windows 2003 server等系统下运行正常,但是在win7下运行结果不正确。哪位大牛有解决办法?另外怎么区分win7 与winxp等?

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 63
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
自己解决了,win7下processheap的flags和forceflags的偏移量是0x40和0x44了,不再是0x0C和0x10了。
2010-7-20 16:02
0
游客
登录 | 注册 方可回帖
返回
//