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

Error After "run" command #806

Open
Lynka7 opened this issue Jul 30, 2023 · 3 comments
Open

Error After "run" command #806

Lynka7 opened this issue Jul 30, 2023 · 3 comments

Comments

@Lynka7
Copy link

Lynka7 commented Jul 30, 2023

Your Environment

  • RouterSploit Version used: I Knew You Were Trouble
  • Operating System and version: Parrot OS 5.3
  • Python Version: ( 3.9.2 )

Current Behavior

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/routersploit/core/exploit/utils.py", line 109, in import_exploit
module = importlib.import_module(path)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/routersploit/modules/exploits/routers/technicolor/tc7200_password_disclosure_v2.py", line 3, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/routersploit/interpreter.py", line 389, in command_run
self.current_module.run()
File "/usr/lib/python3/dist-packages/routersploit/modules/scanners/autopwn.py", line 77, in run
for module in utils.iter_modules(directory):
File "/usr/lib/python3/dist-packages/routersploit/core/exploit/utils.py", line 138, in iter_modules
yield import_exploit(path)
File "/usr/lib/python3/dist-packages/routersploit/core/exploit/utils.py", line 120, in import_exploit
raise RoutersploitException(
routersploit.core.exploit.exceptions.RoutersploitException: Error during loading 'routersploit/modules/exploits/routers/technicolor/tc7200_password_disclosure_v2'

Error: No module named 'Crypto'

It should be valid path to the module. Use key multiple times for completion.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/routersploit", line 29, in
routersploit(sys.argv)
File "/usr/bin/routersploit", line 25, in routersploit
rsf.start()
File "/usr/lib/python3/dist-packages/routersploit/interpreter.py", line 125, in start
command_handler(args, **kwargs)
File "/usr/lib/python3/dist-packages/routersploit/core/exploit/utils.py", line 177, in wrapper
return fn(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/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 493, in init
context = 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

Should work Without issues

@MrDinkh125
Copy link

Similar issue on Kali Linux.

I installed the program by two means:

Sudo apt install Routersploit

& as the method described:

apt-get install python3-pip
git clone https://www.github.com/threat9/routersploit
cd routersploit
python3 -m pip install -r requirements.txt
python3 rsf.py

Same error with both methods

@s-b-repo
Copy link

#808

@s-b-repo
Copy link

its pycrypto causing the problem

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

No branches or pull requests

3 participants