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

Fix exception on get with python 3 #52

Closed rpavlik closed 2 years ago

rpavlik commented 2 years ago

This fixes a "Program Error (a bytes-like object is required, not 'str')" error when trying to "get" from my InfoPrint 1552 (aka Lexmark T644).

However, there are some files I've tried to get that still don't work, now I get a "Command execution failed ('utf-8' codec can't decode byte 0xfb in position 40: invalid start byte)" for some files. Not sure how to fix that one aside from moving everything to bytes, which breaks regexes. 

This probably further fixes #47

jensvoid commented 2 years ago

Thanks for keeping this project up to date :)

rpavlik commented 2 years ago

I've actually accidentally updated the whole thing to use bytes for most everything except the ui, fixing a handful of things I didn't even realize were bugs. I just need to clean up the commits.