Skip to content

Commit

Permalink
Fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Jun 28, 2023
1 parent 384f64f commit 2e31cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apachetomcatscanner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2e31cd4

Please sign in to comment.