Nmap mysql-users NSE Script
This page contains detailed information about how to use the mysql-users NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/mysql-users.nse
Script categories: auth, intrusive
Target service / protocol: mysql
Target network port(s): 3306
List of CVEs: -
Script Description
The mysql-users.nse script attempts to list all users on a MySQL server.
Mysql-users NSE Script Arguments
This is a full list of arguments supported by the mysql-users.nse script:
mysqlpass
The password to use for authentication. If unset it attempts to use credentials found by mysql-brute
or mysql-empty-password
.
The username to use for authentication. If unset it attempts to use credentials found by mysql-brute
or mysql-empty-password
.
- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..]
syntax. For example:
nmap --script=mysql-users --script-args mysqlpass=value,mysqluser=value <target>
Mysql-users NSE Script Example Usage
Here's an example of how to use the mysql-users.nse script:
nmap --script=mysql-users <target>
Mysql-users NSE Script Example Output
Here's a sample output from the mysql-users.nse script:
3306/tcp open mysql
| mysql-users:
| test
| root
| test2
| album
| debian-sys-maint
| horde
| mediatomb
|_ squeezecenter
Mysql-users NSE Script Example XML Output
There is no sample XML output for this module. However, by providing the -oX <file>
option, Nmap will produce a XML output and save it in the file.xml
file.
Author
- Patrik Karlsson
References
- https://nmap.org/nsedoc/scripts/mysql-users.html
- https://github.com/nmap/nmap/tree/master/scripts/mysql-users.nse
See Also
Related NSE scripts to the mysql-users.nse script:
- mysql-audit.nse
- mysql-brute.nse
- mysql-databases.nse
- mysql-dump-hashes.nse
- mysql-empty-password.nse
- mysql-enum.nse
- mysql-info.nse
- mysql-query.nse
- mysql-variables.nse
- mysql-vuln-cve2012-2122.nse
Visit Nmap NSE Library for more scripts.
Version
This page has been created based on Nmap version 7.92.