File mysql-info
Download: http://nmap.org/svn/scripts/mysql-info.nse
User Summary
Connects to a MySQL server and prints information such as the protocol and version numbers, thread ID, status, capabilities, and the password salt.
If service detection is performed and the server appears to be blocking our host or is blocked because of too many connections, then this script isn't run (see the portrule).
Script Output
3306/tcp open mysql | mysql-info: Protocol: 10 | Version: 5.0.51a-3ubuntu5.1 | Thread ID: 7 | Some Capabilities: Connect with DB, Transactions, Secure Connection | Status: Autocommit |_ Salt: bYyt\NQ/4V6IN+*3`imj
Requires
categories default discovery safe
author Kris Katterjohn
copyright © Same as Nmap--See http://nmap.org/book/man-legal.html
Functions
| capabilities (num) | Converts a number to a string description of the capabilities |
| getstring (orig) | Grabs NUL-terminated string |
| ntoh3 (num) | Converts three bytes into a number |
| ntohl (num) | Converts four bytes into a number |
| ntohs (num) | Converts two bytes into a number |
Functions
- capabilities (num)
-
Converts a number to a string description of the capabilities
Parameters
- num: Start of the capabilities data
Return value:
String describing the capabilities offered - getstring (orig)
-
Grabs NUL-terminated string
Parameters
- orig: Start of the string
Return value:
The NUL-terminated string - ntoh3 (num)
-
Converts three bytes into a number
Parameters
- num: Start of the three bytes
Return value:
The converted number - ntohl (num)
-
Converts four bytes into a number
Parameters
- num: Start of the four bytes
Return value:
The converted number - ntohs (num)
-
Converts two bytes into a number
Parameters
- num: Start of the two bytes
Return value:
The converted number




