2012-06-29 00:18:28 -05:00
|
|
|
# -*- coding: binary -*-
|
2010-02-23 17:59:35 +00:00
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
|
module Script
|
2010-02-24 23:07:08 +00:00
|
|
|
class Meterpreter < Base
|
2010-02-23 17:59:35 +00:00
|
|
|
|
2021-08-11 15:42:27 +01:00
|
|
|
begin
|
|
|
|
|
include Msf::Post::Windows::Priv
|
|
|
|
|
include Msf::Post::Windows::Eventlog
|
|
|
|
|
include Msf::Post::Common
|
|
|
|
|
include Msf::Post::Windows::Registry
|
|
|
|
|
include Msf::Post::File
|
|
|
|
|
include Msf::Post::Windows::Services
|
|
|
|
|
include Msf::Post::Windows::Accounts
|
|
|
|
|
rescue ::LoadError
|
|
|
|
|
end
|
2010-05-02 00:09:01 +00:00
|
|
|
|
2021-08-11 15:42:27 +01:00
|
|
|
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
|
2010-02-23 17:59:35 +00:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|