Files
metasploit-gs/lib/msf/core/handler/reverse_https.rb
T

51 lines
773 B
Ruby
Raw Normal View History

# -*- coding: binary -*-
require 'rex/io/stream_abstraction'
require 'rex/sync/ref'
2012-08-25 15:43:27 -04:00
require 'msf/core/handler/reverse_http'
2010-04-03 05:37:40 +00:00
module Msf
module Handler
###
#
# This handler implements the HTTP SSL tunneling interface.
#
###
module ReverseHttps
include Msf::Handler::ReverseHttp
2010-04-03 05:37:40 +00:00
#
# Returns the string representation of the handler type
2010-04-03 05:37:40 +00:00
#
def self.handler_type
return "reverse_https"
end
#
# Returns the connection-described general handler type, in this case
# 'tunnel'.
#
def self.general_handler_type
"tunnel"
end
#
# Initializes the HTTP SSL tunneling handler.
#
def initialize(info = {})
super
register_options(
[
OptPort.new('LPORT', [ true, "The local listener port", 8443 ])
2010-04-03 05:37:40 +00:00
], Msf::Handler::ReverseHttps)
2010-04-03 05:37:40 +00:00
end
end
end
end