Path: blob/master/lib/rex/script/meterpreter.rb
19511 views
# -*- coding: binary -*-12module Rex3module Script4class Meterpreter < Base56begin7include Msf::Post::Windows::Priv8include Msf::Post::Windows::Eventlog9include Msf::Post::Common10include Msf::Post::Windows::Registry11include Msf::Post::File12include Msf::Post::Windows::Services13include Msf::Post::Windows::Accounts14rescue ::LoadError15end1617def initialize(client, path)18# The mixins for `Msf::Post::*` now assume a single info argument is present,19# whilst `::Rex::Script::Base` assumes client and path are provided. Directly call20# the `::Rex::Script::Base` initialize method for now. In the future Rex scripts21# will need to be migrated to use post modules22::Rex::Script::Base.instance_method(:initialize).bind(self).call(client, path)23end24end25end26end27282930