Sha256: 271bbde182ecab0309660ce356551a928e393b474d16f1e41d38bfd27693a337
Contents?: true
Size: 682 Bytes
Versions: 8
Compression:
Stored size: 682 Bytes
Contents
require "metasploit/aggregator/http/requester" module Metasploit module Aggregator module Http class SslRequester < Requester def initialize(host, port) super(host, port) end 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 def close_connection(connection) connection.sync_close = true connection.close end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems