Skip to content

Commit

Permalink
enable access to HKEY_USERS trough reg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dadevel committed Oct 27, 2023
1 parent 4fdddb4 commit 0798b1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ def __strip_root_key(self, dce, keyName):
raise Exception('Error parsing keyName %s' % keyName)
if rootKey.upper() == 'HKLM':
ans = rrp.hOpenLocalMachine(dce)
elif rootKey.upper() == 'HKU':
elif rootKey.upper() == 'HKCU':
ans = rrp.hOpenCurrentUser(dce)
elif rootKey.upper() == 'HKU':
ans = rrp.hOpenUsers(dce)
elif rootKey.upper() == 'HKCR':
ans = rrp.hOpenClassesRoot(dce)
else:
Expand Down

0 comments on commit 0798b1b

Please sign in to comment.