Sha256: fa92e06fe273d0271200d07e10f7969abb96052fb9de8edd2dd31a863176dd17

Contents?: true

Size: 1.36 KB

Versions: 10

Compression:

Stored size: 1.36 KB

Contents

# -*- coding: binary -*-

require 'rex/post/meterpreter/extensions/extapi/tlv'
require 'rex/post/meterpreter/extensions/extapi/window/window'
require 'rex/post/meterpreter/extensions/extapi/service/service'
require 'rex/post/meterpreter/extensions/extapi/clipboard/clipboard'
require 'rex/post/meterpreter/extensions/extapi/adsi/adsi'
require 'rex/post/meterpreter/extensions/extapi/wmi/wmi'

module Rex
module Post
module Meterpreter
module Extensions
module Extapi

###
#
# This meterpreter extension contains an extended API which will allow for more
#  advanced enumeration of the victim.
#
###
class Extapi < Extension

  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

end

end; end; end; end; end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
rex-2.0.8 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
rex-2.0.7 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
rex-2.0.5 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
rex-2.0.4 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
dstruct-0.0.1 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
rex-2.0.3 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
librex-0.0.999 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
rex-2.0.2 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
librex-0.0.71 lib/rex/post/meterpreter/extensions/extapi/extapi.rb
librex-0.0.70 lib/rex/post/meterpreter/extensions/extapi/extapi.rb