Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routersploit executing scan error #801

Open
COKOZAURIO7632 opened this issue Apr 11, 2023 · 2 comments
Open

Routersploit executing scan error #801

COKOZAURIO7632 opened this issue Apr 11, 2023 · 2 comments

Comments

@COKOZAURIO7632
Copy link

When I want to use routersploit for an scan then this error appears and I already tried various options and solutions on the internet and Youtube but they have not worked

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.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/data/data/com.termux/files/home/routersploit/routersploit/modules/exploits/routers/technicolor/tc7200_password_disclosure_v2.py", line 3, in
from Crypto.Cipher import AES
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Crypto/Cipher/init.py", line 82, in
from Crypto.Cipher._mode_ctr import _create_ctr_cipher
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Crypto/Cipher/_mode_ctr.py", line 35, in
from Crypto.Util.number import long_to_bytes
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Crypto/Util/number.py", line 398
s = pack('>I', n & 0xffffffffL) + s
^
SyntaxError: invalid hexadecimal literal

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.11/traceback.py", line 187, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/traceback.py", line 139, in format_exception
te = TracebackException(type(value), value, tb, limit=limit, compact=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/traceback.py", line 690, in init
self.stack = StackSummary._extract_from_extended_frame_gen(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/traceback.py", line 409, in _extract_from_extended_frame_gen
if limit >= 0:
^^^^^^^^^^
TypeError: '>=' not supported between instances of 'tuple' and 'int'

@DuckSound0
Copy link

Here might be a fix that worked for some in this discussion:
#577 (comment)

@s-b-repo
Copy link

here i shared a fix rn #808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants