From f6a55876d09cd7a8e6908b16573ee936adaa5a3d Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 17 Jul 2017 16:19:36 +0100 Subject: [PATCH] Add in check to avoid unsightly exceptions. --- volatility/framework/automagic/linux.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/volatility/framework/automagic/linux.py b/volatility/framework/automagic/linux.py index d38e1bc9c..560ea63aa 100644 --- a/volatility/framework/automagic/linux.py +++ b/volatility/framework/automagic/linux.py @@ -44,6 +44,11 @@ class LinuxSymbolFinder(interfaces.automagic.AutomagicInterface): def _banner_scan(self, context, config_path, requirement, layer_name, progress_callback = None): """Accepts a context, config_path and SymbolRequirement, with a constructed layer_name and scans the layer for linux banners""" + + # Bomb out early if there's no banners + if not self._linux_banners: + return + mss = scanners.MultiStringScanner(list(self._linux_banners)) layer = context.memory[layer_name]