id: mikrotik-ftp-server-detect

info:
  name: MikroTik FTP server Detect
  author: pussycat0x
  severity: info
  description: |
    The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer files between a client and server on a computer network.
  metadata:
    verified: true
    max-request: 1
    shodan-query: product:"MikroTik router ftpd"
  tags: network,ftp,mikrotik,router,detect,detection,tcp
tcp:
  - inputs:
      - data: "\n"
    host:
      - "{{Hostname}}"
    port: 21

    matchers:
      - type: word
        part: body
        words:
          - "MikroTik FTP"

    extractors:
      - type: regex
        regex:
          - "MikroTik ([0-9.]+)"
# digest: 490a0046304402200a089a453537695335e206b4e7c7e49d2a4f449d17597d47f2c18f5495dec4a202202d36621814977a13c2dc0d67689096904107d07a6be9b565d6ec27b7f3e07ea5:922c64590222798bb761d5b6d8e72950