id: ilo-detect

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

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: 4a0a00473045022100ac5ec31d610468f2467092c7e8405f01118dba555563ebdfd0863f60a689af9f02202dcf53ec6d3e30733b1ad28346123a84d4a42ca879886f845305452c81fad183:922c64590222798bb761d5b6d8e72950