From 2e31cd4f951413aefd79609e57978156f9726ea2 Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Wed, 28 Jun 2023 19:28:29 +0200 Subject: [PATCH] Fixes #30 --- apachetomcatscanner/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apachetomcatscanner/__main__.py b/apachetomcatscanner/__main__.py index dc8b736..296920a 100755 --- a/apachetomcatscanner/__main__.py +++ b/apachetomcatscanner/__main__.py @@ -56,9 +56,9 @@ def load_targets(options, config): ) # Loading targets from subnetworks of the domain - if options.auth_dc_ip is not None and options.auth_user is not None and (options.auth_password is not None or options.auth_hashes is not None): + if options.subnets and options.auth_dc_ip is not None and options.auth_user is not None and (options.auth_password is not None or options.auth_hashes is not None): if options.debug: - print("[debug] Loading targets from servers in the domain '%s'" % options.auth_domain) + print("[debug] Loading targets from subnetworks of the domain '%s'" % options.auth_domain) targets += get_subnets( auth_domain=options.auth_domain, auth_dc_ip=options.auth_dc_ip,