From cd3ad1e067f981c04e5b795c1bfa3550feafdfd1 Mon Sep 17 00:00:00 2001 From: dadokkio Date: Fri, 12 Mar 2021 13:09:38 +0100 Subject: [PATCH] fix config --- volatility3/framework/plugins/yarascan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/plugins/yarascan.py b/volatility3/framework/plugins/yarascan.py index b30279d82..b3c3acddf 100644 --- a/volatility3/framework/plugins/yarascan.py +++ b/volatility3/framework/plugins/yarascan.py @@ -80,7 +80,7 @@ class YaraScan(plugins.PluginInterface): elif config.get('yara_file', None) is not None: rules = yara.compile(file = resources.ResourceAccessor().open(config['yara_file'], "rb")) elif config.get('yara_compiled_file', None) is not None: - rules = yara.load(file = resources.ResourceAccessor().open(config['yara_file'], "rb")) + rules = yara.load(file = resources.ResourceAccessor().open(config['yara_compiled_file'], "rb")) else: vollog.error("No yara rules, nor yara rules file were specified") return rules