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

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

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

    matchers:
      - type: word
        words:
          - "X2 WS_FTP Server"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "X2 WS_FTP Server ([0-9.]+)"
# digest: 490a00463044022054bd47b1f763761ade48f04ee93ffa0b56569dc07bf1479135aa8bb18ca46f650220541db17a19e3a4dcc658c795b8a6ae93b984e2d083b681fd73250d0132b72203:922c64590222798bb761d5b6d8e72950