nuclei-templates/technologies/prometheus-exporter-detect....

28 lines
773 B
YAML
Raw Normal View History

# See https://github.com/prometheus/prometheus/wiki/Default-port-allocations
id: prometheus-exporter-detect
info:
name: Prometheus exporter detect
author: jaras
severity: info
description: Prometheus exporter detector
requests:
- method: GET
path:
- "{{BaseURL}}/"
headers:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55
matchers:
- type: word
words:
- Exporter # Exporters have "Exporter" in the page title (e.g, Node Exporter, Bind Exporter and so on)
- /metrics
condition: and
extractors: # Extract exporter name
- type: regex
part: body
name: exporter_name
group: 1
regex:
2020-10-01 21:18:22 +00:00
- "<title>(.*?)</title>"