Skip to content

Commit 97ccf7e

Browse files
author
HD Moore
committed
Fixes SSL support for http_login (variable shadowing)
1 parent c39d6e1 commit 97ccf7e

File tree

1 file changed

+4
-1
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+4
-1
lines changed

lib/metasploit/framework/login_scanner/http.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ def check_setup
193193
# login with.
194194
# @return [Result] A Result object indicating success or failure
195195
def attempt_login(credential)
196-
ssl = false if ssl.nil?
197196

198197
result_opts = {
199198
credential: credential,
@@ -314,6 +313,10 @@ def set_sane_defaults
314313
self.ssl = true
315314
end
316315

316+
if self.ssl.nil?
317+
self.ssl = false
318+
end
319+
317320
nil
318321
end
319322

0 commit comments

Comments
 (0)