Class: Rex::Post::Meterpreter::Extensions::Stdapi_Railgun::Stdapi_Railgun
- Inherits:
-
Rex::Post::Meterpreter::Extension
- Object
- Rex::Post::Meterpreter::Extension
- Rex::Post::Meterpreter::Extensions::Stdapi_Railgun::Stdapi_Railgun
- Defined in:
- lib/rex/post/meterpreter/extensions/stdapi_railgun/stdapi_railgun.rb
Instance Attribute Summary
Attributes inherited from Rex::Post::Meterpreter::Extension
Class Method Summary collapse
Instance Method Summary collapse
-
#brand(klass) ⇒ Object
Sets the client instance on a duplicated copy of the supplied class.
-
#initialize(client) ⇒ Stdapi_Railgun
constructor
Initializes an instance of the Standard API (Railgun Namespace) extension.
Constructor Details
#initialize(client) ⇒ Stdapi_Railgun
Initializes an instance of the Standard API (Railgun Namespace) extension.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_railgun/stdapi_railgun.rb', line 30 def initialize(client) super(client, 'stdapi_railgun') # Alias the following things on the client object so that they # can be directly referenced client.register_extension_aliases( [ { 'name' => 'railgun', 'ext' => Rex::Post::Meterpreter::Extensions::Stdapi_Railgun::Railgun::Railgun.new(client) }, ]) end |
Class Method Details
.extension_id ⇒ Object
23 24 25 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_railgun/stdapi_railgun.rb', line 23 def self.extension_id Rex::Post::Meterpreter::Extensions::Stdapi::EXTENSION_ID_STDAPI end |
Instance Method Details
#brand(klass) ⇒ Object
Sets the client instance on a duplicated copy of the supplied class.
47 48 49 50 51 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_railgun/stdapi_railgun.rb', line 47 def brand(klass) klass = klass.dup klass.client = self.client return klass end |