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

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

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

    matchers:
      - type: word
        words:
          - "EasyCoder FTP Server"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - 'FTP Server v\.([0-9.]+)'
# digest: 490a004630440220535b8192ebaf2b7b7733255a6d891634fcb84c31099ace8a80983f4d79828b020220465702175f4dc08ecdbdfb20e87ddfb7e4d75f1be9d28479f70a5b4275129aac:922c64590222798bb761d5b6d8e72950