Skip to content

Commit 1bfb31e

Browse files
committed
Land rapid7#6768, moar fixes for ghetto Bool checking
2 parents feb1394 + 99b4d0a commit 1bfb31e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/auxiliary/scanner/http/owa_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def try_user_pass(opts)
158158
'Cookie' => 'PBack=0'
159159
}
160160

161-
if (datastore['SSL'].to_s.match(/^(t|y|1)/i))
161+
if datastore['SSL']
162162
if action.name == "OWA_2013"
163163
data = 'destination=https://' << vhost << '/owa&flags=4&forcedownlevel=0&username=' << user << '&password=' << pass << '&isUtf8=1'
164164
else

modules/auxiliary/server/fakedns.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def run
7070
@log_console = false
7171
@log_database = false
7272

73-
if (datastore['LogConsole'].to_s.match(/^(t|y|1)/i))
73+
if datastore['LogConsole']
7474
@log_console = true
7575
end
7676

77-
if (datastore['LogDatabase'].to_s.match(/^(t|y|1)/i))
77+
if datastore['LogDatabase']
7878
@log_database = true
7979
end
8080

0 commit comments

Comments
 (0)