RUB-NDS / PRET

Printer Exploitation Toolkit - The tool that made dumpster diving obsolete.

Home Page:http://hacking-printers.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pret.py doesn't work on hp envy

testentry opened this issue · comments

I tried to connect to my printer by writing: python pret.py {192.168.1.27} pjl and no luck
pret
I tried all languages and it keep outputting the same result
I have a HP ENVY 4500 series
and this is a nmap scan I did on my printer
scan

Can confirm that this is true. My HP Envy accepts ps print, but for all other commands, it prints out "%! /print {(%stdout) (w) file dup 3 2 roll writestring flushfile} def /== {128 str". This is the value stored in PS_IOHACK in the helper.py file, but I don't know why it prints this.

The Envy -- like most inkjets -- does not support PostScript, therefore talking in "ps" mode with the device will not work (instead, each PostScript command sent by PRET to the device is interpreted as plain text "to be printed").

The Envy -- like most inkjets -- does not support PostScript, therefore talking in "ps" mode with the device will not work (instead, each PostScript command sent by PRET to the device is interpreted as plain text "to be printed").

hello I send this massage well after your post but I would like to know if it is possible with another language to use these commands and can you do it with PRET?

dont use { } around the ip