Module: Msf::Handler::FindShell
- Includes:
- FindPort
- Defined in:
- lib/msf/core/handler/find_shell.rb
Overview
This handler expects a plain Unix command shell on the supplied socket
Constant Summary
Constants included from Msf::Handler
Instance Attribute Summary
Attributes included from FindPort
Attributes included from Msf::Handler
#exploit_config, #parent_payload, #pending_connections, #session_waiter_event, #sessions
Class Method Summary collapse
-
.general_handler_type ⇒ Object
Returns the connection oriented general handler type, in this case ‘find’.
-
.handler_type ⇒ Object
Returns the string representation of the handler type, in this case ‘find_shell’.
Instance Method Summary collapse
-
#initialize(info = {}) ⇒ Object
Remove the CPORT option from our included FindPort class.
Methods included from FindPort
#_check_shell, #_find_prefix, #_send_id, #create_session, #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_type ⇒ Object
Returns the connection oriented general handler type, in this case ‘find’.
27 28 29 |
# File 'lib/msf/core/handler/find_shell.rb', line 27 def self.general_handler_type "find" end |
.handler_type ⇒ Object
Returns the string representation of the handler type, in this case ‘find_shell’.
19 20 21 |
# File 'lib/msf/core/handler/find_shell.rb', line 19 def self.handler_type return "find_shell" end |
Instance Method Details
#initialize(info = {}) ⇒ Object
Remove the CPORT option from our included FindPort class
34 35 36 37 |
# File 'lib/msf/core/handler/find_shell.rb', line 34 def initialize(info = {}) super .remove_option('CPORT') end |