From fd2337826f612997b3ede3913e9ab94e1df674af Mon Sep 17 00:00:00 2001 From: prodigysml Date: Sat, 19 Oct 2019 18:44:49 +1100 Subject: [PATCH] Fixed support for , in URL issue --- Interlace/lib/core/input.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 205596e..d7386c6 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -145,13 +145,12 @@ class InputHelper(object): def _pre_process_hosts(host_ranges, destination_set, arguments): for host in host_ranges: host = host.replace(" ", "") + # check if it is a domain name + if host.split(".")[0][0].isalpha(): + destination_set.add(host) + continue for ips in host.split(","): - # check if it is a domain name - if ips.split(".")[0][0].isalpha(): - destination_set.add(ips) - continue # checking for CIDR - if not arguments.nocidr and "/" in ips: destination_set.update(InputHelper._get_cidr_to_ips(ips)) # checking for IPs in a range