2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
2010-12-27 17:56:29 +00:00
|
|
|
|
2013-05-22 05:11:33 +00:00
|
|
|
require 'msf/core/post_mixin'
|
2010-12-27 17:56:29 +00:00
|
|
|
|
2013-05-22 05:11:33 +00:00
|
|
|
module Msf
|
2012-05-17 22:13:25 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# A Post-exploitation module
|
|
|
|
#
|
|
|
|
#
|
|
|
|
class Post < Msf::Module
|
|
|
|
include PostMixin
|
|
|
|
|
2012-06-06 21:55:44 +00:00
|
|
|
def setup; end
|
|
|
|
|
2012-05-17 22:13:25 +00:00
|
|
|
def type
|
|
|
|
MODULE_POST
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.type
|
|
|
|
MODULE_POST
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Create an anonymous module not tied to a file. Only useful for IRB.
|
|
|
|
#
|
|
|
|
def self.create(session)
|
|
|
|
mod = new
|
|
|
|
mod.instance_variable_set(:@session, session)
|
|
|
|
# Have to override inspect because for whatever reason, +type+ is coming
|
|
|
|
# from the wrong scope and i can't figure out how to fix it.
|
|
|
|
mod.instance_eval do
|
|
|
|
def inspect
|
|
|
|
"#<Msf::Post anonymous>"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
mod.class.refname = "anonymous"
|
|
|
|
|
|
|
|
mod
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-12-27 17:56:29 +00:00
|
|
|
end
|
|
|
|
|