Module: Msf::Handler::FindTty

Includes:
FindPort
Defined in:
lib/msf/core/handler/find_tty.rb

Overview

This handler expects a interactive TTY on the supplied socket/io object

Constant Summary

Constants included from Msf::Handler

Claimed, Unused

Instance Attribute Summary

Attributes included from Msf::Handler

#exploit_config, #parent_payload

Class Method Summary collapse

Instance Method Summary collapse

Methods included from FindPort

#handler

Methods included from Msf::Handler

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

Class Method Details

.general_handler_typeObject

Returns the connection oriented general handler type, in this case 'none'


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

def self.general_handler_type
  "none"
end

.handler_typeObject

Returns the string representation of the handler type, in this case 'none', which is kind of a lie, but we don't have a better way to handle this yet


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

def self.handler_type
  return "none"
end

Instance Method Details

#initialize(info = {}) ⇒ Object

Remove the CPORT option from our included FindPort class


36
37
38
39
# File 'lib/msf/core/handler/find_tty.rb', line 36

def initialize(info = {})
  super
  options.remove_option('CPORT')
end