Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/post/meterpreter/extensions/extapi/extapi.rb
Views: 11791
# -*- coding: binary -*-12require 'rex/post/meterpreter/extensions/extapi/tlv'3require 'rex/post/meterpreter/extensions/extapi/command_ids'4require 'rex/post/meterpreter/extensions/extapi/window/window'5require 'rex/post/meterpreter/extensions/extapi/service/service'6require 'rex/post/meterpreter/extensions/extapi/clipboard/clipboard'7require 'rex/post/meterpreter/extensions/extapi/adsi/adsi'8require 'rex/post/meterpreter/extensions/extapi/ntds/ntds'9require 'rex/post/meterpreter/extensions/extapi/pageant/pageant'10require 'rex/post/meterpreter/extensions/extapi/wmi/wmi'1112module Rex13module Post14module Meterpreter15module Extensions16module Extapi1718###19#20# This meterpreter extension contains an extended API which will allow for more21# advanced enumeration of the victim.22#23###24class Extapi < Extension2526def self.extension_id27EXTENSION_ID_EXTAPI28end2930def initialize(client)31super(client, 'extapi')3233client.register_extension_aliases(34[35{36'name' => 'extapi',37'ext' => ObjectAliases.new(38{39'window' => Rex::Post::Meterpreter::Extensions::Extapi::Window::Window.new(client),40'service' => Rex::Post::Meterpreter::Extensions::Extapi::Service::Service.new(client),41'clipboard' => Rex::Post::Meterpreter::Extensions::Extapi::Clipboard::Clipboard.new(client),42'adsi' => Rex::Post::Meterpreter::Extensions::Extapi::Adsi::Adsi.new(client),43'ntds' => Rex::Post::Meterpreter::Extensions::Extapi::Ntds::Ntds.new(client),44'pageant' => Rex::Post::Meterpreter::Extensions::Extapi::Pageant::Pageant.new(client),45'wmi' => Rex::Post::Meterpreter::Extensions::Extapi::Wmi::Wmi.new(client)46})47},48])49end5051end5253end; end; end; end; end545556