Land #10459, Fix PMA scanner vs. non-PMA hosts

GSoC/Meterpreter_Web_Console
Adam Cammack 2018-08-15 14:44:40 -05:00
commit fe75a87cd5
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ module Metasploit
def do_login(username, password)
session_info = get_session_info
# Failed to retrieve session info
return session_info if session_info.is_a?(Hash)
protocol = ssl ? 'https' : 'http'
peer = "#{host}:#{port}"