threat9 / routersploit

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

error with vulnerability check #653

Open mattv1234 opened 4 years ago

mattv1234 commented 4 years ago

once i type run this traceback error comes up?

Steps to Reproduce (for bugs)

rsf (AutoPwn) > set target 192.168.1.1 [+] target => 192.168.1.1 rsf (AutoPwn) > run [] Running module scanners/autopwn... [] 192.168.1.1 Starting vulnerablity check... Traceback (most recent call last): File "/mnt/c/Users/testv/routersploit/routersploit/core/exploit/utils.py", line 109, in import_exploit module = importlib.import_module(path) File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "/mnt/c/Users/testv/routersploit/routersploit/modules/exploits/generic/ssh_auth_keys.py", line 4, in from routersploit.core.ssh.ssh_client import SSHClient File "/mnt/c/Users/testv/routersploit/routersploit/core/ssh/ssh_client.py", line 2, in import paramiko ImportError: No module named 'paramiko'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/mnt/c/Users/testv/routersploit/routersploit/interpreter.py", line 389, in command_run self.current_module.run() File "/mnt/c/Users/testv/routersploit/routersploit/modules/scanners/autopwn.py", line 77, in run for module in utils.iter_modules(directory): File "/mnt/c/Users/testv/routersploit/routersploit/core/exploit/utils.py", line 138, in iter_modules yield import_exploit(path) File "/mnt/c/Users/testv/routersploit/routersploit/core/exploit/utils.py", line 124, in import_exploit "Use key multiple times for completion.".format(humanize_path(path), err) routersploit.core.exploit.exceptions.RoutersploitException: Error during loading 'routersploit/modules/exploits/generic/ssh_auth_keys'

Error: No module named 'paramiko'

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 "rsf.py", line 29, in routersploit(sys.argv) File "rsf.py", line 25, in routersploit rsf.start() File "/mnt/c/Users/testv/routersploit/routersploit/interpreter.py", line 125, in start command_handler(args, *kwargs) File "/mnt/c/Users/testv/routersploit/routersploit/core/exploit/utils.py", line 177, in wrapper return fn(self, args, *kwargs) File "/mnt/c/Users/testv/routersploit/routersploit/interpreter.py", line 394, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/usr/lib/python3.5/traceback.py", line 163, in format_exc return "".join(format_exception(sys.exc_info(), limit=limit, chain=chain)) File "/usr/lib/python3.5/traceback.py", line 117, in format_exception type(value), value, tb, limit=limit).format(chain=chain)) File "/usr/lib/python3.5/traceback.py", line 463, in init _seen=_seen) File "/usr/lib/python3.5/traceback.py", line 474, in init capture_locals=capture_locals) File "/usr/lib/python3.5/traceback.py", line 332, in extract if limit >= 0: TypeError: unorderable types: tuple() >= int()

Your Environment

Current Behavior

Expected Behavior

all the vulnerabilities should show

ISSUE

image

any help???

mattv1234 commented 4 years ago

tried to install paramiko but it still says its missing

GH0st3rs commented 4 years ago
python3 -m pip install -r requirements.txt
mattv1234 commented 4 years ago
python3 -m pip install -r requirements.txt

i've tried this so many times but it says "Failed building wheel for crytography" and proceeds to download the rest again. After this it says: "You are using pip version 8.1.1, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command." which i have done MANY times also, to no avail.

GH0st3rs commented 4 years ago

Yes, this is a big problem. In this case, I'm not sure, but maybe you should not do this? Try to start with something simpler, for example, google how to install python and pip of the last version

lucyoa commented 4 years ago

You are missing paramiko dependency and it seems that your python environment is messed up. You can try to set it up inside virtualenv.

husniaditya commented 4 years ago

pip install paramiko