MySQL enumeration
Techniques for enumerating MySQL databases, extracting schema info, user privileges, version fingerprinting, and identifying misconfigurations during penetration testing.
HackIndex.io
Language
MySQL runs on TCP port 3306 and is one of the most widely deployed relational databases. Nmap identifies it as mysql. MySQL and its fork MariaDB power a large share of web applications and are common targets in both external and internal assessments.
Remote root login without a password, weak credentials, and overly permissive user grants are frequent findings. MySQL's LOAD_FILE() and INTO OUTFILE functions can read and write files on the server when the database user has sufficient privileges. User-defined functions (UDFs) provide a path to OS command execution.
Connect with mysql client or test credentials with hydra and crackmapexec. After login, check the current user's privileges, enumerate databases, and look for sensitive data. Nmap's mysql-info, mysql-enum, and mysql-empty-password scripts cover initial enumeration.
Covers MySQL version, auth, databases, users, grants, and data
Techniques for enumerating MySQL databases, extracting schema info, user privileges, version fingerprinting, and identifying misconfigurations during penetration testing.
Default creds, FILE privilege, remote access, and weak hash checks
Brute-force, file read/write, UDF abuse, and hash cracking guides
Exploit MySQL to extract password hashes from user tables, then crack them offline using tools like Hashcat or John the Ripper to gain credential access.
Enumerate MySQL internals, harvest creds from app configs
Covers MySQL enumeration techniques post-compromise, including user privilege extraction, database schema mapping, credential harvesting, and UDF-based privilege escalation paths.
Guides for extracting MySQL data via dumps, queries, and file output
We use cookies to improve your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy.