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.



34
35
36
37
# File 'lib/rex/post/meterpreter/extension.rb', line 34

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

Instance Attribute Details

#clientObject (protected)

:nodoc:



44
45
46
# File 'lib/rex/post/meterpreter/extension.rb', line 44

def client
  @client
end

#nameObject

The name of the extension.



42
43
44
# File 'lib/rex/post/meterpreter/extension.rb', line 42

def name
  @name
end