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 module fix pycrypto fixes auto/pwn #808

Closed
s-b-repo opened this issue Sep 30, 2023 · 7 comments
Closed

routersploit module fix pycrypto fixes auto/pwn #808

s-b-repo opened this issue Sep 30, 2023 · 7 comments

Comments

@s-b-repo
Copy link

pip unistall pycrypto
and pip install pycryptodome

pycrypto is not maintained this is the work around

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Steps to Reproduce (for bugs)

Your Environment

  • RouterSploit Version used:
  • Operating System and 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
  • If suggesting a change/improvement, tell us how it works right now

Expected Behavior

  • If you're describing a bug, tell us what should happen
  • If you're suggesting a change/improvement, tell us how it should work
@s-b-repo s-b-repo changed the title router spliot module fix routersploit module fix Sep 30, 2023
@s-b-repo s-b-repo changed the title routersploit module fix routersploit module fix pycrypto Sep 30, 2023
@s-b-repo s-b-repo changed the title routersploit module fix pycrypto routersploit module fix pycrypto fixes auto/pwn Sep 30, 2023
@Sigirrr
Copy link

Sigirrr commented Nov 4, 2023

HI, i did what you say, and still stay at this errors.
Linux localhost 6.5.0-kali2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.3-1kali2 (2023-10-03) x86_64 GNU/Linux
Version : 3.4.1

└─$ pip uninstall pycrypto
WARNING: Skipping pycrypto as it is not installed.
└─$ pip install pycriptodome
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pycriptodome (from versions: none)
ERROR: No matching distribution found for pycriptodome

rsf > use scanners/dlink_scan
[-] Error during loading 'routersploit/modules/scanners/dlink_scan'

Error: No module named 'routersploit.modules.scanners.dlink_scan'

It should be valid path to the module. Use key multiple times for completion.
rsf > use scanners/dlink
[-] Error during loading 'routersploit/modules/scanners/dlink'

Error: No module named 'routersploit.modules.scanners.dlink'

It should be valid path to the module. Use key multiple times for completion.
rsf > use scanners/autopwn
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 "/usr/lib/python3/dist-packages/routersploit/core/exploit/utils.py", line 109, in import_exploit
module = importlib.import_module(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, 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 "/usr/lib/python3/dist-packages/routersploit/modules/exploits/routers/technicolor/tc7200_password_disclosure_v2.py", line 3, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

During handling of the above exception, another exception occurred:

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 120, in import_exploit
raise RoutersploitException(
routersploit.core.exploit.exceptions.RoutersploitException: Error during loading 'routersploit/modules/exploits/routers/technicolor/tc7200_password_disclosure_v2'

Error: No module named 'Crypto'

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 "/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.11/traceback.py", line 187, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/traceback.py", line 139, in format_exception
te = TracebackException(type(value), value, tb, limit=limit, compact=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/traceback.py", line 702, in init
self.stack = StackSummary._extract_from_extended_frame_gen(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/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'

@s-b-repo
Copy link
Author

s-b-repo commented Nov 4, 2023

can you send the command want to test on my sus

@s-b-repo
Copy link
Author

Error: No module named 'routersploit.modules.scanners.dlink'

@gier-wu
Copy link

gier-wu commented Jan 22, 2024

pls try
pip3 uninstall cryptography
pip3 install cryptography==3.4.8

@s-b-repo
Copy link
Author

pls try pip3 uninstall cryptography pip3 install cryptography==3.4.8

Skipping pycrypto as it is not installed. install both

@s-b-repo
Copy link
Author

pycryptodome spelling error on your part check what you pip installed

@adyzbyte
Copy link

This did the job for me.

pip uninstall crypto
pip uninstall pycryptodome
pip install pycryptodome

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

No branches or pull requests

5 participants