Howdy, Stranger!

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


Kernel - Debug Register Hooking Problem (Advanced)

aiwnjooaiwnjoo Member Posts: 1
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.



  • AsmGuru62AsmGuru62 Member Posts: 6,519
    [color=Blue]The CPU manual simply states that you can move any 32bit register into DR0-DR7:
    mov eax, ... whatever ...
    mov dr0, eax
    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.