Class: Rex::Post::Meterpreter::Extension

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/meterpreter/extension.rb

Overview

Base class for all extensions that holds a reference to the client context that they are part of. Each extension also has a defined name through which it is referenced.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, name) ⇒ Extension

Initializes the client and name attributes.


19
20
21
22
# File 'lib/rex/post/meterpreter/extension.rb', line 19

def initialize(client, name)
  self.client = client
  self.name   = name
end

Instance Attribute Details

#nameObject

The name of the extension.


27
28
29
# File 'lib/rex/post/meterpreter/extension.rb', line 27

def name
  @name
end