id: ranger-detection

info:
  name: Apache Ranger Detection
  author: For3stCo1d
  severity: info
  reference: https://github.com/apache/ranger
  metadata:
    max-request: 2
    shodan-query: http.title:"Ranger - Sign In"
  tags: tech,apache,ranger

http:
  - method: GET
    path:
      - '{{BaseURL}}/login.jsp'
      - "{{BaseURL}}/images/favicon.ico"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "<title> Ranger - Sign In</title>"

      - type: dsl
        name: favicon
        dsl:
          - "status_code==200 && ('1302629996' == mmh3(base64_py(body)))"

# digest: 4a0a00473045022100c20ddf56af975514e17133890e5c9cab34c0381caaab97a5f5fd94b2a20cad5102203cd2f9263c60fd7d61430687b7c0379123915a783176abd81259dd74a713fe55:922c64590222798bb761d5b6d8e72950
