fix protect thread add list
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "create_thread_callback.h"
|
||||
|
||||
#include "protect_filter.h"
|
||||
|
||||
|
||||
|
||||
@@ -19,13 +19,19 @@ namespace thread_notify_routine
|
||||
if (!NT_SUCCESS(status))
|
||||
goto end;
|
||||
|
||||
PEPROCESS protect_process{ 0 };
|
||||
|
||||
|
||||
|
||||
/*PEPROCESS protect_process{ 0 };
|
||||
status = PsLookupProcessByProcessId(protect_id, &protect_process);
|
||||
if (!NT_SUCCESS(status))
|
||||
goto end;*/
|
||||
|
||||
if(!protect_filter::is_protect_pid(0, process))
|
||||
goto end;
|
||||
|
||||
if (protect_process != process)
|
||||
goto end;
|
||||
/*if (protect_process != process)
|
||||
goto end;*/
|
||||
|
||||
auto cutor_process_id = PsGetCurrentProcessId();
|
||||
if (HandleToLong(cutor_process_id) == 4)
|
||||
|
||||
Reference in New Issue
Block a user