Skip to content

Commit

Permalink
Updates to work with newer versions of MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 committed Mar 28, 2024
1 parent 47fc61f commit 34ebf07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auxiliary/admin/mysql/mysql_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down Expand Up @@ -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:")
Expand Down

0 comments on commit 34ebf07

Please sign in to comment.