id: oracle-xmldb-ftp-detect
info:
  name: Oracle XML DB FTP Service - Detect
  author: pussycat0x
  severity: info
  description: Oracle XML DB FTP service was detected.
  metadata:
    shodan-query: "FTP Server (Oracle XML DB"
    max-request: 1
  tags: network,ftp,oracle,detect,tcp,discovery

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

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

    matchers:
      - type: word
        words:
          - "FTP Server (Oracle XML DB"

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