mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-16 23:53:28 +08:00
40 lines
1.0 KiB
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,discovery
|
|
|
|
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: 4a0a00473045022055bbdc0ce58d4651a0b073ac7a06740e257f24eab152c4c37806e6d57aaeb547022100b738381175612af1a884ce36b6b9066ba7358c625790e96a75b521c9640fd83c:922c64590222798bb761d5b6d8e72950 |