Interacting with the Registry
The Windows registry is a magical place, where with just a few keystrokes you can render a system virtually unusable. So, be very careful on this next section as mistakes can be painful.
Meterpreter has some very useful functions for registry interaction. Let's look at the options.meterpreter > reg
Usage: reg [command] [options]
Interact with the target machine's registry.
OPTIONS:
-d
-h
-k
-t
-v
COMMANDS:
enumkey Enumerate the supplied registry key [-k
createkey Create the supplied registry key [-k
deletekey Delete the supplied registry key [-k
setval Set a registry value [-k
deleteval Delete the supplied registry value [-k
queryval Queries the data contents of a value [-k
Here we can see there are various options we can utilize to interact with the remote system. We have the full options of reading, writing, creating, and deleting remote registry entries. These can be used for any number of actions, including remote information gathering. Using the registry, one can find what files have been utilized, web sites visited in Internet Explorer, programs utilized, USB devices utilized, and so on.
There is a great quick reference list of these interesting registry entries published by Access Data at http://www.accessdata.com/media/en_US/print/papers/wp.Registry_Quick_Find_Chart.en_us.pdf, as well as any number of internet references worth finding when there is something specific you are looking for.

