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

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

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

    matchers:
      - type: word
        words:
          - "Network Management Card AOS"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "v([0-9.]+)"
# digest: 4a0a0047304502207b933231d608a0f5888b500017580cce6e5fa1f0e3688d80caa5db71826c11e2022100a33a098deb397b0229a6382bd55d9e16a52accabe1b21f27e95ecc8549fcc108:922c64590222798bb761d5b6d8e72950