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

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

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

    matchers:
      - type: word
        words:
          - "Welcome to Xerver Free FTP Server"

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