id: gopher-detect

info:
  name: Gopher Service - Detect
  author: pry0cc
  severity: info
  description: |
    Gopher service was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: network,gopher,detect,detection,tcp

tcp:
  - inputs:
      - data: "\r\n"
    host:
      - "{{Hostname}}"
    port: 70

    matchers:
      - type: dsl
        dsl:
          - "contains(to_lower(raw), 'gopher')"
# digest: 4b0a00483046022100c4f257189aba6984794554290d9adf5449c1c4bd84405f72c6ffaca53f15e6e2022100ceb008ed8c97ab8e5b6760c7e67f2d47f45292ff18309451c695d3bb4f0628b6:922c64590222798bb761d5b6d8e72950