threat9 / routersploit

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

Routersploit executing scan error #801

Open COKOZAURIO7632 opened 1 year ago

COKOZAURIO7632 commented 1 year ago

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 commented 1 year ago

Here might be a fix that worked for some in this discussion: https://github.com/threat9/routersploit/issues/577#issuecomment-633197142

s-b-repo commented 9 months ago

here i shared a fix rn https://github.com/threat9/routersploit/issues/808