mysql-query
脚本使用类型:
portrule
脚本所属分类:
auth, discovery, safe
脚本下载地址: http://nmap.org/svn/scripts/mysql-query.nse
Runs a query against a MySQL database and returns the results as a table.
do not display column headers (default: false)
the query for which to return the results
(optional) the username used to authenticate to the database server
(optional) the password used to authenticate to the database server
执行格式
nmap -p 3306 <ip> --script mysql-query --script-args='query="<query>"[,username=<username>,password=<password>]'
PORT STATE SERVICE 3306/tcp open mysql | mysql-query: | host user | 127.0.0.1 root | localhost debian-sys-maint | localhost root | ubu1110 root | | Query: SELECT host, user FROM mysql.user |_ User: root
Author: Patrik Karlsson
License: VER007 整理 http://www.ver007.com