metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

MetasploitModule#mysql_version_check

Tmtm's rbmysql is only good for recent versions of mysql, according
to http://www.tmtm.org/en/mysql/ruby/. We'll need to write our own
auth checker for earlier versions. Shouldn't be too hard.
This code is essentially the same as the mysql_version module, just less
whitespace and returns false on errors.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open modules/auxiliary/scanner/mysql/mysql_login.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-MetasploitModule-mysql_version_check-for-pr


# Commit to git

git add modules/auxiliary/scanner/mysql/mysql_login.rbgit commit -m "better docs for MetasploitModule#mysql_version_check"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-MetasploitModule-mysql_version_check-for-pr

hub pull-request


# Celebrate!