Module: Msf::Handler::ReverseHttps

Includes:
Msf::Handler::Reverse::SSL, ReverseHttp
Defined in:
lib/msf/core/handler/reverse_https.rb

Overview

This handler implements the HTTP SSL tunneling interface.

Constant Summary

Constants included from Rex::Payloads::Meterpreter::UriChecksum

Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_CONN, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_CONN_MAX_LEN, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INITJ, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INITN, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INITP, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INITW, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INIT_CONN, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_MIN_LEN, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_MODES, Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_UUID_MIN_LEN

Constants included from Msf::Handler

Claimed, Unused

Instance Attribute Summary

Attributes included from ReverseHttp

#service

Attributes included from Msf::Handler

#exploit_config, #parent_payload, #pending_connections, #session_waiter_event, #sessions

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ReverseHttp

#comm_string, #listener_uri, #lookup_proxy_settings, #luri, #on_request, #payload_uri, #print_prefix, #scheme, #setup_handler, #ssl?, #stop_handler

Methods included from Payload::Windows::VerifySsl

#get_ssl_cert_hash

Methods included from Rex::Payloads::Meterpreter::UriChecksum

#generate_uri_checksum, #generate_uri_uuid, #process_uri_resource, #uri_checksum_lookup

Methods included from Msf::Handler::Reverse::Comm

#select_comm, #via_string

Methods included from Reverse

#bind_addresses, #bind_port, #is_loopback_address?, #setup_handler

Methods included from Msf::Handler

#add_handler, #cleanup_handler, #create_session, #handle_connection, #handler, #handler_name, #interrupt_wait_for_session, #register_session, #setup_handler, #start_handler, #stop_handler, #wait_for_session, #wfs_delay

Class Method Details

.general_handler_typeObject

Returns the connection-described general handler type, in this case ‘tunnel’.



29
30
31
# File 'lib/msf/core/handler/reverse_https.rb', line 29

def self.general_handler_type
  "tunnel"
end

.handler_typeObject

Returns the string representation of the handler type



21
22
23
# File 'lib/msf/core/handler/reverse_https.rb', line 21

def self.handler_type
  return "reverse_https"
end

Instance Method Details

#initialize(info = {}) ⇒ Object

Initializes the HTTP SSL tunneling handler.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/msf/core/handler/reverse_https.rb', line 36

def initialize(info = {})
  super

  register_options(
    [
      OptPort.new('LPORT', [ true, "The local listener port", 8443 ]),
    ], Msf::Handler::ReverseHttps)

  register_advanced_options(
    [
      OptBool.new('StagerVerifySSLCert', [false, "Whether to verify the SSL certificate in Meterpreter"])
    ], Msf::Handler::ReverseHttps)

end