id: moinmoin-detect

info:
  name: MoinMoin wiki detect
  author: cyllective
  severity: info
  description: Detects MoinMoin Wiki
  reference:
    - https://github.com/moinwiki/moin-1.9
  metadata:
    max-request: 1
  tags: tech,moin,moinmoin,wiki

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        condition: or
        words:
          - '<a href="http://moinmo.in/" title="This site uses the MoinMoin Wiki software.">MoinMoin Powered</a>'
          - '<a href="http://moinmo.in/Python" title="MoinMoin is written in Python.">Python Powered</a>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '\/moin_static(\w+)\/'
# digest: 490a0046304402207f168138e28ce407f207c53ce43a20bae15dd8ac72e57ccd0cec3b29f1bd9810022078e2791f547cb21c115aab6e4fc561fe11cb0a2593116a608b4cb7d66a945735:922c64590222798bb761d5b6d8e72950