Class: Rex::Post::Meterpreter::Ui::Console::CommandDispatcher::Extapi

Inherits:
Object
  • Object
show all
Includes:
Rex::Post::Meterpreter::Ui::Console::CommandDispatcher
Defined in:
lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb

Overview

Extended API user interface.

Defined Under Namespace

Classes: Adsi, Clipboard, Service, Window, Wmi

Constant Summary collapse

Klass =
Console::CommandDispatcher::Extapi
Dispatchers =
[
  Klass::Window,
  Klass::Service,
  Klass::Clipboard,
  Klass::Adsi,
  Klass::Wmi
]

Instance Attribute Summary

Attributes included from Ui::Text::DispatcherShell::CommandDispatcher

#shell, #tab_complete_items

Instance Method Summary collapse

Methods included from Rex::Post::Meterpreter::Ui::Console::CommandDispatcher

check_hash, #client, #log_error, #msf_loaded?, set_hash

Methods included from Ui::Text::DispatcherShell::CommandDispatcher

#cmd_help, #cmd_help_help, #cmd_help_tabs, #deprecated_cmd, #deprecated_commands, #deprecated_help, #help_to_s, #print, #print_error, #print_good, #print_line, #print_status, #print_warning, #tab_complete_filenames, #update_prompt

Constructor Details

#initialize(shell) ⇒ Extapi

Initializes an instance of the extended API command interaction.



38
39
40
41
42
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb', line 38

def initialize(shell)
  super

  Dispatchers.each { |d| shell.enstack_dispatcher(d) }
end

Instance Method Details

#commandsObject

List of supported commands.



48
49
50
51
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb', line 48

def commands
  {
  }
end

#nameObject

Name for this dispatcher



56
57
58
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb', line 56

def name
  "Extended API Extension"
end