Sha256: 2c7e454636624c8472d57515808369479621e4a3c4d3d4a0d9963dfe80b975fd
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
require "msf/aggregator/http/request" require "msf/aggregator/http/responder" module Msf module Aggregator module Http class SslResponder < Responder def initialize(uri) super 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metasploit-aggregator-0.1.0 | lib/msf/aggregator/http/ssl_responder.rb |