See #3781. smb_login implements the special keyword of <BLANK> (but also needs to be nil safe, which this fixes)
git-svn-id: file:///home/svn/framework3/trunk@12257 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
30fb75c676
commit
e07147142f
|
@ -130,10 +130,10 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
# slashes.
|
# slashes.
|
||||||
if datastore["PRESERVE_DOMAINS"]
|
if datastore["PRESERVE_DOMAINS"]
|
||||||
d,u = domain_username_split(user)
|
d,u = domain_username_split(user)
|
||||||
datastore["SMBUser"] = u.gsub(/<BLANK>/i,"")
|
datastore["SMBUser"] = u.to_s.gsub(/<BLANK>/i,"")
|
||||||
datastore["SMBDomain"] = d if d
|
datastore["SMBDomain"] = d if d
|
||||||
else
|
else
|
||||||
datastore["SMBUser"] = user.gsub(/<BLANK>/i,"")
|
datastore["SMBUser"] = user.to_s.gsub(/<BLANK>/i,"")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Connection problems are dealt with at a higher level
|
# Connection problems are dealt with at a higher level
|
||||||
|
|
Loading…
Reference in New Issue