Sha256: 9e04d60bd4235cd0ca2135417306fbadeb9f1d9bf53de0b53a97a71470aabdcf

Contents?: true

Size: 1.13 KB

Versions: 15

Compression:

Stored size: 1.13 KB

Contents

# -*- coding: binary -*-
require 'rex/post/meterpreter'

module Rex
module Post
module Meterpreter
module Ui

###
#
# Extended API user interface.
#
###
class Console::CommandDispatcher::Extapi

  require 'rex/post/meterpreter/ui/console/command_dispatcher/extapi/window'
  require 'rex/post/meterpreter/ui/console/command_dispatcher/extapi/service'
  require 'rex/post/meterpreter/ui/console/command_dispatcher/extapi/clipboard'
  require 'rex/post/meterpreter/ui/console/command_dispatcher/extapi/adsi'
  require 'rex/post/meterpreter/ui/console/command_dispatcher/extapi/wmi'

  Klass = Console::CommandDispatcher::Extapi

  Dispatchers =
    [
      Klass::Window,
      Klass::Service,
      Klass::Clipboard,
      Klass::Adsi,
      Klass::Wmi
    ]

  include Console::CommandDispatcher

  #
  # Initializes an instance of the extended API command interaction.
  #
  def initialize(shell)
    super

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

  #
  #
  # List of supported commands.
  #
  def commands
    {
    }
  end

  #
  # Name for this dispatcher
  #
  def name
    "Extended API Extension"
  end

end

end
end
end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.12 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.11 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.10 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.9 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.8 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.7 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.5 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.4 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
dstruct-0.0.1 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.3 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
librex-0.0.999 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
rex-2.0.2 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
librex-0.0.71 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
librex-0.0.70 lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb