nuclei-templates/javascript/enumeration/mysql/mysql-info.yaml

40 lines
1.0 KiB
YAML

id: mysql-info
info:
name: MySQL Info - Enumeration
author: pussycat0x
severity: info
description: |
Connects to a MySQL server and prints information such as the protocol and version numbers
reference:
- https://nmap.org/nsedoc/scripts/mysql-info.html
metadata:
max-request: 1
shodan-query: "port:3306"
tags: js,mssql,network,enum
javascript:
- pre-condition: |
isPortOpen(Host,Port);
code: |
var m = require("nuclei/mysql");
var c = m.MySQLClient();
var response = c.FingerprintMySQL(Host,Port);
Export(response);
args:
Host: "{{Host}}"
Port: "3306"
matchers:
- type: dsl
dsl:
- "success == true"
extractors:
- type: json
json:
- '"Version: "+ .Version '
- '"TLS "+ .TLS'
- '"Transport: "+ .Transport '
# digest: 490a00463044022067b8de52cbfdb1154c1292e4632eb87eeba83eec70d708fc18bbd690fe8e88780220692ad8258922bc21e9bfc4a9c57e0aa6929d04ee7582f22e8045540b4f01614e:922c64590222798bb761d5b6d8e72950