Update autorecon.py

Quick bug fix for previous update.
This commit is contained in:
Tib3rius 2021-08-13 18:06:09 -04:00
parent 0fcadbe1d8
commit 18d98c68ba
1 changed files with 3 additions and 0 deletions

View File

@ -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