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
|
2013-08-30 21:28:33 +00:00
|
|
|
include PostMixin
|
|
|
|
|
2013-09-05 20:00:58 +00:00
|
|
|
def setup; end
|
2013-08-30 21:28:33 +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
|
2012-05-17 22:13:25 +00:00
|
|
|
end
|
|
|
|
|
2010-12-27 17:56:29 +00:00
|
|
|
end
|
|
|
|
|