From d6d67f6a4c1ced317b57ea56a50abffe40f25248 Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 9 Jan 2024 14:31:55 +0100 Subject: [PATCH] chg: [hosts] filter onion --- bin/modules/Hosts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/modules/Hosts.py b/bin/modules/Hosts.py index 979e6680..488e7acf 100755 --- a/bin/modules/Hosts.py +++ b/bin/modules/Hosts.py @@ -60,7 +60,8 @@ class Hosts(AbstractModule): print(f'{len(hosts)} host {item.get_id()}') for host in hosts: # print(host) - self.add_message_to_queue(message=str(host), queue='Host') + if not host.endswith('.onion'): + self.add_message_to_queue(message=str(host), queue='Host') if __name__ == '__main__':