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

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

Overview

Lanattacks extension.

Defined Under Namespace

Classes: Dhcp, Tftp

Constant Summary collapse

Klass =
Console::CommandDispatcher::Lanattacks
Dispatchers =
[
  Klass::Dhcp,
  Klass::Tftp
]

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) ⇒ Lanattacks

Initializes an instance of the lanattacks command interaction.



32
33
34
35
36
37
38
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/lanattacks.rb', line 32

def initialize(shell)
  super

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

Instance Method Details

#commandsObject

List of supported commands.



43
44
45
46
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/lanattacks.rb', line 43

def commands
  {
  }
end

#nameObject

Name for this dispatcher



51
52
53
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/lanattacks.rb', line 51

def name
  "Lanattacks extension"
end