Skip to content

Commit 7163b8c

Browse files
committed
Fixes rapid7#3915 - NoMethodError private method `rhost'
There's no self.rhost, but rhost is defined
1 parent 10dc6ed commit 7163b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/mssql/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def mssql_login(user='sa', pass='', db='', domain_name='')
173173
#Client time
174174
chall_MsvAvTimestamp = blob_data[:chall_MsvAvTimestamp] || ''
175175

176-
spnopt = {:use_spn => send_spn, :name => self.rhost}
176+
spnopt = {:use_spn => send_spn, :name => rhost}
177177

178178
resp_lm, resp_ntlm, client_challenge, ntlm_cli_challenge = NTLM_UTILS.create_lm_ntlm_responses(user, pass, challenge_key,
179179
domain_name, default_name, default_domain,

0 commit comments

Comments
 (0)