The range of Command values need to be widened to include the valid values above the Triage command. It should be:
if (((Command - SysDbgGetTriageDump) & 0xFFFFFFF7) != 0) {
return STATUS_DEBUGGER_INACTIVE;
}
For values not in this range, they have a check done on them to see if the process has SeDebugPriv, which we want to always fail, which should return STATUS_ACCESS_DENIED. EXCEPT, for code 0x26 which should be forwarded to the original call.
The range of Command values need to be widened to include the valid values above the Triage command. It should be:
For values not in this range, they have a check done on them to see if the process has SeDebugPriv, which we want to always fail, which should return STATUS_ACCESS_DENIED. EXCEPT, for code 0x26 which should be forwarded to the original call.