id: erlang-otp-ssh-detect

info:
  name: Erlang/OTP SSH Server - Detect
  author: darses
  severity: info
  description: |
    Detects Erlang/OTP SSH servers and parses the version number from the banner.
  metadata:
    shodan-query: 'SSH-2.0-Erlang'
    max-request: 1
    verified: true
  tags: network,ssh,erlang,detect,tcp

tcp:
  - host:
      - "{{Hostname}}"

    port: 22
    read-size: 1024

    matchers:
      - type: word
        words:
          - "SSH-2.0-Erlang"

    extractors:
      - type: regex
        regex:
          - "SSH-2.0-Erlang/[0-9\\.]+"
# digest: 4a0a00473045022100a0d485d42d33b74ca4e5d6a7600357316e4349f15742838faa5cb78e5e6759e10220405cb295d544805e821220ffac81dc6821438c37d54f79cd1f09e08e9a65d8a1:922c64590222798bb761d5b6d8e72950