id: hp-color-laserjet-detect

info:
  name: HP Color LaserJet Detection
  author: idealphase,gy741
  severity: info
  description: HP color laserJet panel was detected.
  reference:
    - http://www.hp.com/
    - https://www.hp.com/us-en/shop/cv/printers
  classification:
    cpe: cpe:2.3:h:hp:color_laserjet_pro_mfp_m183_7kw56a:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: hp
    product: color_laserjet_pro_mfp_m183_7kw56a
    shodan-query: http.title:"HP Color LaserJet"
    google-query: intitle:"HP Color LaserJet"
  tags: iot,hp,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/hp/device/this.LCDispatcher"

    stop-at-first-match: true
    redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "HP Color LaserJet"
          - '<td class="mastheadTitle"><h1>HP Color LaserJet'
          - '<strong class="product">HP Color LaserJet'
          - '<a href="info_deviceStatus.html?'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '<td class="mastheadTitle"><h1>HP Color LaserJet (.+)<\/h1><\/td>'
# digest: 4a0a0047304502203f7beaba9060e3e42258349750cfff1229d6c79ad3b057e11b243fee4b19c15f022100a00f57406c4b6e9a16529bf96bf3510c543ac2391b35c9d50f0c7c7ba5e8b868:922c64590222798bb761d5b6d8e72950