adding service detection to pg templates
parent
55aa46ad95
commit
eaf21cf811
|
@ -14,7 +14,11 @@ info:
|
||||||
shodan-query: "product:\"PostgreSQL\""
|
shodan-query: "product:\"PostgreSQL\""
|
||||||
tags: js,network,postgresql,authenticated,enum
|
tags: js,network,postgresql,authenticated,enum
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- pre-condition: |
|
||||||
|
var m = require("nuclei/postgres");
|
||||||
|
var c = m.PGClient();
|
||||||
|
c.IsPostgres(Host, Port);
|
||||||
|
code: |
|
||||||
const postgres = require('nuclei/postgres');
|
const postgres = require('nuclei/postgres');
|
||||||
const client = new postgres.PGClient;
|
const client = new postgres.PGClient;
|
||||||
connected = client.ConnectWithDB(Host, Port, User, Pass, Db);
|
connected = client.ConnectWithDB(Host, Port, User, Pass, Db);
|
||||||
|
|
|
@ -14,7 +14,11 @@ info:
|
||||||
shodan-query: "product:\"PostgreSQL\""
|
shodan-query: "product:\"PostgreSQL\""
|
||||||
tags: js,network,postgresql,authenticated,enum
|
tags: js,network,postgresql,authenticated,enum
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- pre-condition: |
|
||||||
|
var m = require("nuclei/postgres");
|
||||||
|
var c = m.PGClient();
|
||||||
|
c.IsPostgres(Host, Port);
|
||||||
|
code: |
|
||||||
const postgres = require('nuclei/postgres');
|
const postgres = require('nuclei/postgres');
|
||||||
const client = new postgres.PGClient;
|
const client = new postgres.PGClient;
|
||||||
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "select pg_ls_dir('./');");
|
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "select pg_ls_dir('./');");
|
||||||
|
|
|
@ -15,7 +15,11 @@ info:
|
||||||
shodan-query: "product:\"PostgreSQL\""
|
shodan-query: "product:\"PostgreSQL\""
|
||||||
tags: js,network,postgresql,authenticated,enum
|
tags: js,network,postgresql,authenticated,enum
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- pre-condition: |
|
||||||
|
var m = require("nuclei/postgres");
|
||||||
|
var c = m.PGClient();
|
||||||
|
c.IsPostgres(Host, Port);
|
||||||
|
code: |
|
||||||
const postgres = require('nuclei/postgres');
|
const postgres = require('nuclei/postgres');
|
||||||
const client = new postgres.PGClient;
|
const client = new postgres.PGClient;
|
||||||
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "SELECT datname FROM pg_database");
|
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "SELECT datname FROM pg_database");
|
||||||
|
|
|
@ -16,7 +16,11 @@ info:
|
||||||
shodan-query: "product:\"PostgreSQL\""
|
shodan-query: "product:\"PostgreSQL\""
|
||||||
tags: js,network,postgresql,authenticated,enum
|
tags: js,network,postgresql,authenticated,enum
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- pre-condition: |
|
||||||
|
var m = require("nuclei/postgres");
|
||||||
|
var c = m.PGClient();
|
||||||
|
c.IsPostgres(Host, Port);
|
||||||
|
code: |
|
||||||
const postgres = require('nuclei/postgres');
|
const postgres = require('nuclei/postgres');
|
||||||
const client = new postgres.PGClient;
|
const client = new postgres.PGClient;
|
||||||
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "SELECT usename, passwd FROM pg_shadow");
|
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "SELECT usename, passwd FROM pg_shadow");
|
||||||
|
|
|
@ -14,7 +14,11 @@ info:
|
||||||
shodan-query: "product:\"PostgreSQL\""
|
shodan-query: "product:\"PostgreSQL\""
|
||||||
tags: js,network,postgresql,enum,authenticated
|
tags: js,network,postgresql,enum,authenticated
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- pre-condition: |
|
||||||
|
var m = require("nuclei/postgres");
|
||||||
|
var c = m.PGClient();
|
||||||
|
c.IsPostgres(Host, Port);
|
||||||
|
code: |
|
||||||
const postgres = require('nuclei/postgres');
|
const postgres = require('nuclei/postgres');
|
||||||
const client = new postgres.PGClient;
|
const client = new postgres.PGClient;
|
||||||
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "SELECT usename FROM pg_user");
|
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "SELECT usename FROM pg_user");
|
||||||
|
|
|
@ -14,7 +14,11 @@ info:
|
||||||
shodan-query: "product:\"PostgreSQL\""
|
shodan-query: "product:\"PostgreSQL\""
|
||||||
tags: js,network,postgresql,enum,authenticated
|
tags: js,network,postgresql,enum,authenticated
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- pre-condition: |
|
||||||
|
var m = require("nuclei/postgres");
|
||||||
|
var c = m.PGClient();
|
||||||
|
c.IsPostgres(Host, Port);
|
||||||
|
code: |
|
||||||
const postgres = require('nuclei/postgres');
|
const postgres = require('nuclei/postgres');
|
||||||
const client = new postgres.PGClient;
|
const client = new postgres.PGClient;
|
||||||
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "select version();");
|
connected = client.ExecuteQuery(Host, Port, User, Pass, Db, "select version();");
|
||||||
|
|
Loading…
Reference in New Issue