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

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

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

    matchers:
      - type: word
        words:
          - "CommuniGate Pro FTP Server"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "CommuniGate Pro FTP Server ([0-9.]+)"
# digest: 490a00463044022034bba2147b98f89ffe1804d674053fe6097eb4e7829a71bbeaef4117df93c7c0022027e82c49434fafa4236cc8f8b70c11b1186d7fb9468978134b0712aaf2f37f33:922c64590222798bb761d5b6d8e72950