diff --git a/volatility/plugins/windows/strings.py b/volatility/plugins/windows/strings.py index dd87c991c..8b4e5f1e2 100644 --- a/volatility/plugins/windows/strings.py +++ b/volatility/plugins/windows/strings.py @@ -40,7 +40,7 @@ class Strings(interfaces.plugins.PluginInterface): offset, string = self._parse_line(line) try: revmap_list = [name + ":" + hex(offset) for (name, offset) in revmap[offset >> 12]] - except: + except (IndexError, KeyError): revmap_list = ["FREE MEMORY"] yield (0, (str(string, 'latin-1'), format_hints.Hex(offset), ", ".join(revmap_list))) except ValueError: diff --git a/volatility/plugins/windows/userassist.py b/volatility/plugins/windows/userassist.py index 4199d1622..da09ae491 100644 --- a/volatility/plugins/windows/userassist.py +++ b/volatility/plugins/windows/userassist.py @@ -311,7 +311,7 @@ class UserAssist(interfaces_plugins.PluginInterface): self.config['primary'], self.config['nt_symbols'], filter = "ntuser.dat")] - except: + except ImportError: vollog.warning("Unable to import windows.hivelist plugin, please provide a hive offset") raise ValueError("Unable to import windows.hivelist plugin, please provide a hive offset") else: