id: printers-info-leak

info:
  name: Unauthorized Printer Access
  author: pussycat0x
  severity: info
  description: |
    Unauthorized access to printers allows attackers to print, eavesdrop sensitive documents.
  reference:
    - https://book.hacktricks.xyz/pentesting/9100-pjl
  metadata:
    max-request: 1
  tags: network,iot,printer,misconfig,tcp
tcp:
  - inputs:
      - data: "@PJL INFO STATUS\n"
    host:
      - "{{Hostname}}"
    port: 9100

    matchers:
      - type: word
        words:
          - "CODE="
          - "PJL INFO STATUS"
        condition: and
# digest: 4a0a00473045022100e5cd3caafcba367256fc02a088505cf294ceb9eba20a33e032ce2aca6b16c8110220510d9b154b7130143030f9f441ed0a1ea44c52053a2fb945d9a603d59c122f95:922c64590222798bb761d5b6d8e72950