Skip to content

Commit

Permalink
2.0.5
Browse files Browse the repository at this point in the history
Add IUM flags to output
  • Loading branch information
hfiref0x committed Jun 12, 2024
1 parent 1f531a3 commit f0979bc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
Binary file modified Compiled/WinObjEx64.exe
Binary file not shown.
42 changes: 38 additions & 4 deletions Source/WinObjEx64/sysinfoDlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ VOID SysInfoCollectInformation(
WCHAR szBuffer[MAX_PATH * 4], szWineVer[40];
WCHAR szTemp[MAX_PATH];

SYSTEM_ISOLATED_USER_MODE_INFORMATION IsolatedUM;
SYSTEM_CODEINTEGRITY_INFORMATION CodeIntegrity;
SYSTEM_KERNEL_VA_SHADOW_INFORMATION KernelVaShadow;
SYSTEM_VSM_PROTECTION_INFORMATION VsmProtectionInfo;
Expand Down Expand Up @@ -492,6 +493,9 @@ VOID SysInfoCollectInformation(

AddParameterValueUlong(hwndOutput, TEXT("System.DpiValue"), (ULONG)supGetDPIValue(NULL));

//
// CI flags.
//
CodeIntegrity.Length = sizeof(CodeIntegrity);
CodeIntegrity.CodeIntegrityOptions = 0;
if (NT_SUCCESS(NtQuerySystemInformation(
Expand Down Expand Up @@ -529,6 +533,9 @@ VOID SysInfoCollectInformation(
}
}

//
// Kernel VA Shadowing flags.
//
KernelVaShadow.Flags = 0;
if (NT_SUCCESS(NtQuerySystemInformation(
SystemKernelVaShadowInformation,
Expand All @@ -539,6 +546,9 @@ VOID SysInfoCollectInformation(
AddParameterValue32Hex(hwndOutput, TEXT("System.KvaShadowFlags"), KernelVaShadow.Flags);
}

//
// Speculation Control flags.
//
SpecControlInfo.v2.Flags2 = 0;
SpecControlInfo.v2.Flags = 0;
bytesIO = sizeof(SpecControlInfo);
Expand All @@ -555,11 +565,27 @@ VOID SysInfoCollectInformation(

}

AddParameterValue(hwndOutput, TEXT("System.TempDirectory"), g_WinObj.szTempDirectory);
AddParameterValue(hwndOutput, TEXT("System.WindowsDirectory"), g_WinObj.szWindowsDirectory);
AddParameterValue(hwndOutput, TEXT("System.SystemDirectory"), g_WinObj.szSystemDirectory);
AddParameterValue(hwndOutput, TEXT("System.ProgramDirectory"), g_WinObj.szProgramDirectory);
//
// Isolated UM flags.
//
RtlSecureZeroMemory(&IsolatedUM, sizeof(SYSTEM_ISOLATED_USER_MODE_INFORMATION));
ntStatus = NtQuerySystemInformation(SystemIsolatedUserModeInformation, &IsolatedUM, sizeof(IsolatedUM), &bytesIO);
if (NT_SUCCESS(ntStatus)) {
AddParameterValueBool(hwndOutput, TEXT("IUM.SecureKernelRunning"), IsolatedUM.SecureKernelRunning);
AddParameterValueBool(hwndOutput, TEXT("IUM.HvciEnabled"), IsolatedUM.HvciEnabled);
AddParameterValueBool(hwndOutput, TEXT("IUM.HvciStrictMode"), IsolatedUM.HvciStrictMode);
AddParameterValueBool(hwndOutput, TEXT("IUM.DebugEnabled"), IsolatedUM.DebugEnabled);
AddParameterValueBool(hwndOutput, TEXT("IUM.FirmwarePageProtection"), IsolatedUM.FirmwarePageProtection);
AddParameterValueBool(hwndOutput, TEXT("IUM.TrustletRunning"), IsolatedUM.TrustletRunning);
AddParameterValueBool(hwndOutput, TEXT("IUM.HvciDisableAllowed"), IsolatedUM.HvciDisableAllowed);
AddParameterValueBool(hwndOutput, TEXT("IUM.HardwareEnforcedVbs"), IsolatedUM.HardwareEnforcedVbs);
AddParameterValueBool(hwndOutput, TEXT("IUM.HardwareEnforcedHvpt"), IsolatedUM.HardwareEnforcedHvpt);
AddParameterValueBool(hwndOutput, TEXT("IUM.HardwareHvptAvailable"), IsolatedUM.HardwareHvptAvailable);
}

//
// VSM protection flags.
//
RtlSecureZeroMemory(&VsmProtectionInfo, sizeof(VsmProtectionInfo));
if (NT_SUCCESS(NtQuerySystemInformation(
SystemVsmProtectionInformation,
Expand All @@ -573,6 +599,14 @@ VOID SysInfoCollectInformation(
AddParameterValueBool(hwndOutput, TEXT("Vsm.ApicVirtualizationAvailable"), VsmProtectionInfo.ApicVirtualizationAvailable);
}

//
// Global directories.
//
AddParameterValue(hwndOutput, TEXT("System.TempDirectory"), g_WinObj.szTempDirectory);
AddParameterValue(hwndOutput, TEXT("System.WindowsDirectory"), g_WinObj.szWindowsDirectory);
AddParameterValue(hwndOutput, TEXT("System.SystemDirectory"), g_WinObj.szSystemDirectory);
AddParameterValue(hwndOutput, TEXT("System.ProgramDirectory"), g_WinObj.szProgramDirectory);

//
// End work with RichEdit.
//
Expand Down

0 comments on commit f0979bc

Please sign in to comment.