id: routeros-login

info:
  name: RouterOS Router Login - Detect
  author: dhiyaneshDK,idealphase
  severity: info
  description: RouterOS router login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 1
    shodan-query: http.title:"RouterOS router configuration page"
  tags: panel,router,routeros,iot,discovery

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<title>RouterOS router configuration page</title>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '<h1>RouterOS v(.+)<\/h1>'
# digest: 4b0a00483046022100a380ee1b87a74e283af6460846b414704267e253930a1ece8838c8b446e19866022100bd2a33c56e4b5b2fec9ec3014c078936ec542925f4193cd8774f86c8c18642bd:922c64590222798bb761d5b6d8e72950