From c86a7a7ba327d69f5fbb34c12155f22c8b3435c2 Mon Sep 17 00:00:00 2001 From: Jason McFarland Date: Tue, 18 Sep 2018 15:22:30 -0500 Subject: [PATCH] printing out yara rules to be compiled --- cbopensource/connectors/yara/bridge.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cbopensource/connectors/yara/bridge.py b/cbopensource/connectors/yara/bridge.py index 8432261..47494a1 100644 --- a/cbopensource/connectors/yara/bridge.py +++ b/cbopensource/connectors/yara/bridge.py @@ -7,6 +7,7 @@ import logging import os +import pprint log = logging.getLogger(__name__) log.setLevel(logging.INFO) @@ -31,6 +32,9 @@ def compile_rules(self, pathname): namespace = fn rule_map[namespace] = fullpath + log.info("Yara Rules to be compiled:") + log.info(pprint.pformat(rule_map)) + return yara.compile(filepaths=rule_map) # take default definition of check_result_for (return None)