mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 11:47:38 +02:00
Update case insensitive check
Update link and use casefold() instead of lower().
This commit is contained in:
@@ -192,9 +192,9 @@ class RegistryHive(linear.LinearlyMappedLayer):
|
||||
while key_array and node_key:
|
||||
subkeys = node_key[-1].get_subkeys()
|
||||
for subkey in subkeys:
|
||||
# registry keys are not case sensitive so compare lowercase
|
||||
# https://msdn.microsoft.com/en-us/library/windows/desktop/ms724946(v=vs.85).aspx
|
||||
if subkey.get_name().lower() == key_array[0].lower():
|
||||
# registry keys are not case sensitive so compare likewise
|
||||
# https://learn.microsoft.com/en-gb/windows/win32/sysinfo/structure-of-the-registry
|
||||
if subkey.get_name().casefold() == key_array[0].casefold():
|
||||
node_key = node_key + [subkey]
|
||||
found_key, key_array = found_key + [key_array[0]], key_array[1:]
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user