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

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: 490a004630440220503db0b24ee43811c6b2c44affed65afa0b0f3e5e41b94548e5e5811b8e9bbfa02206e915dead4da2da03a4155e6d8b2bb0a00986524ef9b4022c0c3eabb652c9c95:922c64590222798bb761d5b6d8e72950