threat9 / routersploit

Exploitation Framework for Embedded Devices
Other
12.21k stars 2.32k forks source link

Get Error misfortune_cookie #594

Open CodexJ opened 5 years ago

CodexJ commented 5 years ago

Hello, When i use misfortune_cookie exploit i get this error, help me please

[*] Running module exploits/routers/multi/misfortune_cookie... Traceback (most recent call last): File "/root/routersploit/routersploit/interpreter.py", line 389, in command_run self.current_module.run() File "/root/routersploit/routersploit/modules/exploits/routers/multi/misfortune_cookie.py", line 123, in run if self.device == "" or re.match(r"^\d+?$", self.device) is None or int(self.device) < 0 or int(self.device) >= len(devices): File "/usr/lib/python3.6/re.py", line 172, in match return _compile(pattern, flags).match(string) TypeError: expected string or bytes-like object

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "rsf.py", line 29, in routersploit(sys.argv) File "rsf.py", line 25, in routersploit rsf.start() File "/root/routersploit/routersploit/interpreter.py", line 125, in start command_handler(args, *kwargs) File "/root/routersploit/routersploit/core/exploit/utils.py", line 177, in wrapper return fn(self, args, *kwargs) File "/root/routersploit/routersploit/interpreter.py", line 394, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/usr/lib/python3.6/traceback.py", line 167, in format_exc return "".join(format_exception(sys.exc_info(), limit=limit, chain=chain)) File "/usr/lib/python3.6/traceback.py", line 121, in format_exception type(value), value, tb, limit=limit).format(chain=chain)) File "/usr/lib/python3.6/traceback.py", line 509, in init capture_locals=capture_locals) File "/usr/lib/python3.6/traceback.py", line 338, in extract if limit >= 0: TypeError: '>=' not supported between instances of 'tuple' and 'int'

moimoifi commented 4 years ago

Are you sure you did pip install -r requirements.txt? I got the same error, did that, and it worked fine.