Post

MySql Enumeration

SQL

In its simplest definition, MySQL is a relational database management system (RDBMS) based on Structured Query Language (SQL). Too many acronyms? Let’s break it down:

Database: A database is simply a persistent, organised collection of structured data

RDBMS: A software or service used to create and manage databases based on a relational model. The word “relational” just means that the data stored in the dataset is organised as tables. Every table relates in some way to each other’s “primary key” or other “key” factors.

when you need to enumerate SQL?

MySQL is likely not going to be the first point of call when getting initial information about the server. You can, as we have in previous tasks, attempt to brute-force default account passwords if you really don’t have any other information; however, in most CTF scenarios, this is unlikely to be the avenue you’re meant to pursue.

Metasploit ModuleModule Description
mysql_sqlmodule performs SQL queries on a remote server when provided with a valid set of credentials.
mysql_enummodule will connect to a remote MySQL database server with a given set of credentials and perform some basic enumeration on it.
mysql_schemadumpmodule extracts the schema information from a MySQL DB server.
This post is licensed under CC BY 4.0 by the author.