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