MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / UnhookDbgSys

Method UnhookDbgSys

KernelLibrary/kDbgUtil.cpp:77–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool kDbgUtil::UnhookDbgSys() {
78 NTSTATUS status = DetourDetach((PVOID*)&g_pNtCreateDebugObject, NtCreateDebugObject);
79 if (!NT_SUCCESS(status))
80 return false;
81
82 status = DetourTransactionCommit();
83 if (!NT_SUCCESS(status))
84 return false;
85
86 status = DetourDetach((PVOID*)&g_pNtDebugActiveProcess, NtDebugActiveProcess);
87 if (!NT_SUCCESS(status))
88 return false;
89
90 status = DetourTransactionCommit();
91 if (!NT_SUCCESS(status))
92 return false;
93 return true;
94}
95
96bool kDbgUtil::InitDbgSys(DbgSysCoreInfo* info) {
97 if (_first) {

Callers

nothing calls this directly

Calls 2

DetourDetachFunction · 0.85
DetourTransactionCommitFunction · 0.85

Tested by

no test coverage detected