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

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

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

    matchers:
      - type: word
        words:
          - "Hewlett-Packard"

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