This commit is contained in:
lhodges1 2023-09-13 23:19:07 +10:00
parent ab26f0cf92
commit b498c8f064
2 changed files with 5 additions and 2 deletions

View file

@ -799,7 +799,7 @@ NTSTATUS HandleNmiIOCTL(
* We want to register and unregister our callback each time so it becomes harder
* for people to hook our callback and get up to some funny business
*/
callback_handle = KeRegisterNmiCallback( NmiCallback, nmi_context.nmi_core_context );
callback_handle = KeRegisterNmiCallback( NmiCallback, &nmi_context );
if ( !callback_handle )
{

View file

@ -41,7 +41,7 @@ DWORD WINAPI Init(HINSTANCE hinstDLL)
while ( !GetAsyncKeyState( VK_DELETE ) )
{
srand( time( NULL ) );
int seed = ( rand() % 5 );
int seed = ( rand() % 6 );
std::cout << "Seed: " << seed << std::endl;
@ -62,6 +62,9 @@ DWORD WINAPI Init(HINSTANCE hinstDLL)
case 4:
kmanager.ValidateProcessModules();
break;
case 5:
kmanager.RunNmiCallbacks();
break;
}
kmanager.MonitorCallbackReports();