id: delegate-ftp-detect
info:
  name: DeleGate PROXY-FTP Service - Detect
  author: pussycat0x
  severity: info
  description: DeleGate PROXY-FTP service was detected.
  metadata:
    verified: true
    shodan-query: "PROXY-FTP server"
    max-request: 1
  tags: network,ftp,delegate,detect,tcp,discovery

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

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

    matchers:
      - type: word
        words:
          - "PROXY-FTP server (DeleGate"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "DeleGate/([0-9.]+)"
# digest: 490a0046304402204224b3d4ef953ed96309c4eea5c21e64606027ce29db1e4104d8666518095acd02205d31df5d365884791f53db07f75d0527315a27465346eeaec33e337a32d64d54:922c64590222798bb761d5b6d8e72950