adding service detection to pg templates

This commit is contained in:
Mzack9999
2024-06-14 16:56:22 +02:00
parent 55aa46ad95
commit eaf21cf811
6 changed files with 30 additions and 6 deletions

View File

@@ -14,7 +14,11 @@ info:
shodan-query: "product:\"PostgreSQL\""
tags: js,network,postgresql,enum,authenticated
javascript:
- code: |
- pre-condition: |
var m = require("nuclei/postgres");
var c = m.PGClient();
c.IsPostgres(Host, Port);
code: |
const postgres = require('nuclei/postgres');
const client = new postgres.PGClient;
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "select version();");