Skip to content

Commit 13df676

Browse files
committed
Update validate method fix failed test
1 parent a1c95e6 commit 13df676

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/gather/ldap_esc_vulnerable_cert_finder.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,7 @@ def get_ip_addresses_by_fqdn(host_fqdn)
955955
end
956956

957957
def validate
958+
super
958959
if (datastore['RUN_REGISTRY_CHECKS']) && !%w[auto plaintext ntlm].include?(datastore['LDAP::Auth'].downcase)
959960
raise Msf::OptionValidateError, ["RUN_REGISTRY_CHECKS is incompatible with LDAP::Auth type '#{datastore['LDAP::Auth']}'. Supported types are: plaintext, NTLM."]
960961
end
@@ -968,8 +969,6 @@ def run
968969
@fqdns = {}
969970
@certificate_details = {} # Initialize to empty hash since we want to only keep one copy of each certificate template along with its details.
970971

971-
validate
972-
973972
ldap_connect do |ldap|
974973
validate_bind_success!(ldap)
975974

0 commit comments

Comments
 (0)