Windows PrivEsc with Registry Keys
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
Last updated
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
Last updated
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.
After that, we can dump password hashes from hives.
After dumping hashes, we can crack them. First, we extract NTLM from the hash. For example, the dumped hash is below.
We need only the right string "zyxwvuts…", so extract it to a text file as below.
If we get the password, we can use it for abusing the target machine. For example, we can use it to WinRM as below.
A set of registry keys that store details about a viewed folder, such as its size, position, and icon.
If we cannot found AppData folder in Explorer, click "View" tab and check "Hidden Items".
Search "regedit" on search bar and open "Registry Editor"
Go to "Computer\HKEY_CLASSES_ROOT\LocalSettings\Software\Microsoft\Windows\Shell\Bags"
Extract ShellBags information.
Open "ShellBags Explorer"
Select "File" -> "Load offline hive"
Navigate to the UsrClass.dat and open the file
Find suspicious folder and file
Now crack it using Hashcat or John The Ripper. See more details .