# MySQL Enumeration Tools

### Nmap's mysql-enum script

Performs valid-user enumeration against MySQL server using a bug discovered and published by [Kingcope](http://seclists.org/fulldisclosure/2012/Dec/9) Server version 5.x are susceptible to an user enumeration attack due to different messages during login when using old authentication mechanism from versions 4.x and earlier.

***

### Metasploit "mysql\_sql" module

This module allows for simple SQL statements to be executed against a MySQL instance given the appropriate credentials.

***

### Metasploit "mysql\_schemadump" module

This module extracts the schema information from a MySQL DB server.

***

### Metasploit "mysql\_hashdump" module

This module extracts the usernames and encrypted password hashes from a MySQL server and stores them for later cracking.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.nomanaziz.me/cybersecurity/penetration-testing/tryhackme/main-methodology/2.-enumeration-scanning/mysql-enumeration-tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
