id: betaftpd-detect
info:
  name: BetaFTPD Service - Detect
  author: pussycat0x
  severity: info
  description: BetaFTPD service was detected.
  metadata:
    verified: true
    shodan-query: BetaFTPD
    max-request: 1
  tags: network,ftp,betaftpd,detect,tcp,discovery

tcp:
  - inputs:
      - data: 00000000
        type: hex

    host:
      - "{{Hostname}}"
    port: 21
    read-size: 1024

    matchers:
      - type: word
        words:
          - "BetaFTPD"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "BetaFTPD ([0-9.]+pre[0-9]+)"
# digest: 4a0a00473045022100f44e441d693412fc464b4271b05b2ed4517b3f34837ae87374ed95e340952e4d02202c78358397820d80b0f9b50956def54b175c32704ef31006810f16dea88c6b57:922c64590222798bb761d5b6d8e72950