From f37bbcacfdd1c5a8337f6b2ba8d54026b4e5c20c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 May 2020 11:19:16 -0400 Subject: [PATCH] trim whitespace to make a valid IP --- recon/core/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recon/core/module.py b/recon/core/module.py index 7222b9bf..73d19220 100644 --- a/recon/core/module.py +++ b/recon/core/module.py @@ -111,7 +111,7 @@ def html_escape(self, s): def cidr_to_list(self, string): import ipaddress - return [str(ip) for ip in ipaddress.ip_network(string)] + return [str(ip).strip() for ip in ipaddress.ip_network(string)] def hosts_to_domains(self, hosts, exclusions=[]): domains = []