Module: Rex::Post::Sql::Ui::Console::CommandDispatcher::Core
- Included in:
- MSSQL::Ui::Console::CommandDispatcher::Core, MySQL::Ui::Console::CommandDispatcher::Core, PostgreSQL::Ui::Console::CommandDispatcher::Core
- Defined in:
- lib/rex/post/sql/ui/console/command_dispatcher/core.rb
Overview
Generic SQL Core commands
Instance Attribute Summary
Attributes included from Ui::Text::DispatcherShell::CommandDispatcher
Instance Method Summary collapse
-
#commands ⇒ Object
List of supported commands.
- #name ⇒ Object
- #unknown_command(cmd, line) ⇒ Object
Methods included from Rex::Post::Sql::Ui::Console::CommandDispatcher
#client, #filter_commands, #initialize, #msf_loaded?, #session
Methods included from Msf::Ui::Console::CommandDispatcher::Session
#cmd_background, #cmd_background_help, #cmd_exit, #cmd_irb, #cmd_irb_help, #cmd_irb_tabs, #cmd_pry, #cmd_pry_help, #cmd_resource, #cmd_resource_help, #cmd_resource_tabs, #cmd_sessions, #cmd_sessions_help
Methods included from Ui::Text::DispatcherShell::CommandDispatcher
#cmd_help, #cmd_help_help, #cmd_help_tabs, #deprecated_cmd, #deprecated_commands, #deprecated_help, #docs_dir, #help_to_s, included, #initialize, #print, #print_error, #print_good, #print_line, #print_status, #print_warning, #tab_complete_directory, #tab_complete_filenames, #tab_complete_generic, #tab_complete_source_address, #update_prompt
Instance Method Details
#commands ⇒ Object
List of supported commands.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/rex/post/sql/ui/console/command_dispatcher/core.rb', line 20 def commands cmds = { '?' => 'Help menu', 'background' => 'Backgrounds the current session', 'bg' => 'Alias for background', 'exit' => 'Terminate the PostgreSQL session', 'help' => 'Help menu', 'irb' => 'Open an interactive Ruby shell on the current session', 'pry' => 'Open the Pry debugger on the current session', 'sessions' => 'Quickly switch to another session', } reqs = {} filter_commands(cmds, reqs) end |
#name ⇒ Object
38 39 40 |
# File 'lib/rex/post/sql/ui/console/command_dispatcher/core.rb', line 38 def name 'Core' end |
#unknown_command(cmd, line) ⇒ Object
42 43 44 45 46 |
# File 'lib/rex/post/sql/ui/console/command_dispatcher/core.rb', line 42 def unknown_command(cmd, line) status = super status end |