From cb4784b189d2fb841c7907b4331220392b2ccf96 Mon Sep 17 00:00:00 2001 From: TheCruZ Date: Sat, 30 May 2020 19:55:50 +0200 Subject: [PATCH] Update intel_driver.hpp --- kdmapper/intel_driver.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kdmapper/intel_driver.hpp b/kdmapper/intel_driver.hpp index ef2b959..7291f7f 100644 --- a/kdmapper/intel_driver.hpp +++ b/kdmapper/intel_driver.hpp @@ -144,7 +144,12 @@ namespace intel_driver *(uint64_t*)((&kernel_injected_jmp[0]) + 2) = kernel_function_address; const uint64_t kernel_NtQueryInformationAtom = GetKernelModuleExport(device_handle, utils::GetKernelModuleAddress("ntoskrnl.exe"), "NtQueryInformationAtom"); - + if (!kernel_NtQueryInformationAtom) + { + std::cout << "[-] Failed to get export ntoskrnl.NtQueryInformationAtom" << std::endl; + return false; + } + if (!ReadMemory(device_handle, kernel_NtQueryInformationAtom, &original_kernel_function, sizeof(kernel_injected_jmp))) return false; @@ -286,4 +291,4 @@ namespace intel_driver return false; } -} \ No newline at end of file +}