From a956f675ff7a3ddc87aec1cdfceb7e7592d43680 Mon Sep 17 00:00:00 2001 From: Jacob Robles Date: Tue, 14 Aug 2018 06:16:55 -0500 Subject: [PATCH] PMA Scanner Check Error Condition --- lib/metasploit/framework/login_scanner/phpmyadmin.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/metasploit/framework/login_scanner/phpmyadmin.rb b/lib/metasploit/framework/login_scanner/phpmyadmin.rb index f37440857b..267b045422 100644 --- a/lib/metasploit/framework/login_scanner/phpmyadmin.rb +++ b/lib/metasploit/framework/login_scanner/phpmyadmin.rb @@ -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}"