Files
metasploit-gs/lib/msf/base/simple/module.rb
T
Matt Miller d62566a68f lots of changes, making the simple wrapper better, lots of improvements
git-svn-id: file:///home/svn/incoming/trunk@2750 4d416f70-5f16-0410-b530-b9f4589650da
2005-07-14 06:34:58 +00:00

35 lines
620 B
Ruby

require 'msf/base'
module Msf
module Simple
###
#
# Module
# ------
#
# Simple module wrapper that provides some common methods for dealing with
# modules, such as importing options and other such things.
#
###
module Module
#
# Imports extra options from the supplied hash either as a string or as a
# hash.
#
def _import_extra_options(opts)
# If options were supplied, import them into the payload's
# datastore
if (opts['Option'])
self.datastore.import_options_from_hash(opts['Options'])
elsif (opts['OptionStr'])
self.datastore.import_options_from_s(opts['OptionStr'])
end
end
end
end
end