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

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

Overview

Standard API extension.

Defined Under Namespace

Modules: Stream Classes: AudioOutput, Fs, Mic, Net, Sys, Ui, Webcam

Constant Summary collapse

Klass =
Console::CommandDispatcher::Stdapi
Dispatchers =
[
  Klass::Fs,
  Klass::Net,
  Klass::Sys,
  Klass::Ui,
  Klass::Webcam,
  Klass::Mic,
  Klass::AudioOutput
]

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, #docs_dir, #filter_commands, #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, #docs_dir, #help_to_s, #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

Constructor Details

#initialize(shell) ⇒ Stdapi

Initializes an instance of the stdapi command interaction.


43
44
45
46
47
48
49
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi.rb', line 43

def initialize(shell)
  super

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

Instance Method Details

#commandsObject

List of supported commands.


54
55
56
57
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi.rb', line 54

def commands
  {
  }
end

#nameObject

Name for this dispatcher


62
63
64
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi.rb', line 62

def name
  "Standard extension"
end