threat9 / routersploit

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

No module Crypto--on MAC #546

Closed ghost closed 5 years ago

ghost commented 5 years ago

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Steps to Reproduce (for bugs)

  1. I've installed all the requirements.txt
  2. use scanners/autopwn 3.gave me the error
  3. rsf (AutoPwn) > run [*] Running module...

[*] Starting vulnerablity check...

Traceback (most recent call last):
  File "/Users/routersploit/routersploit/core/exploit/utils.py", line 107, in import_exploit
    module = importlib.import_module(path)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/routersploit/routersploit/modules/exploits/routers/technicolor/tc7200_password_disclosure_v2.py", line 3, in <module>
    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 "/Users/routersploit/routersploit/interpreter.py", line 334, in command_run
    self.current_module.run()
  File "/Users/routersploit/routersploit/modules/scanners/autopwn.py", line 51, in run
    for module in utils.iter_modules(directory):
  File "/Users/routersploit/routersploit/core/exploit/utils.py", line 136, in iter_modules
    yield import_exploit(path)
  File "/Users/routersploit/routersploit/core/exploit/utils.py", line 122, in import_exploit
    "Use <tab> key multiple times for completion.".format(humanize_path(path), err)
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 <tab> key multiple times for completion.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "rsf.py", line 26, in <module>
    routersploit()
  File "rsf.py", line 22, in routersploit
    rsf.start()
  File "/Users/routersploit/routersploit/interpreter.py", line 116, in start
    command_handler(args)
  File "/Users/routersploit/routersploit/core/exploit/utils.py", line 175, in wrapper
    return fn(self, *args, **kwargs)
  File "/Users/routersploit/routersploit/interpreter.py", line 339, in command_run
    print_error(traceback.format_exc(sys.exc_info()))
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 163, in format_exc
    return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 117, in format_exception
    type(value), value, tb, limit=limit).format(chain=chain))
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 486, in __init__
    _seen=_seen)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 497, in __init__
    capture_locals=capture_locals)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/traceback.py", line 332, in extract
    if limit >= 0:
TypeError: '>=' not supported between instances of 'tuple' and 'int'

Your Environment

Expected Behavior

lucyoa commented 5 years ago

Install correctly all dependencies - preferably inside virtualenv.