win11 bug fux

This commit is contained in:
lhodges1 2023-11-02 03:38:37 +11:00
parent 9bd56fe563
commit 38e24354da
3 changed files with 7 additions and 6 deletions

View file

@ -425,11 +425,11 @@ ObPreOpCallbackRoutine(
!strcmp(process_creator_name, "WerFault.exe"))
{
/* We will downgrade these handles later */
DEBUG_LOG("Handles created by CSRSS, LSASS and WerFault are allowed for now...");
//DEBUG_LOG("Handles created by CSRSS, LSASS and WerFault are allowed for now...");
}
else if (target_process == process_creator)
{
DEBUG_LOG("handles made by NOTEPAD r okay :)");
//DEBUG_LOG("handles made by NOTEPAD r okay :)");
/* handles created by the game (notepad) are okay */
}
else
@ -447,7 +447,7 @@ ObPreOpCallbackRoutine(
!strcmp(process_creator_name, "explorer.exe"))
goto end;
DEBUG_LOG("handle stripped from: %s", process_creator_name);
//DEBUG_LOG("handle stripped from: %s", process_creator_name);
POPEN_HANDLE_FAILURE_REPORT report =
ExAllocatePool2(POOL_FLAG_NON_PAGED, sizeof(OPEN_HANDLE_FAILURE_REPORT), REPORT_POOL_TAG);

View file

@ -4,8 +4,8 @@
#include <ntifs.h>
#include <wdftypes.h>
#define DEBUG_LOG(fmt, ...) DbgPrintEx(DPFLTR_IHVDRIVER_ID, 0, "[+] " fmt "\n", ##__VA_ARGS__)
#define DEBUG_ERROR(fmt, ...) DbgPrintEx(DPFLTR_IHVDRIVER_ID, 0, "[-] " fmt "\n", ##__VA_ARGS__)
#define DEBUG_LOG(fmt, ...) DbgPrintEx(DPFLTR_IHVDRIVER_ID, 0, "[DONNAAC - INFO] " fmt "\n", ##__VA_ARGS__)
#define DEBUG_ERROR(fmt, ...) DbgPrintEx(DPFLTR_IHVDRIVER_ID, 0, "[DONNAAC - ERROR] " fmt "\n", ##__VA_ARGS__)
#define STATIC static

View file

@ -1316,7 +1316,8 @@ ValidateThreadViaKernelApcCallback(
!strcmp(process_name, "explorer.exe") ||
!strcmp(process_name, "svchost.exe") ||
!strcmp(process_name, "lsass.exe") ||
!strcmp(process_name, "MemCompression"))
!strcmp(process_name, "MemCompression") ||
!strcmp(process_name, "WerFault.exe"))
return;
DEBUG_LOG("Process: %s", process_name);