Skip to content

Commit

Permalink
Default to NTLM auth, since plaintext will almost certainly never work
Browse files Browse the repository at this point in the history
  • Loading branch information
smashery committed Nov 27, 2023
1 parent 622277e commit 7ab4876
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/auxiliary/gather/asrep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def initialize(info = {})
OptString.new('RHostname', [ true, "The domain controller's hostname"], aliases: ['LDAP::Rhostname']),
]
)
register_advanced_options(
[
OptEnum.new('LDAP::Auth', [true, 'The Authentication mechanism to use', Msf::Exploit::Remote::AuthOption::NTLM, Msf::Exploit::Remote::AuthOption::LDAP_OPTIONS]),
]
)

default_config_file_path = File.join(::Msf::Config.data_directory, 'auxiliary', 'gather', 'ldap_query', 'ldap_queries_default.yaml')
loaded_queries = safe_load_queries(default_config_file_path) || []
Expand Down

0 comments on commit 7ab4876

Please sign in to comment.