7 Apr
2017
7 Apr
'17
4:43 p.m.
Am 07.04.2017 um 17:52 schrieb Christian Inci:
DWORD tid = 0; int request_pipe[2]; + CONTEXT ctx; NTSTATUS status;
[...]
+ ctx.ContextFlags = CONTEXT_DEBUG_REGISTERS; + NtSetContextThread(handle, &ctx); +
You didn't initialize the register values and therefore set the debug registers to random stack values. You should either initialize them manually or memset the whole struct.