From 9256c73be893a691a6fec6673f4f58c395632556 Mon Sep 17 00:00:00 2001 From: lhodges1 Date: Sat, 19 Aug 2023 14:22:43 +1000 Subject: [PATCH] hhh --- user/km/driver.cpp | 11 ++--------- user/main.cpp | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/user/km/driver.cpp b/user/km/driver.cpp index b75ec4f..36c5c31 100644 --- a/user/km/driver.cpp +++ b/user/km/driver.cpp @@ -97,18 +97,11 @@ void kernelmode::Driver::VerifySystemModules() return; } - if ( bytes_returned == NULL ) - { - LOG_INFO( "All system modules valid" ); - free( buffer ); - return; - } - memcpy( &header, buffer, sizeof( header_size )); - if ( header.module_count == NULL ) + if ( header.module_count == 0 ) { - LOG_ERROR( "weird error with module report" ); + LOG_INFO( "All modules valid :)" ); free( buffer ); return; } diff --git a/user/main.cpp b/user/main.cpp index 9e9f15d..8f1f7f7 100644 --- a/user/main.cpp +++ b/user/main.cpp @@ -28,7 +28,7 @@ DWORD WINAPI Init(HINSTANCE hinstDLL) usermode::UManager umanager( thread_pool, report_interface ); kernelmode::KManager kmanager( driver_name, thread_pool, report_interface); - kmanager.RunNmiCallbacks(); + //kmanager.RunNmiCallbacks(); kmanager.VerifySystemModules(); //umanager.ValidateProcessModules();