Files
metasploit-gs/lib/msf/ui/common.rb
T
Matt Miller 06ac34faf1 fixes #9, added MODULEPATH var, and msfencode/msfpayload support it as well
git-svn-id: file:///home/svn/framework3/trunk@4436 4d416f70-5f16-0410-b530-b9f4589650da
2007-02-18 12:27:17 +00:00

33 lines
579 B
Ruby

module Msf
module Ui
#
# Common functions needed by more than one user interface
#
class Common
# Process the command line argument vector, handling common global
# var/value pairs that can be used to control additional framework
# features
def self.process_cli_arguments(framework, argv)
argv.delete_if { |assign|
var, val = assign.split(/=/)
next if var.nil? or val.nil?
case var.downcase
# Add an additional module search path
when "modulepath"
framework.modules.add_module_path(val)
true
else
false
end
}
end
end
end
end