threat9 / routersploit

Exploitation Framework for Embedded Devices
Other
12.11k stars 2.31k forks source link

billion_7700nr4_password_disclosure exploit error #722

Closed Altair314 closed 5 months ago

Altair314 commented 3 years ago

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Steps to Reproduce (for bugs)

  1. use exploits/routers/billion/billion_7700nr4_password_disclosure
  2. set target X.X.X.X
  3. run

Your Environment

Current Behavior

Running this gives me the following output:

[] Running module exploits/routers/billion/billion_7700nr4_password_disclosure... [+] Found strings: [REDACTED] [] Trying to base64 decode [+] Credentials found!

Login Password


Traceback (most recent call last): File "/home/kali/routersploit/routersploit/interpreter.py", line 389, in command_run self.current_module.run() File "/home/kali/routersploit/routersploit/modules/exploits/routers/billion/billion_7700nr4_password_disclosure.py", line 56, in run print_table(("Login", "Password"), *creds) File "/home/kali/routersploit/routersploit/core/exploit/printer.py", line 137, in print_table "{:<{}}".format(element, fill[idx]) TypeError: unsupported format string passed to bytes.format

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/routersploit/rsf.py", line 29, in routersploit(sys.argv) File "/home/kali/routersploit/rsf.py", line 25, in routersploit rsf.start() File "/home/kali/routersploit/routersploit/interpreter.py", line 125, in start command_handler(args, *kwargs) File "/home/kali/routersploit/routersploit/core/exploit/utils.py", line 177, in wrapper return fn(self, args, *kwargs) File "/home/kali/routersploit/routersploit/interpreter.py", line 394, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/usr/lib/python3.9/traceback.py", line 167, in format_exc return "".join(format_exception(sys.exc_info(), limit=limit, chain=chain)) File "/usr/lib/python3.9/traceback.py", line 120, in format_exception return list(TracebackException( File "/usr/lib/python3.9/traceback.py", line 508, in init self.stack = StackSummary.extract( File "/usr/lib/python3.9/traceback.py", line 340, in extract if limit >= 0: TypeError: '>=' not supported between instances of 'tuple' and 'int'

Expected Behavior

lucyoa commented 5 months ago

Fixed here https://github.com/threat9/routersploit/pull/818