id: dell-idrac7-detect

info:
  name: Detect Dell iDRAC7
  author: kophjager007,0x_Akoko
  severity: info
  description: |
    Detected The Integrated Dell Remote Access Controller, (iDRAC) is designed for secure local and remote server management and helps IT administrators deploy, update and monitor Dell EMC PowerEdge servers.
  reference:
    - https://www.dell.com/support/manuals/en-us/idrac7-8-with-lc-v2.40.40.40
  metadata:
    max-request: 1
  tags: tech,dell,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/data?get=prodServerGen"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/xml")'
          - 'contains_all(body, "<prodServerGen>", "<Manufacturer>Dell", "<isDellBranded>1</isDellBranded>", "12G")'
        condition: and

    extractors:
      - type: regex
        name: server_generation
        part: body
        group: 1
        regex:
          - '<prodServerGen>([0-9]{2}G)</prodServerGen>'
# digest: 490a004630440220156e3728837542271af7200cc5df58eb4e83142d8e467a23adbea84edfba8f1502203dbfe6de74dec7227377f340d9ae5419fd0ebd3c3d697b1caafd4c2dcd0eb52e:922c64590222798bb761d5b6d8e72950