Lands #3806, @dmaloney-r7's fixes to SMB LoginScanner.

bug/bundler_fix
Joe Vennix 2014-09-16 15:35:53 -05:00
commit a846d084ca
No known key found for this signature in database
GPG Key ID: 127B05FB3E85A2B0
1 changed files with 10 additions and 1 deletions

View File

@ -149,7 +149,16 @@ module Metasploit
begin
connect
rescue ::Rex::ConnectionError => e
return Result.new(credential:credential, status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT, proof: e)
result = Result.new(
credential:credential,
status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT,
proof: e,
host: host,
port: port,
protocol: 'tcp',
service_name: 'smb'
)
return result
end
proof = nil