Re: 请教硬件断点设置

Windows内核调试

请教硬件断点设置


霹雳 2009-07-04, 00:08 上午

    看的张老师的<<软件调试>>,试编程设置硬件断点

按网上<<Another way to HOOK in the kernel>>(应该是yykingking大作)编程设置

 __asm
    {
        mov eax, pBreakPoint;        // 想要挂接的函数或者地址
        mov dr0, eax;
        mov eax, dr7;
        or  eax, 0x2703;            
        and eax, 0xfff0ffff;
        mov dr7, eax;
    }

(执行内存中的代码时中断)断点设置成功。如何设置--读/写内存中的数据时中断。(不成功)

请指点如何设置,给个说明

 

Re: 请教硬件断点设置


格蠹老雷 2009-07-05, 10:34 上午
方法类似呀,把地址换成变量的地址,参见P94

Powered by Community Server Powered by CnForums.Net