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

py2 to py3 issues

MrR3boot opened this issue · comments

I see last commit which changed things from python2 to python3 for better compatibility but when i run the tool it doesn't send any commands to server.

Connection to 0.0.0.0 established
Connection to 0.0.0.0 failed (a bytes-like object is required, not 'str')
Connection closed.

I've fixed pjl.py as below

self.send(cmd_send.encode('utf-8'))

Now it sends first set of status commands to the server but fails parsing the response i believe.

Connection to 0.0.0.0 established
Device:   Connection to 0.0.0.0 failed (can only concatenate str (not "bytes") to str)
Connection closed.

Can you please test it and resolve the further issues ?

Ran into this issue and resolved it this evening. Check out the MR referenced in the activity stream, pull it if you'd like to test it yourself.