Class: Rex::Script::Meterpreter

Inherits:
Base
  • Object
show all
Defined in:
lib/rex/script/meterpreter.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #client, #error, #framework, #path, #session, #sink, #workspace

Instance Method Summary collapse

Methods inherited from Base

#completed, #output, #print, #print_error, #print_good, #print_line, #print_status, #run

Constructor Details

#initialize(client, path) ⇒ Meterpreter

Returns a new instance of Meterpreter.



18
19
20
21
22
23
24
# File 'lib/rex/script/meterpreter.rb', line 18

def initialize(client, path)
  # The mixins for `Msf::Post::*` now assume a single info argument is present,
  # whilst `::Rex::Script::Base` assumes client and path are provided. Directly call
  # the `::Rex::Script::Base` initialize method for now. In the future Rex scripts
  # will need to be migrated to use post modules
  ::Rex::Script::Base.instance_method(:initialize).bind(self).call(client, path)
end