class Metasploit::Aggregator::Http::SslResponder
Public Class Methods
new(uri)
click to toggle source
Calls superclass method
Metasploit::Aggregator::Http::Responder::new
# File lib/metasploit/aggregator/http/ssl_responder.rb, line 8 def initialize(uri) super end
Public Instance Methods
close_connection(connection)
click to toggle source
# File lib/metasploit/aggregator/http/ssl_responder.rb, line 21 def close_connection(connection) connection.sync_close = true connection.close end
get_connection(host, port)
click to toggle source
# File lib/metasploit/aggregator/http/ssl_responder.rb, line 12 def get_connection(host, port) tcp_client = TCPSocket.new host, port ssl_context = OpenSSL::SSL::SSLContext.new ssl_context.ssl_version = :TLSv1 ssl_client = OpenSSL::SSL::SSLSocket.new tcp_client, ssl_context ssl_client.connect ssl_client end