Create darkstat-detect.yaml

patch-1
Geeknik Labs 2021-05-06 19:44:19 +00:00 committed by GitHub
parent 8e09dc3061
commit d3dddb624a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
id: darkstat-detect
info:
name: Detect Darkstat Reports
author: geeknik
description: Darkstat captures network traffic, calculates statistics about usage, and serves reports over HTTP
reference: https://unix4lyfe.org/darkstat/
severity: high
requests:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/darkstat/"
# FYI, the default port for darkstat is 666
matchers-condition: and
matchers:
- type: regex
part: header
regex:
- "[Ss]erver: darkstat.*"
- type: word
part: body
words:
- "darkstat"
- "<title>Graphs"
- "Measuring for"
- "hosts</a>"
condition: and
extractors:
- type: kval
part: header
kval:
- server