#457 - filter hives for getsids and getservicesids

This commit is contained in:
superponible
2021-07-12 11:24:14 -05:00
parent 8c7b6b29d1
commit a7cc978ac6
2 changed files with 4 additions and 2 deletions
@@ -62,13 +62,14 @@ class GetServiceSIDs(interfaces.plugins.PluginInterface):
def _generator(self):
# Go all over the hives
# Get the system hive
for hive in hivelist.HiveList.list_hives(context = self.context,
base_config_path = self.config_path,
layer_name = self.config['primary'],
symbol_table = self.config['nt_symbols'],
filter_string = 'machine\\system',
hive_offsets = None):
# Get ConrolSet\Services.
# Get ControlSet\Services.
try:
services = hive.get_key(r"CurrentControlSet\Services")
except (KeyError, exceptions.InvalidAddressException):
@@ -81,6 +81,7 @@ class GetSIDs(interfaces.plugins.PluginInterface):
base_config_path = self.config_path,
layer_name = self.config['primary'],
symbol_table = self.config['nt_symbols'],
filter_string = 'config\\software',
hive_offsets = None):
try: