id: sma-opcon-panel

info:
  name: SMA OpCon Panel - Detect
  author: righettod
  severity: info
  description: |
     SMA OpCon was detected — a workload automation and orchestration software.
  reference:
    - https://smatechnologies.com/product-opcon
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.title:"SMA OpCon"
  tags: panel,sma,login,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/version"
      - "{{BaseURL}}/login"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>sma opcon solution manager</title>", "content=\"sma opcon solution manager\"", "\"opconrestapiproductversion\":")'
        condition: and

    extractors:
      - type: json
        part: body
        json:
          - '.opConRestApiProductVersion'
# digest: 490a0046304402204174bef92c8e77fb58735977f796806ef9a96d531cbf3b64c4f126333cf6300302205859b4fb2a5ef90b1c295e1d2235f78c2140c859b4b617dd642eb37663fa1bd4:922c64590222798bb761d5b6d8e72950