Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] The option '--subnets' is ignored #30

Closed
itm4n opened this issue Jun 28, 2023 · 1 comment
Closed

[bug] The option '--subnets' is ignored #30

itm4n opened this issue Jun 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@itm4n
Copy link

itm4n commented Jun 28, 2023

Hi! :)

The default value for the option --subnets is False, but it seems to be ignored when deciding whether the list of subnets should be retrieved from the Active Directory when creating a list of targets.

$ ./ApacheTomcatScanner.py -C --show-cves-descriptions --tomcat-usernames-file '***' --tomcat-passwords-file '***' -ad '***' -ai '***' -au '***' -ap '***' --debug
Apache Tomcat Scanner v3.5 - by @podalirius_

[debug] Loading CVEs from JSON database ...
[debug] Loaded 170 CVEs!
[debug] Loading targets from computers in the domain '***'
[>] Extracting all computers ...
[+] Found 1725 computers in the domain.
[debug] Loading targets from servers in the domain '***'
[>] Extracting all subnets ...
[+] Found 33 subnets in the domain.
[debug] Target '***' was not added.
[debug] Target '***' was not added.
[+] Targeting 7 ports on 665786 hosts.
[+] Searching for Apache Tomcats servers on specified targets ...
...

In the following code snippet, the script calls get_subnets() as long as domain credentials are provided, regardless of the value of --subnets.

# 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.debug:
print("[debug] Loading targets from servers in the domain '%s'" % options.auth_domain)
targets += get_subnets(
auth_domain=options.auth_domain,
auth_dc_ip=options.auth_dc_ip,
auth_username=options.auth_user,
auth_password=options.auth_password,
auth_hashes=options.auth_hashes,
use_ldaps=options.ldaps,
__print=True
)

@p0dalirius p0dalirius self-assigned this Jun 28, 2023
@p0dalirius p0dalirius added the bug Something isn't working label Jun 28, 2023
@p0dalirius p0dalirius changed the title The option '--subnets' is ignored [bug] The option '--subnets' is ignored Jun 28, 2023
@p0dalirius
Copy link
Owner

Thank you I will fix this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants