From 0798b1bf563c8a2d2820cdf7ef8af3b1fbd8b6c3 Mon Sep 17 00:00:00 2001 From: dadevel Date: Fri, 27 Oct 2023 14:33:44 +0200 Subject: [PATCH] enable access to HKEY_USERS trough reg.py --- examples/reg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/reg.py b/examples/reg.py index d1c3edee7d..54d26ff3a0 100755 --- a/examples/reg.py +++ b/examples/reg.py @@ -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: