Skip to content

Commit

Permalink
fixed excavate test
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 14, 2024
1 parent 62d4986 commit 93d14e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bbot/modules/internal/excavate.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ async def setup(self):
yara_rules_combined = "\n".join(self.yara_rules_dict.values())
try:
self.info(f"Compiling {len(self.yara_rules_dict):,} YARA rules")
for rule_name, rule_content in self.yara_rules_dict.items():
self.debug(f" - {rule_name}")
self.yara_rules = yara.compile(source=yara_rules_combined)
except yara.SyntaxError as e:
self.debug(yara_rules_combined)
Expand Down
1 change: 1 addition & 0 deletions bbot/test/test_step_1/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async def test_events(events, helpers):
assert events.ipv6_open_port.netloc == "[2001:4860:4860::8888]:443"
assert events.netv4.type == "IP_RANGE"
assert events.netv4.netloc is None
assert "netloc" not in events.netv4.json()
assert events.netv6.type == "IP_RANGE"
assert events.domain.type == "DNS_NAME"
assert events.domain.netloc == "publicapis.org"
Expand Down

0 comments on commit 93d14e5

Please sign in to comment.