RUB-NDS / PRET

Printer Exploitation Toolkit - The tool that made dumpster diving obsolete.
http://hacking-printers.net
GNU General Public License v2.0
3.81k stars 605 forks source link

pret.py doesn't work on hp envy #43

Open testentry opened 3 years ago

testentry commented 3 years ago

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

MossGrass commented 3 years ago

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.

jensvoid commented 3 years ago

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").

thepoulet153 commented 1 year ago

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?

DaBlincx commented 1 year ago

dont use { } around the ip