Merge remote branch 'kernelsmith/msfconsole-s'
commit
b1ce969c95
|
@ -249,6 +249,13 @@ class Driver < Msf::Ui::Driver
|
||||||
# If the opt is nil here, we load ~/.msf3/msfconsole.rc
|
# If the opt is nil here, we load ~/.msf3/msfconsole.rc
|
||||||
load_resource(opts['Resource'])
|
load_resource(opts['Resource'])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Process any additional startup commands
|
||||||
|
if opts['XCommands'] and opts['XCommands'].kind_of? Array
|
||||||
|
opts['XCommands'].each { |c|
|
||||||
|
run_single(c)
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -101,6 +101,11 @@ class OptsConsole
|
||||||
options['DisableBanner'] = true
|
options['DisableBanner'] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on("-x", "-x <command>", "Execute the specified string as console commands (use ; for multiples)") do |s|
|
||||||
|
options['XCommands'] ||= []
|
||||||
|
options['XCommands'] += s.split(/\s*;\s*/)
|
||||||
|
end
|
||||||
|
|
||||||
opts.separator ""
|
opts.separator ""
|
||||||
opts.separator "Common options:"
|
opts.separator "Common options:"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue