Fix registry hive resolution in ACL scanner

This commit is contained in:
Carlos Polop
2026-01-17 15:33:09 +01:00
parent c14f9aeb30
commit 2f44379713

View File

@@ -204,9 +204,9 @@ namespace winPEAS.Helpers.Registry
{
RegistryKey baseKey = hive switch
{
"HKLM" => Registry.LocalMachine,
"HKCU" => Registry.CurrentUser,
"HKU" => Registry.Users,
"HKLM" => Microsoft.Win32.Registry.LocalMachine,
"HKCU" => Microsoft.Win32.Registry.CurrentUser,
"HKU" => Microsoft.Win32.Registry.Users,
_ => null,
};