1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Make sure vnc closes the socket

This commit is contained in:
James Lee 2014-10-22 15:53:05 -05:00
parent bb119b840a
commit a5a84886ee
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321

View File

@ -56,7 +56,6 @@ module Metasploit
# Create our VNC client overtop of the socket
vnc = Rex::Proto::RFB::Client.new(sock, :allow_none => false)
if vnc.handshake
if vnc_auth(vnc,credential.private)
result_options[:status] = Metasploit::Model::Login::Status::SUCCESSFUL
@ -77,6 +76,8 @@ module Metasploit
proof: e.message,
status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
)
ensure
disconnect
end
::Metasploit::Framework::LoginScanner::Result.new(result_options)