Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Error misfortune_cookie #594

Open
CodexJ opened this issue May 9, 2019 · 1 comment
Open

Get Error misfortune_cookie #594

CodexJ opened this issue May 9, 2019 · 1 comment
Labels

Comments

@CodexJ
Copy link

CodexJ commented May 9, 2019

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'

@lucyoa lucyoa added the bug label Aug 31, 2019
@moimoifi
Copy link

moimoifi commented Oct 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants