From 34ebf07388683f40cc39fa9dc49f3028b863fffd Mon Sep 17 00:00:00 2001 From: cgranleese-r7 Date: Thu, 28 Mar 2024 10:34:38 +0000 Subject: [PATCH] Updates to work with newer versions of MySQL --- modules/auxiliary/admin/mysql/mysql_enum.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/admin/mysql/mysql_enum.rb b/modules/auxiliary/admin/mysql/mysql_enum.rb index 4a32771a43b86..14903e7744cad 100644 --- a/modules/auxiliary/admin/mysql/mysql_enum.rb +++ b/modules/auxiliary/admin/mysql/mysql_enum.rb @@ -114,7 +114,7 @@ def run # Account Enumeration # Enumerate all accounts with their password hashes print_status("Enumerating Accounts:") - query = "select user, host, password from mysql.user" + query = "select user, host, authentication_string from mysql.user" res = mysql_query(query) if res and res.size > 0 print_status("\tList of Accounts with Password Hashes:") @@ -229,7 +229,7 @@ def run end # Blank Password Check - queryblankpass = "select user, host, password from mysql.user where length(password) = 0 or password is null" + queryblankpass = "select user, host, authentication_string from mysql.user where length(authentication_string) = 0 or authentication_string is null" res = mysql_query(queryblankpass) if res and res.size > 0 print_status("\tThe following accounts have empty passwords:")