Land #6768, moar fixes for ghetto Bool checking

bug/bundler_fix
William Vu 2016-04-09 21:34:14 -05:00
commit 1bfb31e1f6
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class MetasploitModule < Msf::Auxiliary
'Cookie' => 'PBack=0'
}
if (datastore['SSL'].to_s.match(/^(t|y|1)/i))
if datastore['SSL']
if action.name == "OWA_2013"
data = 'destination=https://' << vhost << '/owa&flags=4&forcedownlevel=0&username=' << user << '&password=' << pass << '&isUtf8=1'
else

View File

@ -70,11 +70,11 @@ class MetasploitModule < Msf::Auxiliary
@log_console = false
@log_database = false
if (datastore['LogConsole'].to_s.match(/^(t|y|1)/i))
if datastore['LogConsole']
@log_console = true
end
if (datastore['LogDatabase'].to_s.match(/^(t|y|1)/i))
if datastore['LogDatabase']
@log_database = true
end