Class: Rex::Post::Meterpreter::Extensions::Stdapi_Net::Stdapi_Net
- Inherits:
 - 
      Rex::Post::Meterpreter::Extension
      
        
- Object
 - Rex::Post::Meterpreter::Extension
 - Rex::Post::Meterpreter::Extensions::Stdapi_Net::Stdapi_Net
 
 
- Defined in:
 - lib/rex/post/meterpreter/extensions/stdapi_net/stdapi_net.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_Net 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initializes an instance of the Standard API (Net Namespace) extension.
 
Constructor Details
#initialize(client) ⇒ Stdapi_Net
Initializes an instance of the Standard API (Net Namespace) extension.
      29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46  | 
    
      # File 'lib/rex/post/meterpreter/extensions/stdapi_net/stdapi_net.rb', line 29 def initialize(client) super(client, 'stdapi_net') # Alias the following things on the client object so that they # can be directly referenced client.register_extension_aliases( [ { 'name' => 'net', 'ext' => ObjectAliases.new( { 'config' => Rex::Post::Meterpreter::Extensions::Stdapi_Net::Net::Config.new(client), 'socket' => Rex::Post::Meterpreter::Extensions::Stdapi_Net::Net::Socket.new(client), 'resolve' => Rex::Post::Meterpreter::Extensions::Stdapi_Net::Net::Resolve.new(client) }) } ]) end  | 
  
Class Method Details
.extension_id ⇒ Object
      22 23 24  | 
    
      # File 'lib/rex/post/meterpreter/extensions/stdapi_net/stdapi_net.rb', line 22 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.
      51 52 53 54 55  | 
    
      # File 'lib/rex/post/meterpreter/extensions/stdapi_net/stdapi_net.rb', line 51 def brand(klass) klass = klass.dup klass.client = self.client return klass end  |