Class: Metasploit::Aggregator::Http::SslResponder
- Defined in:
 - lib/metasploit/aggregator/http/ssl_responder.rb
 
Instance Attribute Summary
Attributes inherited from Responder
#log_messages, #queue, #time, #uri
Instance Method Summary collapse
- #close_connection(connection) ⇒ Object
 - #get_connection(host, port) ⇒ Object
 - 
  
    
      #initialize(uri)  ⇒ SslResponder 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SslResponder.
 
Methods inherited from Responder
get_data, #process_requests, #send_response, #stop_processing
Constructor Details
#initialize(uri) ⇒ SslResponder
Returns a new instance of SslResponder.
      8 9 10  | 
    
      # File 'lib/metasploit/aggregator/http/ssl_responder.rb', line 8 def initialize(uri) super end  | 
  
Instance Method Details
#close_connection(connection) ⇒ Object
      21 22 23 24  | 
    
      # 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) ⇒ Object
      12 13 14 15 16 17 18 19  | 
    
      # 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  |