threat9 / routersploit

Exploitation Framework for Embedded Devices
Other
12.23k stars 2.32k forks source link

Why is not work? #516

Closed ghost closed 6 years ago

ghost commented 6 years ago

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Error message: 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 "/root/routersploit/routersploit/core/exploit/utils.py", line 80, in import_exploit module = importlib.import_module(path) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/root/routersploit/routersploit/modules/exploits/routers/thomson/twg849_info_disclosure.py", line 2, in from routersploit.core.snmp.snmp_client import SNMPClient File "/root/routersploit/routersploit/core/snmp/snmp_client.py", line 1, in from pysnmp.entity.rfc3413.oneliner import cmdgen ModuleNotFoundError: No module named 'pysnmp.entity.rfc3413.oneliner'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/routersploit/routersploit/interpreter.py", line 334, in command_run self.current_module.run() File "/root/routersploit/routersploit/modules/scanners/autopwn.py", line 51, in run for module in utils.iter_modules(directory): File "/root/routersploit/routersploit/core/exploit/utils.py", line 103, in iter_modules yield import_exploit(path) File "/root/routersploit/routersploit/core/exploit/utils.py", line 93, 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/routers/thomson/twg849_info_disclosure'

Error: No module named 'pysnmp.entity.rfc3413.oneliner'

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 "/root/routersploit/routersploit/interpreter.py", line 116, in start command_handler(args) File "/root/routersploit/routersploit/core/exploit/utils.py", line 138, in wrapper return fn(self, *args, *kwargs) File "/root/routersploit/routersploit/interpreter.py", line 339, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/usr/lib/python3.6/traceback.py", line 163, in format_exc return "".join(format_exception(sys.exc_info(), limit=limit, chain=chain)) File "/usr/lib/python3.6/traceback.py", line 117, in format_exception type(value), value, tb, limit=limit).format(chain=chain)) File "/usr/lib/python3.6/traceback.py", line 486, in init _seen=_seen) File "/usr/lib/python3.6/traceback.py", line 497, in init capture_locals=capture_locals) File "/usr/lib/python3.6/traceback.py", line 332, in extract if limit >= 0: TypeError: '>=' not supported between instances of 'tuple' and 'int'

Your Environment

Current Behavior

Expected Behavior

lucyoa commented 6 years ago

Upgrade routersploit and run again python3 -m pip install -r requirements.txt

Your version of pysnmp jest too new - 5.0.0. The version that is available on PyPI is 4.4.6 and this is the one that we are using.

kidBuuReborn commented 5 years ago

im having this same issue but thing is i get a error when i run python3 -m pip install -r requirements.txt at the end if the installation so i think that may be the issue keeping my routersploit from running but im not sure how to correct the error wit the python3 -m pip install -r requirements.txt in order to get a completer end result with routersploit did you ever fix this error?

Vincent-Paolo commented 4 years ago

im having this same issue but thing is i get a error when i run python3 -m pip install -r requirements.txt at the end if the installation so i think that may be the issue keeping my routersploit from running but im not sure how to correct the error wit the python3 -m pip install -r requirements.txt in order to get a completer end result with routersploit did you ever fix this error?

Just look at the error messages and see what you are missing and reinstall that or update it. I had to error messages one of them was psysnmp and paramiko i both installed them and now it works fine.

kidBuuReborn commented 4 years ago

it read that in my error message as well and i inatalled them both, but it still continues to give me errora, even continuing to say paramiko is not installed and i thing i installed it twice amd did an update both times.... i trully backed off the program because it was giving me such a headache...

El vie., 6 de dic. de 2019 11:43 AM, Vincent-Paolo notifications@github.com escribió:

im having this same issue but thing is i get a error when i run python3 -m pip install -r requirements.txt at the end if the installation so i think that may be the issue keeping my routersploit from running but im not sure how to correct the error wit the python3 -m pip install -r requirements.txt in order to get a completer end result with routersploit did you ever fix this error?

Just look at the error messages and see what you are missing and reinstall that or update it. I had to error messages one of them was psysnmp and paramiko i both installed them and now it works fine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/threat9/routersploit/issues/516?email_source=notifications&email_token=AM5Z2K7JVVARIAMPLYOXPOTQXJ6LNA5CNFSM4FXGCUHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGEVFWI#issuecomment-562647769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5Z2K7FDNE6F73DIJZCS5LQXJ6LNANCNFSM4FXGCUHA .

Lucho342 commented 3 years ago

Traceback (most recent call last): File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 389, in command_run self.current_module.run() File "/data/data/com.termux/files/home/routersploit/routersploit/modules/scanners/autopwn.py", line 77, in run for module in utils.iter_modules(directory): File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 138, in iter_modules yield import_exploit(path) File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 109, in import_exploit module = importlib.import_module(path) File "/data/data/com.termux/files/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 850, in exec_module File "", line 228, in _call_with_frames_removed File "/data/data/com.termux/files/home/routersploit/routersploit/modules/exploits/generic/shellshock.py", line 4, in from routersploit.core.http.http_client import HTTPClient File "/data/data/com.termux/files/home/routersploit/routersploit/core/http/http_client.py", line 2, in import requests File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests-2.26.0-py3.9.egg/requests/init.py", line 100, in check_compatibility(urllib3.version, chardet_version, charset_normalizer_version) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests-2.26.0-py3.9.egg/requests/init.py", line 85, in check_compatibility raise Exception("You need either charset_normalizer or chardet installed") Exception: You need either charset_normalizer or chardet installed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/home/routersploit/rsf.py", line 29, in routersploit(sys.argv) File "/data/data/com.termux/files/home/routersploit/rsf.py", line 25, in routersploit rsf.start() File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 125, in start command_handler(args, *kwargs) File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 177, in wrapper return fn(self, args, *kwargs) File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 394, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/data/data/com.termux/files/usr/lib/python3.9/traceback.py", line 167, in format_exc return "".join(format_exception(sys.exc_info(), limit=limit, chain=chain)) File "/data/data/com.termux/files/usr/lib/python3.9/traceback.py", line 120, in format_exception return list(TracebackException( File "/data/data/com.termux/files/usr/lib/python3.9/traceback.py", line 508, in init self.stack = StackSummary.extract( File "/data/data/com.termux/files/usr/lib/python3.9/traceback.py", line 340, in extract if limit >= 0: TypeError: '>=' not supported between instances of 'tuple' and 'int'

hecker-code commented 3 years ago

i have this same problem rsf (Camera Scanner) > run [*] Running module scanners/cameras/camera_scan...

[*] 68.142.41.208 Starting vulnerablity check... 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 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 850, in exec_module File "", line 228, in _call_with_frames_removed File "/usr/lib/python3/dist-packages/routersploit/modules/exploits/generic/ssh_auth_keys.py", line 4, in from routersploit.core.ssh.ssh_client import SSHClient File "/usr/lib/python3/dist-packages/routersploit/core/ssh/ssh_client.py", line 2, in import paramiko File "/usr/local/lib/python3.9/dist-packages/paramiko/init.py", line 30, in from paramiko.transport import SecurityOptions, Transport File "/usr/local/lib/python3.9/dist-packages/paramiko/transport.py", line 65, in from paramiko.sftp_client import SFTPClient File "/usr/local/lib/python3.9/dist-packages/paramiko/sftp_client.py", line 41, in from paramiko.sftp_file import SFTPFile File "/usr/local/lib/python3.9/dist-packages/paramiko/sftp_file.py", line 66 self._close(async=True) ^ SyntaxError: invalid syntax

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 517, 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' can someone help?

CLASSIFIED12323e13 commented 2 years ago

Upgrade routersploit and run again python3 -m pip install -r requirements.txt

Your version of pysnmp jest too new - 5.0.0. The version that is available on PyPI is 4.4.6 and this is the one that we are using.

I have tried this method python3 -m pip install -r requirements.txt but it keeps saying file or folder not found however when I look into the directory where the txt file is located I can clearly see its there

Prathap929 commented 2 years ago

Traceback (most recent call last): File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 109, in import_exploit module = importlib.import_module(path) File "/data/data/com.termux/files/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/data/data/com.termux/files/home/routersploit/routersploit/modules/exploits/generic/heartbleed.py", line 5, in from cryptography import x509 ModuleNotFoundError: No module named 'cryptography'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 389, in command_run self.current_module.run() File "/data/data/com.termux/files/home/routersploit/routersploit/modules/scanners/autopwn.py", line 77, in run for module in utils.iter_modules(directory): File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 138, in iter_modules yield import_exploit(path) File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 120, in import_exploit raise RoutersploitException( routersploit.core.exploit.exceptions.RoutersploitException: Error during loading 'routersploit/modules/exploits/generic/heartbleed'

Error: No module named 'cryptography'

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 "/data/data/com.termux/files/home/routersploit/rsf.py", line 29, in routersploit(sys.argv) File "/data/data/com.termux/files/home/routersploit/rsf.py", line 25, in routersploit rsf.start() File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 125, in start command_handler(args, *kwargs) File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 177, in wrapper return fn(self, args, *kwargs) File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 394, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/data/data/com.termux/files/usr/lib/python3.10/traceback.py", line 183, in format_exc return "".join(format_exception(sys.exc_info(), limit=limit, chain=chain)) File "/data/data/com.termux/files/usr/lib/python3.10/traceback.py", line 135, in format_exception te = TracebackException(type(value), value, tb, limit=limit, compact=True) File "/data/data/com.termux/files/usr/lib/python3.10/traceback.py", line 502, in init self.stack = StackSummary.extract( File "/data/data/com.termux/files/usr/lib/python3.10/traceback.py", line 357, in extract if limit >= 0: TypeError: '>=' not supported between instances of 'tuple' and 'int'