id: ibm-spectrum-detect

info:
  name: IBM Spectrum - Detect
  author: righettod
  severity: info
  description: |
    IBM Spectrum products was detected.
  reference:
    - https://www.ibm.com/docs/en/products?filter=spectrum
  metadata:
    max-request: 1
    verified: true
    shodan-query: http.title:"IBM Spectrum"
  tags: tech,ibm,spectrum

http:
  - method: GET
    path:
      - "{{BaseURL}}/"
      - "{{BaseURL}}/BACLIENT"
      - "{{BaseURL}}/JNLP"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(to_lower(body), "ibm spectrum", "com.ibm.")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)"guiVersion"\s*:\s*"([0-9.\-]+)"'
          - '(?i)name="?version"?\s+value="?([0-9.\-]+)"?'
# digest: 490a00463044022048e00a2a97f6ff9d0b41f2532b492aaf1d37f3953badde804df87cb19844e64a0220130454f1f18343b5a0ca63721a191f1e51f7b51cd46b57a69fd375068ad7f991:922c64590222798bb761d5b6d8e72950