Nmap Scripting Engine – MySQL

Nmap Usage

Nmap needs the following information port number, script name, any script arguments (optional), and the IP of the target.

nmap -p <port> –script <script-same> –script-args <script arguemens> <target IP>

MySQL listing databases

nmap -p 3306 –script mysql-databases –script-args mysqluser=root 192.168.2.66

MySQL empty password

nmap -p3306 –script mysql-empty-password,mysql-databases 192.168.2.66

MySQL user listing

nmap -p3306 –script mysql-empty-password,mysql-users 192.168.2.66

MySQL variables

nmap -p3306 –script mysql-empty-password,mysql-variables 192.168.2.66

To Be Continued…