id: pcoweb-panel

info:
  name: pCOWeb Panel - Detect
  author: ritikchaddha
  severity: info
  reference:
    - https://docs.librenms.org/Support/Device-Notes/Carel-pCOweb-Devices/#:~:text=Accessing%20the%20pCOWeb%20card,-Log%20on%20to&text=The%20default%20username%20and%20password%20is%20admin%2Ffadmin%20.
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"pCOWeb"
  tags: pcoweb,panel,login,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/http/index.html"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<title>(.*)pCOWeb(.*)</title>'
          - 'pCOWeb</h2>'
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a0047304502206c32ef257999d485d9a5078ae9a493ebeecc9314f9e7483ee1cc2e6ddadd0172022100a8017e5497bdeb6576a579d5bf80a7c84954939d6bd49f23adf78752e701ec75:922c64590222798bb761d5b6d8e72950