Kernel - Debug Register Hooking Problem (Advanced)

Hi guys really not sure where to place this but i have a shadow-ssdt hook and i want to poke usermode so i have part coded a debug register hook to do this but im unsure how to set dr0 and dr7 registers in kernel.

thanks.

Comments

  • [color=Blue]The CPU manual simply states that you can move any 32bit register into DR0-DR7:
    [code]
    mov eax, ... whatever ...
    mov dr0, eax
    [/code]
    Did you try the inline assembler for this? Also, if inline assembler does not serve these instructions - you can use __emit() statement to generate the byte codes.[/color]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion