mirror of
https://github.com/peass-ng/PEASS-ng.git
synced 2026-04-28 11:53:22 -07:00
Fix registry hive resolution in ACL scanner
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user