Files
nuclei/integration_tests/protocols/javascript/mysql-connect.yaml
Dwi Siswanto 12176d67a9 test(javascript): add mysql-connect integration test
Signed-off-by: Dwi Siswanto <git@dw1.io>
2025-12-26 01:08:00 +07:00

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"