RUB-NDS / PRET

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

Syntax error running PRET from Termux on Android #11

Open RadArcTan opened 6 years ago

RadArcTan commented 6 years ago

I am trying to run PRET in Termux(busy box) on Android, all newest versions installed today.

I get the following: $ python pret.py Traceback (most recent call last): File "pret.py", line 8, in from discovery import discovery File "/data/data/com.termux/files/home/PRET/discovery.py", line 7, in from helper import output, conv File "/data/data/com.termux/files/home/PRET/helper.py", line 130 def discover(self, (ipaddr, (device, uptime, status, prstat))): ^ SyntaxError: invalid syntax

I am a beginner at programming... Any help here would be much appreciated.

ghost commented 6 years ago

Kk

Hugo22O commented 5 years ago

You need to install colorama and pysnm by using the command pip2 install colorama pysnmpinstead ofpip install [dependencies]then run pret.py with:python2 pret.pyinstead of usingpython pret.py`

Pret only works with Python2 if you type python it won't work.

To spare others time installing PRET on Termux I wrote a guide: https://github.com/Hugo22O/A-Guide-To-Install-PRET-on-Termux

Check out the guide as well if you're still getting errors.