2024-03-22 10:10:06 +00:00
|
|
|
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:
|
2024-03-23 09:28:19 +00:00
|
|
|
max-request: 1
|
|
|
|
shodan-query: "port:3306"
|
2024-06-07 10:04:29 +00:00
|
|
|
tags: js,mssql,network,enum
|
2024-07-10 12:08:01 +00:00
|
|
|
|
2024-03-22 10:10:06 +00:00
|
|
|
javascript:
|
2024-07-10 12:08:01 +00:00
|
|
|
- pre-condition: |
|
|
|
|
isPortOpen(Host,Port);
|
|
|
|
code: |
|
2024-03-22 10:10:06 +00:00
|
|
|
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'
|
2024-03-23 09:23:23 +00:00
|
|
|
- '"Transport: "+ .Transport '
|
2024-07-10 12:45:27 +00:00
|
|
|
# digest: 4a0a004730450221009be5b156071a03d67fed95337ba696d9dcc9e8890fa460fae66a3b660b37f19d02204c0b4711cd08b8accea895779b0edae1c77426925850e2004acbb5a95f41c730:922c64590222798bb761d5b6d8e72950
|