We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b426c commit 5675c59Copy full SHA for 5675c59
lib/metasploit/framework/ldap/client.rb
@@ -82,8 +82,8 @@ def ldap_auth_opts_kerberos(opts)
82
def ldap_auth_opts_ntlm(opts)
83
auth_opts = {}
84
ntlm_client = RubySMB::NTLM::Client.new(
85
- opts[:username],
86
- opts[:password],
+ (opts[:username].nil? ? '' : opts[:username]),
+ (opts[:password].nil? ? '' : opts[:password]),
87
workstation: 'WORKSTATION',
88
domain: opts[:domain].blank? ? '.' : opts[:domain],
89
flags:
0 commit comments