nuclei-templates/javascript/detection/oracle-tns-listner.yaml

32 lines
1.1 KiB
YAML
Raw Normal View History

2023-10-19 19:07:50 +00:00
id: oracle-tns-listener
2023-10-19 19:02:52 +00:00
info:
name: Oracle TNS Listener - Detect
author: pussycat0x
severity: info
description: |
2023-10-19 19:07:50 +00:00
Oracle clients communicate with the database using the Transparent Network Substrate (TNS) protocol. When the listener receives a connection request (tcp port 1521, by default), it starts up a new database process and establishes a connection between the client and the database.
2023-10-19 19:02:52 +00:00
reference:
- https://www.tenable.com/plugins/nessus/110053
metadata:
max-request: 1
2023-10-19 19:02:52 +00:00
shodan-query: product:"Oracle TNS Listener"
verified: true
2023-10-23 07:02:30 +00:00
tags: js,oracle,tns,network
2023-10-19 19:02:52 +00:00
javascript:
2023-10-19 19:07:50 +00:00
- code: |
2023-10-19 19:02:52 +00:00
var m = require("nuclei/oracle");
var c = m.OracleClient();
var response = c.IsOracle(Host, Port);
2023-10-19 19:10:15 +00:00
to_json(response);
2023-10-19 19:02:52 +00:00
2023-10-19 19:07:50 +00:00
args:
2023-10-19 19:02:52 +00:00
Host: "{{Host}}"
Port: "1521"
2023-10-19 19:07:50 +00:00
extractors:
2023-10-19 19:02:52 +00:00
- type: regex
name: Version
regex:
- 'Oracle TNS Listener Version:([0-9.]+)'
# digest: 4a0a00473045022100dc6c882c8ac279ea35bc8ce8df4f5ad7fb8974546fe857d78b33051f8d35b94c022001a23be0ee0813f77cd0a39bd99a4a79f8033deb2426469081b4961864782e72:922c64590222798bb761d5b6d8e72950