From e051272a20942e8afde988f7254757841737472f Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Tue, 12 Aug 2014 10:49:35 -0500 Subject: [PATCH] Fix typo MSP-11046 `ActiveSupport::OrderedOptions` automatically create an attribute for any missing keys, so when `options.console.resource` was used it would return `nil` instead of the erroring. The correct option name was `options.console.resources` (note the pluralization). --- lib/metasploit/framework/command/console.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metasploit/framework/command/console.rb b/lib/metasploit/framework/command/console.rb index 6395352822..628d0849c8 100644 --- a/lib/metasploit/framework/command/console.rb +++ b/lib/metasploit/framework/command/console.rb @@ -47,7 +47,7 @@ class Metasploit::Framework::Command::Console < Metasploit::Framework::Command:: driver_options['ModulePath'] = options.modules.path driver_options['Plugins'] = options.console.plugins driver_options['RealReadline'] = options.console.real_readline - driver_options['Resource'] = options.console.resource + driver_options['Resource'] = options.console.resources driver_options['XCommands'] = options.console.commands @driver_options = driver_options