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

SyntaxError: Non-ASCII character '\xc3' #48

Open Yaswanth-jami opened 3 years ago

Yaswanth-jami commented 3 years ago

When I am trying to run the code using python 2.7 It's showing the following error

File "pret.py", line 38 SyntaxError: Non-ASCII character '\xc3' in file pret.py on line 38, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Yaswanth-jami commented 3 years ago

Does anyone know how to solve this issue?

MrR3boot commented 3 years ago

Run it with python3

Yaswanth-jami commented 3 years ago

Run it with python3

when I run it with python3, the device is getting connected but the commands are not working. It's showing
Command execution failed (a bytes-like object is required, not 'str')

MrR3boot commented 3 years ago

Yup i've raised an issue on this already. Check 49. Use these files.

dpcxpert commented 3 years ago

just for more details this is what i got when testing my and my friends printers using a bash script it said something is wrong with printer.py and pret.py issuepng_scrubbed