From 18d98c68ba1328bbe5ff48c60e20091280a52c5c Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Fri, 13 Aug 2021 18:06:09 -0400 Subject: [PATCH] Update autorecon.py Quick bug fix for previous update. --- autorecon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autorecon.py b/autorecon.py index e256a72..9eb3027 100644 --- a/autorecon.py +++ b/autorecon.py @@ -942,15 +942,18 @@ async def scan_target(target): # Skip plugin if require_ssl_boolean and port is not secure if plugin.require_ssl_boolean and not service.secure: + service_match = False continue # Skip plugin if service port is in ignore_ports: if port in plugin.ignore_ports[protocol]: + service_match = False warn('{byellow}[' + plugin_tag + ' against ' + target.address + ']{srst} Plugin cannot be run against ' + protocol + ' port ' + str(port) + '. Skipping.{rst}') continue # Skip plugin if plugin has required ports and service port is not in them: if plugin.ports[protocol] and port not in plugin.ports[protocol]: + service_match = False warn('{byellow}[' + plugin_tag + ' against ' + target.address + ']{srst} Plugin can only run on specific ports. Skipping.{rst}') continue