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

Method Bypass

KernelLibrary/BypassAntiKernelDbg.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bool BypassAntiKernelDbg::Bypass() {
44 g_pNtQuerySystemInformation = (PNtQuerySystemInformation)GetExportSymbolAddress(L"NtQuerySystemInformation");
45 if (g_pNtQuerySystemInformation) {
46 NTSTATUS status = DetourAttach((PVOID*)&g_pNtQuerySystemInformation, HookNtQuerySystemInformation);
47 if (!NT_SUCCESS(status))
48 return false;
49 status = DetourTransactionCommit();
50 if (!NT_SUCCESS(status))
51 return false;
52 }
53 return true;
54
55}
56
57bool BypassAntiKernelDbg::Unbypass() {
58 NTSTATUS status = DetourDetach((PVOID*)&g_pNtQuerySystemInformation, HookNtQuerySystemInformation);

Callers

nothing calls this directly

Calls 2

DetourAttachFunction · 0.85
DetourTransactionCommitFunction · 0.85

Tested by

no test coverage detected