Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for MySQL 5.7 and above #9525

Merged
merged 1 commit into from Feb 8, 2018
Merged

Conversation

OsandaMalith
Copy link
Contributor

Starting from MySQL 5.7 the 'password' column was changed to 'authentication_string'. I've added a check to determine the version. If the version is higher than 5.6 the column 'authentication_string' will be used instead of 'password'. Tested on both MySQL 5.6 and 5.7.

The bug due to non existence of 'password' column in MySQL 5.7:

hashdump

Starting from MySQL 5.7 the password column was changed to authentication_string. I've added a check to determine the version. Tested on both MySQL 5.6 and 5.7.
@busterb
Copy link
Member

busterb commented Feb 8, 2018

@OsandaMalith you'll want to check the result of the automated checks above and resolve them. To test locally, run ./tools/dev/msftidy.rb modules/auxiliary/scanner/mysql/mysql_hashdump.rb

@busterb busterb self-assigned this Feb 8, 2018
@busterb busterb merged commit 00ead05 into rapid7:master Feb 8, 2018
@busterb
Copy link
Member

busterb commented Feb 8, 2018

See 1bb5499, I went ahead and fixed some of the minor style issues in the module and made the linter happy.

Thanks a lot for the update @OsandaMalith !

jmartin-tech pushed a commit to jmartin-tech/metasploit-framework that referenced this pull request Feb 12, 2018
@allrosenthal-r7
Copy link

@busterb can you please add release notes to the PR?

@allrosenthal-r7
Copy link

Release Notes

This fix resolves an issue caused by renaming the 'password' column as 'authentication_string' in MySQL version 5.7 and onwards. The auxiliary/scanner/mysql/mysql_hashdump module now checks the MySQL version and uses the appropriate name for the column.

@allrosenthal-r7 allrosenthal-r7 added the rn-fix release notes fix label Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants