How do I bypass IsDebuggerPresent with OllyDbg?

后端 未结 3 539
情歌与酒
情歌与酒 2021-01-31 05:37

I don\'t really understand how to get around IsDebuggerPresent. I think I am supposed to find the registers used for debugging and then set it to 0 to trick IsDebuggerPresent, b

3条回答
  •  臣服心动
    2021-01-31 06:10

    Inject this code in your process:

    mov eax,dword ptr fs:[18]
    mov eax,dword ptr ds:[eax+30]
    mov byte ptr ds:[eax+2],0
    

    This will patch the PEB.BeingDebugged flag, ensuring IsDebuggerPresent always returns 0

    When using x64dbg you can run the dbh command.

提交回复
热议问题