This commit is contained in:
lhodges1 2023-08-19 14:22:43 +10:00
parent a180c98391
commit 9256c73be8
2 changed files with 3 additions and 10 deletions

View file

@ -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;
}

View file

@ -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();