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

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

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

    matchers:
      - type: word
        words:
          - "FTP server (BSDI"

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - " Version ([0-9.A-Z]+)"
# digest: 490a004630440220325843be821c82e6c56258b01b9bd19db4ac11527589f876838cdbde31cccbd80220733c22f1f8afb1e7f71394ab89a5002e789e3e160eeb9d189c648e10c18119da:922c64590222798bb761d5b6d8e72950