smb connection error not setting result properly
if the initial connection from the SMB LoginScanner fails it wouldn't set the target information on the result. this could cause smb_login to throw a stack trace when it calls invalidate_loginbug/bundler_fix
parent
e5aa5c4014
commit
5ff4a55cd2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue