id: hpe-officeconnect-panel

info:
  name: HPE OfficeConnect Switch - Panel Detect
  author: pussycat0x
  severity: info
  description: |
    The HPE OfficeConnect Switch was a network switch series built for small and medium businesses.It provided reliable connectivity, simple management, and PoE options to support growing networks.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"HPE OfficeConnect"
  tags: panel,hp,hpe,officeconnect,login,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/"
    host-redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(body, '<title>HPE OfficeConnect Switch')"
        condition: and

    extractors:
      - type: regex
        name: version
        part: body
        regex:
          - 'HPE OfficeConnect Switch ([0-9A-Z a-z+()]+)'
# digest: 4a0a00473045022100a2a15560fe99377a5cdfd798304b6e53999eb24f986b59ad70e9644d5c137d01022012944e122de8fc511c7e0e7cb19abec6bcf46b272789c24d75d4266f132638bd:922c64590222798bb761d5b6d8e72950