id: ilo-detect

info:
  name: HP iLO
  author: milo2012
  severity: info
  description: Version of HP iLO
  metadata:
    max-request: 1
  tags: tech,ilo,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/xmldata?item=all"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - text/xml
        part: header

      - type: word
        words:
          - <RIMP>
          - <HSI>
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "<FWRI>([0-9.]+)</FWRI>"
# digest: 4b0a00483046022100b80ab89340aca4b30b1d5aa0122268cfb8145c56d5fe89008409958033dd36ad0221009b00d4448e80e11bdf7209fa1291d2eda211c26f9354469fad9019980ad3826e:922c64590222798bb761d5b6d8e72950