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

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

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

    matchers:
      - type: word
        words:
          - "vsFTPd"

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