routersploit icon indicating copy to clipboard operation
routersploit copied to clipboard

error with vulnerability check

Open mattv1234 opened this issue 5 years ago • 6 comments

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

  • RouterSploit Version used: 3.4.1
  • Operating System and version:Ubuntu (not sure what version)
  • Python Version: ( python3 --version )
  • Python Environment: ( python3 -m pip freeze )

Current Behavior

  • If describing a bug, tell us what happens instead of the expected behavior it's supposed to come up with al the vulnerabilities but it comes up with Traceback error instead?

Expected Behavior

all the vulnerabilities should show

ISSUE

image

any help???

mattv1234 avatar Feb 25 '20 21:02 mattv1234

tried to install paramiko but it still says its missing

mattv1234 avatar Feb 25 '20 21:02 mattv1234

python3 -m pip install -r requirements.txt

GH0st3rs avatar Feb 26 '20 11:02 GH0st3rs

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.

mattv1234 avatar Feb 27 '20 19:02 mattv1234

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

GH0st3rs avatar Mar 03 '20 10:03 GH0st3rs

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

lucyoa avatar Jun 08 '20 08:06 lucyoa

pip install paramiko

husniaditya avatar Jun 20 '20 19:06 husniaditya