id: serv-u-ftp-detect
info:
  name: Serv-U FTP Service - Detect
  author: pussycat0x
  severity: info
  description: Serv-U FTP service was detected.
  metadata:
    shodan-query: "Serv-U FTP Server"
    max-request: 1
  tags: network,ftp,serv-u,detect,tcp,discovery

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

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

    matchers:
      - type: word
        words:
          - "Serv-U FTP Server"
    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "Serv-U FTP Server v([0-9.]+)"
# digest: 4a0a00473045022025d26c4b246aad18d6e73b2d8d088b3477d1e92c64f9cab586b0743a993dffaa0221008fa2b60c4f48a12f4043a1593b4c09ed5b0ad36e3def4770fbdd8f1f9b820582:922c64590222798bb761d5b6d8e72950