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-b9f4589650da
unstable
Tod Beardsley 2011-04-06 21:26:46 +00:00
parent 30fb75c676
commit e07147142f
1 changed files with 2 additions and 2 deletions

View File

@ -130,10 +130,10 @@ class Metasploit3 < Msf::Auxiliary
# slashes.
if datastore["PRESERVE_DOMAINS"]
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
else
datastore["SMBUser"] = user.gsub(/<BLANK>/i,"")
datastore["SMBUser"] = user.to_s.gsub(/<BLANK>/i,"")
end
# Connection problems are dealt with at a higher level