Skip to content

Commit

Permalink
fix: [hosts] fix number of hosts extracted
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jan 9, 2024
1 parent 5094b2d commit bdaa4c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion bin/modules/DomClassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# Import Project packages
##################################
from modules.abstract_module import AbstractModule
from lib.objects.Items import Item
from lib.ConfigLoader import ConfigLoader
from lib import d4

Expand Down
2 changes: 1 addition & 1 deletion bin/modules/Hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def compute(self, message):
# if mimetype.split('/')[0] == "text":

content = item.get_content()
hosts = self.regex_findall(self.host_regex, item.get_id(), content)
hosts = self.regex_findall(self.host_regex, item.get_id(), content, r_set=True)
if hosts:
print(f'{len(hosts)} host {item.get_id()}')
for host in hosts:
Expand Down

0 comments on commit bdaa4c5

Please sign in to comment.