Skip to content

Is it possible to query a registry keys within multiple NTUSER.DAT files? #678

Closed Answered by Schamper
M1ra1B0T asked this question in Q&A
Discussion options

You must be logged in to vote

All user hives (NTUSER.DAT files) are available under HKEY_USERS\<SID> with the SID of the respective user. Similarly the UsrClass.dat is available under HKEY_USERS\<SID>__Classes.

However, you can also transparently iterate all user registry keys by simply querying HKEY_CURRENT_USER or HKCU! Since the registry abstraction of Dissect supports registry layering, you'll be able to see all different registry values at once. Linking it back to a specific user is a little trickier from target-reg, but is supported if you use the Python API.

$ target-reg -q /path/to/target -k HKEY_USERS
<Target /path/to/target>
+ 'HKEY_USERS' (None)
  + '.DEFAULT' (2024-03-28 13:55:37.485464+00:00)
  + 'S-1-5-19'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@M1ra1B0T
Comment options

Answer selected by M1ra1B0T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants