Skip to content

Commit

Permalink
Merge pull request #1530 from j-t-1/case
Browse files Browse the repository at this point in the history
Update case insensitive check
  • Loading branch information
ikelos authored Jan 5, 2025
2 parents a9e10a4 + 8f4f576 commit 429b006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions volatility3/framework/layers/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ def get_key(
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-us/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
Expand Down

0 comments on commit 429b006

Please sign in to comment.