37 lines
1007 B
YAML
37 lines
1007 B
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
|
|
javascript:
|
|
- 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: 4b0a00483046022100ad593474bb2bbcf766255f5c1ad8949acdee79a5f71c313284b1bdce506f772402210086dd8350befc99258be94d72e1396064014e2ebf4d9b3aa473fc9b1a5e65848b:922c64590222798bb761d5b6d8e72950 |