MySQL Info - Enumeration
ID: mysql-info
Severity: info
Author: pussycat0x
Tags: js,mssql,network,enum
Description
Section titled “Description”Connects to a MySQL server and prints information such as the protocol and version numbers
YAML Source
Section titled “YAML Source”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: 490a0046304402206252031c1abc63be7f1be1bc31a593a0bf89748ef5a569eb72200690f694b626022054e62d9011599035e2904e7d1c97552cf4f90364197fea82b5707816721cc9af:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "javascript/enumeration/mysql/mysql-info.yaml"