Module: Msf::Session::Basic
- Includes:
- Msf::Session, Interactive
- Included in:
- Msf::Sessions::AwsInstanceConnectCommandShellBind, Msf::Sessions::AwsSsmCommandShellBind, Msf::Sessions::CommandShell, Msf::Sessions::Custom, Msf::Sessions::EncryptedShell, Msf::Sessions::HWBridge, Msf::Sessions::LDAP, Msf::Sessions::MainframeShell, Msf::Sessions::Pingback, Msf::Sessions::SMB, Msf::Sessions::Sql, Msf::Sessions::SshCommandShellReverse, Msf::Sessions::TTY, Msf::Sessions::VncInject
- Defined in:
- lib/msf/core/session/basic.rb
Overview
This class implements an interactive session using raw input/output in only the most basic fashion.
Instance Attribute Summary
Attributes included from Interactive
Attributes included from Rex::Ui::Interactive
#completed, #interacting, #next_session, #on_command_proc, #on_print_proc, #on_run_command_error_proc, #orig_suspend, #orig_usr1, #orig_winch
Attributes included from Rex::Ui::Subscriber::Input
Attributes included from Rex::Ui::Subscriber::Output
Attributes included from Msf::Session
#alive, #db_record, #exploit, #exploit_datastore, #exploit_task, #exploit_uuid, #framework, #info, #machine_id, #payload_uuid, #routes, #sid, #sname, #target_host, #target_port, #username, #uuid, #via, #workspace
Attributes included from Framework::Offspring
Instance Method Summary collapse
-
#_interact ⇒ Object
protected
Performs the actual raw interaction with the remote side.
-
#desc ⇒ Object
Description of the session.
-
#type ⇒ Object
Basic session.
Methods included from Interactive
#_interact_complete, #_interrupt, #_suspend, #_usr1, #abort_foreground, #abort_foreground_supported, #cleanup, #comm_channel, #initialize, #interactive?, #kill, #run_cmd, #tunnel_local, #tunnel_peer, #user_want_abort?
Methods included from Rex::Ui::Interactive
#_interact_complete, #_interrupt, #_local_fd, #_remote_fd, #_stream_read_local_write_remote, #_stream_read_remote_write_local, #_suspend, #_winch, #detach, #handle_suspend, #handle_usr1, #handle_winch, #interact, #interact_stream, #prompt, #prompt_yesno, #restore_suspend, #restore_usr1, #restore_winch
Methods included from Rex::Ui::Subscriber
Methods included from Rex::Ui::Subscriber::Input
Methods included from Rex::Ui::Subscriber::Output
#flush, #print, #print_blank_line, #print_error, #print_good, #print_line, #print_status, #print_warning
Methods included from Msf::Session
#alive?, #cleanup, #comm_channel, #dead?, #initialize, #inspect, #interactive?, #kill, #log_file_name, #log_source, #name, #name=, #register?, #session_host, #session_host=, #session_port, #session_port=, #session_type, #set_from_exploit, #set_via, #tunnel_local, #tunnel_peer, #tunnel_to_s, type, #via_exploit, #via_payload
Instance Method Details
#_interact ⇒ Object (protected)
Performs the actual raw interaction with the remote side. This can be overridden by derived classes if they wish to do this another way.
36 37 38 39 |
# File 'lib/msf/core/session/basic.rb', line 36 def _interact framework.events.on_session_interact(self) interact_stream(rstream) end |
#desc ⇒ Object
Description of the session.
19 20 21 |
# File 'lib/msf/core/session/basic.rb', line 19 def desc "Basic I/O" end |
#type ⇒ Object
Basic session.
26 27 28 |
# File 'lib/msf/core/session/basic.rb', line 26 def type "basic" end |