Skip to content

Commit a846d08

Browse files
committed
Lands rapid7#3806, @dmaloney-r7's fixes to SMB LoginScanner.
2 parents e5aa5c4 + 5ff4a55 commit a846d08

File tree

1 file changed

+10
-1
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+10
-1
lines changed

lib/metasploit/framework/login_scanner/smb.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,16 @@ def attempt_login(credential)
149149
begin
150150
connect
151151
rescue ::Rex::ConnectionError => e
152-
return Result.new(credential:credential, status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT, proof: e)
152+
result = Result.new(
153+
credential:credential,
154+
status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT,
155+
proof: e,
156+
host: host,
157+
port: port,
158+
protocol: 'tcp',
159+
service_name: 'smb'
160+
)
161+
return result
153162
end
154163
proof = nil
155164

0 commit comments

Comments
 (0)