Path: blob/master/lib/rex/post/meterpreter/extension.rb
19850 views
# -*- coding: binary -*-12module Rex3module Post4module Meterpreter56#7# An error that is raised when a particular Meterpreter extension can not be8# loaded for any reason.9#10# @attr_reader [String] name The name of the extension that could not be loaded.11class ExtensionLoadError < RuntimeError12attr_reader :name1314# @param [String] name The name of the extension that could not be loaded.15def initialize(name:)16@name = name17super18end19end2021###22#23# Base class for all extensions that holds a reference to the24# client context that they are part of. Each extension also has a defined25# name through which it is referenced.26#27###28class Extension2930#31# Initializes the client and name attributes.32#33def initialize(client, name)34self.client = client35self.name = name36end3738#39# The name of the extension.40#41attr_accessor :name42protected43attr_accessor :client # :nodoc:44end4546end; end; end474849