Script mysql-databases

Script types: portrule
Categories: discovery, intrusive
Download: https://svn.nmap.org/nmap/scripts/mysql-databases.nse

Script Summary

Attempts to list all databases on a MySQL server.

Script Arguments

mysqluser

The username to use for authentication. If unset it attempts to use credentials found by mysql-brute or mysql-empty-password.

mysqlpass

The password to use for authentication. If unset it attempts to use credentials found by mysql-brute or mysql-empty-password.

Example Usage

nmap -sV --script=mysql-databases <target>

Script Output

3306/tcp open  mysql
| mysql-databases:
|   information_schema
|   mysql
|   horde
|   album
|   mediatomb
|_  squeezecenter

Requires


Author:

  • Patrik Karlsson

License: Same as Nmap--See https://nmap.org/book/man-legal.html