Class: Rex::Post::Meterpreter::Extensions::Lanattacks::Lanattacks

Inherits:
Rex::Post::Meterpreter::Extension show all
Defined in:
lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb

Overview

This meterpreter extension can currently run DHCP and TFTP servers

Instance Attribute Summary

Attributes inherited from Rex::Post::Meterpreter::Extension

#client, #name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Lanattacks

Initializes an instance of the lanattacks extension.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb', line 28

def initialize(client)
  super(client, 'lanattacks')

  # Alias the following things on the client object so that they
  # can be directly referenced
  client.register_extension_aliases(
    [
      {
        'name' => 'lanattacks',
        'ext'  => ObjectAliases.new(
          {
            'dhcp' => Rex::Post::Meterpreter::Extensions::Lanattacks::Dhcp::Dhcp.new(client),
            'tftp' => Rex::Post::Meterpreter::Extensions::Lanattacks::Tftp::Tftp.new(client)
          }),
      }
    ])
end

Class Method Details

.extension_idObject



21
22
23
# File 'lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb', line 21

def self.extension_id
  EXTENSION_ID_LANATTACKS
end