mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-02 00:33:10 +08:00
24 lines
473 B
YAML
24 lines
473 B
YAML
id: mysql-connect
|
|
|
|
info:
|
|
name: MySQL Connect Test
|
|
author: pdteam
|
|
severity: high
|
|
|
|
javascript:
|
|
- pre-condition: |
|
|
isPortOpen(Host, Port)
|
|
code: |
|
|
const mysql = require('nuclei/mysql');
|
|
const client = new mysql.MySQLClient;
|
|
success = client.Connect(Host, Port, User, Pass);
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "3306"
|
|
User: "root"
|
|
Pass: "secret"
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "success == true"
|