Skip to content

Commit

Permalink
printing out yara rules to be compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason McFarland committed Sep 18, 2018
1 parent 4d1d45f commit c86a7a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cbopensource/connectors/yara/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import logging

import os
import pprint

log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
Expand All @@ -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)
Expand Down

0 comments on commit c86a7a7

Please sign in to comment.