File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/metasploit/framework/login_scanner
spec/support/shared/examples/metasploit/framework/login_scanner Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 4040 context "without ssl, with non-default port" do
4141 subject ( :http_scanner ) { described_class . new ( port :0 ) }
4242 it "should not set ssl" do
43- expect ( http_scanner . ssl ) . to be_nil
43+ expect ( http_scanner . ssl ) . to be_falsey
4444 expect ( http_scanner . port ) . to eq ( 0 )
4545 end
4646 end
You can’t perform that action at this time.
0 commit comments