From 67eb04ea3971a8b404970a504ec2b5d3da31bae4 Mon Sep 17 00:00:00 2001 From: epi052 Date: Tue, 26 Nov 2019 06:38:22 -0600 Subject: [PATCH] removed possibility of udp ports in GatherWebTargets --- recon/web/targets.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recon/web/targets.py b/recon/web/targets.py index 087538c..8c6fd72 100644 --- a/recon/web/targets.py +++ b/recon/web/targets.py @@ -60,9 +60,20 @@ class GatherWebTargets(luigi.Task): ip_dict = pickle.load(open(self.input().get("masscan-output").path, "rb")) + """ + structure over which we're looping + { + "IP_ADDRESS": + {'udp': {"161", "5000", ... }, + ... + i.e. {protocol: set(ports) } + } + """ for target, protocol_dict in ip_dict.items(): for protocol, ports in protocol_dict.items(): for port in ports: + if protocol == "udp": + continue if port == "80": targets.add(target) elif port in web_ports: