MySQL (Port 3306)
Quick Intro
Nmap
nmap -sV -Pn -vv --script=mysql-audit,mysql-databases,mysql-dump-hashes,mysql-empty-password,mysql-enum,mysql-info,mysql-query,mysql-users,mysql-variables,mysql-vuln-cve2012-2122 $ip -p 3306
nmap -sV -Pn -vv -script=mysql* $ip -p 3306Local Access
mysql -u root
# Connect to root without password
mysql -u root -p
# A password will be asked
# Always test root:root credentialRemote Access
If mysql is running as root
Getting all the information from inside the database
Post Enumeration
MySQL server configuration file
Command History
Log Files
Finding passwords to MySQL
Last updated