id: blackmoon-chaos-ftp-detect
info:
  name: BlackMoon FTP Chaos Edition Service - Detect
  author: pussycat0x
  severity: info
  description: BlackMoon FTP Chaos Edition service was detected.
  metadata:
    verified: true
    shodan-query: "BlackMoon FTP Server"
    max-request: 1
  tags: network,ftp,blackmoon,detect,tcp,discovery

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

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

    matchers:
      - type: word
        words:
          - "BlackMoon FTP Server Version"

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