L
L
Lali Kinux2018-10-04 17:59:44
Python
Lali Kinux, 2018-10-04 17:59:44

python modules! Problems with routersploit?

I'm trying to use ./rsf.py and it gives me this:

spoiler
rsf > use scanners/autopwn
rsf (AutoPwn) > set target 192.168.1.1
[+] target => 192.168.1.1
rsf (AutoPwn) > run
[*] Running module...
[*] Starting vulnerablity check...
Traceback (most recent call last):
File "/home/user/routersploit/routersploit/core/exploit/utils.py", line 80, 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 "/home/user/routersploit/routersploit/modules/exploits/generic/ssh_auth_keys.py", line 4, in
from routersploit.core.ssh.ssh_client import SSHClient
File "/home/user/routersploit/routersploit/core/ssh/ssh_client.py", line 2, in
import paramiko
File "/usr/local/lib/python3.5/dist-packages/paramiko-2.4.2-py3.5.egg/paramiko/__init__.py", line 22, in
File "/usr/local/lib/python3.5/dist-packages/paramiko-2.4.2-py3.5.egg/paramiko/transport.py", line 90, in
File "/usr/local/lib/python3.5/dist-packages/paramiko-2.4.2-py3.5.egg/paramiko/ed25519key.py", line 17, in
ImportError: No module named 'bcrypt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/routersploit/routersploit/interpreter.py", line 334, in command_run
self.current_module.run()
File "/home/user/routersploit/routersploit/modules/scanners/autopwn.py", line 51, in run
for module in utils.iter_modules(directory):
File "/home/user/routersploit/routersploit/core/exploit/utils.py", line 105, in iter_modules
yield import_exploit(path)
File "/home/user/routersploit/routersploit/core/exploit/utils.py", line 95, 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 'bcrypt'
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 26, in
routersploit()
File "./rsf.py", line 22, in routersploit
rsf.start()
File "/home/user/routersploit/routersploit/interpreter.py", line 116, in start
command_handler(args)
File "/home/user/routersploit/routersploit/core/exploit/utils.py", line 140, in wrapper
return fn(self, *args, **kwargs)
File "/home/user/routersploit/routersploit/interpreter.py", line 339, 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()

I understand that the problems are in the modules, but when I try to install them, I get this:
spoiler
[email protected] ~/routersploit $ pip install pycrypto
Traceback (most recent call last):
File "/home/user/.local/bin/pip", line 7, in
from pip._internal import main
File "/home/user/.local/lib/python2.7/site-packages/pip/_internal/__init__.py", line 42, in
from pip._internal import cmdoptions
File "/home/user/.local/lib/python2.7/site-packages/pip/_internal/cmdoptions.py", line 16, in
from pip._internal.index import (
File "/home/user/.local/lib/python2.7/site-packages/pip/_internal/index.py", line 14, in
from pip._vendor import html5lib, requests, six
File "/home/user/.local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 97, in
from pip._vendor.urllib3.contrib import pyopenssl
File "/home/user/.local/lib/python2.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in
import OpenSSL.SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

What is the problem or am I missing something?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question