Class: Rex::Post::Meterpreter::Extensions::Extapi::Extapi

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

Overview

This meterpreter extension contains an extended API which will allow for more

advanced enumeration of the victim.

Instance Attribute Summary

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

#name

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Extapi

Returns a new instance of Extapi


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/rex/post/meterpreter/extensions/extapi/extapi.rb', line 24

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

  client.register_extension_aliases(
    [
      {
        'name' => 'extapi',
        'ext'  => ObjectAliases.new(
          {
            'window'    => Rex::Post::Meterpreter::Extensions::Extapi::Window::Window.new(client),
            'service'   => Rex::Post::Meterpreter::Extensions::Extapi::Service::Service.new(client),
            'clipboard' => Rex::Post::Meterpreter::Extensions::Extapi::Clipboard::Clipboard.new(client),
            'adsi'      => Rex::Post::Meterpreter::Extensions::Extapi::Adsi::Adsi.new(client),
            'wmi'       => Rex::Post::Meterpreter::Extensions::Extapi::Wmi::Wmi.new(client)
          })
      },
    ])
end