Nmap mysql-variables NSE Script


This page contains detailed information about how to use the mysql-variables 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-variables.nse
Script categories: discovery, intrusive
Target service / protocol: mysql
Target network port(s): 3306
List of CVEs: -

Script Description


The mysql-variables.nse script attempts to show all variables on a MySQL server.

Mysql-variables NSE Script Arguments


This is a full list of arguments supported by the mysql-variables.nse script:

mysqlpass

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

mysqluser

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-variables --script-args mysqlpass=value,mysqluser=value <target>

Mysql-variables NSE Script Example Usage


Here's an example of how to use the mysql-variables.nse script:

nmap --script=mysql-variables <target>

Mysql-variables NSE Script Example Output


Here's a sample output from the mysql-variables.nse script:

3306/tcp open  mysql
| mysql-variables:
|   auto_increment_increment: 1
|   auto_increment_offset: 1
|   automatic_sp_privileges: ON
|   back_log: 50
|   basedir: /usr/
|   binlog_cache_size: 32768
|   bulk_insert_buffer_size: 8388608
|   character_set_client: latin1
|   character_set_connection: latin1
|   character_set_database: latin1
|   .
|   .
|   .
|   version_comment: (Debian)
|   version_compile_machine: powerpc
|   version_compile_os: debian-linux-gnu
|_  wait_timeout: 28800

Mysql-variables 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


See Also


Related NSE scripts to the mysql-variables.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.