threat9/routersploit

Routersploit termux

CyberKid1987 opened this issue · 42 comments

I follow few tutorials and view more issue but can't install cryptography. Can somebody help me step by step to install routersploit in termux? I install again termux and download routersploit. Install Python, git, future, python2. Routersploit run perfect but when I set target and then run, see error, no module cryptography.

  1. Pkg install python
  2. pkg upgrade && pkg install autoconf automake bison bzip2 clang cmake \ coreutils diffutils flex gawk git grep gzip libtool make patch perl \ sed silversearcher-ag tar wget pkg-config
  3. Pkg install perl
  4. pkg install python-dev clang libcrypt-dev libffi-dev git openssl-dev && export CONFIG_SHELL=$PREFIX/bin/sh
  5. Git clone https://github.com/threat9/routersplo...
  6. cd routersploit
  7. Pip install requests
  8. pip install -r requirements.txt
  9. pip install -r requirements-dev.txt 10. termux-fix-shebang rsf.py
  10. python rsf.py

Command "/data/data/com.termux/files/usr/bin/python -u -c "import setuptools, tokenize;file='/data/data/com.termux/files/usr/tmp/pip-install-fgwehhyt/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /data/data/com.termux/files/usr/tmp/pip-record-swe86j6_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /data/data/com.termux/files/usr/tmp/pip-install-fgwehhyt/cryptography/

same error for me

Works in nethunter and Andrax perfect.

thanks

have you tried running it by using python3?

Yes, i have tried.

wget https://github.com/termux/termux-packages/files/2408158/openssl_1.1.1-2_arm.deb.gz
wget https://github.com/termux/termux-packages/files/2408159/openssl-dev_1.1.1-2_arm.deb.gz
wget https://github.com/termux/termux-packages/files/2408160/openssl-tool_1.1.1-2_arm.deb.gz

gunzip openssl_1.1.1-2_arm.deb.gz
gunzip openssl-dev_1.1.1-2_arm.deb.gz
gunzip openssl-tool_1.1.1-2_arm.deb.gz

dpkg -i openssl_1.1.1-2_arm.deb
dpkg -i openssl-dev_1.1.1-2_arm.deb
dpkg -i openssl-tool_1.1.1-2_arm.deb

after all process completed try pip install cryptography again

Hi im getting errors on termux

[*] Starting vulnerablity check...
Traceback (most recent call last):
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 107, in import_exploit
module = importlib.import_module(path)
File "/data/data/com.termux/files/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, 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.7/site-packages/Crypto/Cipher/init.py", line 27, in
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Cipher/_mode_ecb.py", line 29, in
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Util/_raw_api.py", line 34, in
from Crypto.Util.py3compat import byte_string
ImportError: cannot import name 'byte_string' from 'Crypto.Util.py3compat' (/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Util/py3compat.py)

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 369, in command_run
self.current_module.run()
File "/data/data/com.termux/files/home/routersploit/routersploit/modules/scanners/autopwn.py", line 51, in run
for module in utils.iter_modules(directory):
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 136, in iter_modules
yield import_exploit(path)
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 122, 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/technicolor/tc7200_password_disclosure_v2'

Error: cannot import name 'byte_string' from 'Crypto.Util.py3compat' (/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Util/py3compat.py)

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 "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 117, in start
command_handler(args)
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 175, in wrapper
return fn(self, *args, **kwargs)
File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 374, in command_run
print_error(traceback.format_exc(sys.exc_info()))
File "/data/data/com.termux/files/usr/lib/python3.7/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.7/traceback.py", line 121, in format_exception
type(value), value, tb, limit=limit).format(chain=chain))
File "/data/data/com.termux/files/usr/lib/python3.7/traceback.py", line 497, in init
_seen=_seen)
File "/data/data/com.termux/files/usr/lib/python3.7/traceback.py", line 508, in init
capture_locals=capture_locals)
File "/data/data/com.termux/files/usr/lib/python3.7/traceback.py", line 337, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'tuple' and 'int'
$

Hi im getting errors on termux

[*] Starting vulnerablity check...
Traceback (most recent call last):
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 107, in import_exploit
module = importlib.import_module(path)
File "/data/data/com.termux/files/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, 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.7/site-packages/Crypto/Cipher/init.py", line 27, in
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Cipher/_mode_ecb.py", line 29, in
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Util/_raw_api.py", line 34, in
from Crypto.Util.py3compat import byte_string
ImportError: cannot import name 'byte_string' from 'Crypto.Util.py3compat' (/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Util/py3compat.py)

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 369, in command_run
self.current_module.run()
File "/data/data/com.termux/files/home/routersploit/routersploit/modules/scanners/autopwn.py", line 51, in run
for module in utils.iter_modules(directory):
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 136, in iter_modules
yield import_exploit(path)
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 122, 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/technicolor/tc7200_password_disclosure_v2'

Error: cannot import name 'byte_string' from 'Crypto.Util.py3compat' (/data/data/com.termux/files/usr/lib/python3.7/site-packages/Crypto/Util/py3compat.py)

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 "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 117, in start
command_handler(args)
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 175, in wrapper
return fn(self, *args, **kwargs)
File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 374, in command_run
print_error(traceback.format_exc(sys.exc_info()))
File "/data/data/com.termux/files/usr/lib/python3.7/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.7/traceback.py", line 121, in format_exception
type(value), value, tb, limit=limit).format(chain=chain))
File "/data/data/com.termux/files/usr/lib/python3.7/traceback.py", line 497, in init
_seen=_seen)
File "/data/data/com.termux/files/usr/lib/python3.7/traceback.py", line 508, in init
capture_locals=capture_locals)
File "/data/data/com.termux/files/usr/lib/python3.7/traceback.py", line 337, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'tuple' and 'int'
$

Yea, me too

I want to get password of admin panel of a website can it be done on termux please help

): i cant even open it it says Traceback (most recent call last): File "rsf.py", line 10, in
from routersploit.interpreter import RoutersploitInterpreter File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 11, in
from future.builtins import input
ModuleNotFoundError: No module named 'future' $ cd routerspolit
bash: cd: routerspolit: No such file or directory

Same error showing ): it again says :- python rsf.py Traceback (most recent call last): File "rsf.py", line 10, in from routersploit.interpreter import RoutersploitInterpreter File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 11, in from future.builtins import input ModuleNotFoundError: No module named 'future'

On Fri, Apr 19, 2019, 8:26 AM Mrcose @.> wrote: I just update this script. So please try again the script and thanks for the issue On Thu, Apr 18, 2019, 11:06 PM LS GAMING @.> wrote: > ): i cant even open it it says Traceback (most recent call last): File > "rsf.py", line 10, in > from routersploit.interpreter import RoutersploitInterpreter File > "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", > line 11, in > from future.builtins import input > ModuleNotFoundError: No module named 'future' $ cd routerspolit > bash: cd: routerspolit: No such file or directory > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > < #531 (comment) >, > or mute the thread > < https://github.com/notifications/unsubscribe-auth/AKYNST5BQFW3WRMUE7U7ET3PRCL6RANCNFSM4FZKFKEA > > . > — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#531 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AKIQIALIO74LF4Q5ZVQ5KSTPREUWPANCNFSM4FZKFKEA .

try
pip2 install future

https://youtu.be/FX0F0oFQ81o
found this video it helped

Yeah thats my script but its okay if u want to share it

Mrcose can you update your script. 3 days ago stop working. After type "run" has traceback message.

I follow few tutorials and view more issue but can't install cryptography. Can somebody help me step by step to install routersploit in termux? I install again termux and download routersploit. Install Python, git, future, python2. Routersploit run perfect but when I set target and then run, see error, no module cryptography.

  1. Pkg install python
  2. pkg upgrade && pkg install autoconf automake bison bzip2 clang cmake \ coreutils diffutils flex gawk git grep gzip libtool make patch perl \ sed silversearcher-ag tar wget pkg-config
  3. Pkg install perl
  4. pkg install python-dev clang libcrypt-dev libffi-dev git openssl-dev && export CONFIG_SHELL=$PREFIX/bin/sh
  5. Git clone https://github.com/threat9/routersplo...
  6. cd routersploit
  7. Pip install requests
  8. pip install -r requirements.txt
  9. pip install -r requirements-dev.txt 10. termux-fix-shebang rsf.py
  10. python rsf.py

Command "/data/data/com.termux/files/usr/bin/python -u -c "import setuptools, tokenize;file='/data/data/com.termux/files/usr/tmp/pip-install-fgwehhyt/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /data/data/com.termux/files/usr/tmp/pip-record-swe86j6_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /data/data/com.termux/files/usr/tmp/pip-install-fgwehhyt/cryptography/

Install routerploit through lazymux

Whent i send git cloner... he ask me for an username and password what can i do with this

How to fix this guy's
[*] 192.168.1.1 Starting vulnerablity check...
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.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/data/data/com.termux/files/home/routersploit/routersploit/modules/exploits/generic/ssh_auth_keys.py", line 4, in
from routersploit.core.ssh.ssh_client import SSHClient
File "/data/data/com.termux/files/home/routersploit/routersploit/core/ssh/ssh_client.py", line 2, in
import paramiko
ModuleNotFoundError: No module named 'paramiko'

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/ssh_auth_keys'

Error: No module named 'paramiko'

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 29, in
routersploit(sys.argv)
File "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.8/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.8/traceback.py", line 120, in format_exception
return list(TracebackException(
File "/data/data/com.termux/files/usr/lib/python3.8/traceback.py", line 493, in init
context = TracebackException(
File "/data/data/com.termux/files/usr/lib/python3.8/traceback.py", line 509, in init
self.stack = StackSummary.extract(
File "/data/data/com.termux/files/usr/lib/python3.8/traceback.py", line 340, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'tuple' and 'int'
$

Try to install python2 package as well with python using pip install future. Follow the steps

apt update && apt upgrade
pkg install python2
pkg install python
pkg install git
git clone https://github.com/threat9/routersploit
cd routersploit
pip2 install -r requirements-dev.txt
pip3 install future
python rsf.py

Help guise i need directory file for routersploit

Send me the link.

Bro I need your help @

Cool

How to target ip and how to it is work

I want help

A l'aide please

Traceback (most recent call last):
File "/data/data/com.termux/files/home/routersploit/rsf.py", line 10, in
from routersploit.interpreter import RoutersploitInterpreter
File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 12, in
from future.builtins import input
ModuleNotFoundError: No module named 'future'
Не выходиь ((

https://hdd.tomsk.ru/desk/onovmfqx
Устанавливаю pip install future.

Please help while I write git clone (link)
I need Username and password I enter my username and I enter my password but it's not displayed. Pls help

Please help while I write git clone (link)
I need Username and password I enter my username and I enter my password but it's not displayed. Pls help

Delete and write your own last word. Copy - paste method cut last word from link.

Now we have a problem with installing pynacl on termux. It's a madness...

ERROR: Could not build wheels for pynacl, which is required to install pyproject.toml-based projects

Any help?

@fornwall

I finally finished a script to install routersploit on termux. If anyone interested trying my script you can go here https://github.com/Roylyre/Routersploit-Termux . Maybe your problem with installation done with this script, if you found error, feel free to ask help from me... as long as I understand xD.

@CyberKid1987 i got some reference about your problem and got the fix for it from a issue 1 year ago, you can go to my repo and see the references, hope it helps ^-^

@CyberKid1987 i got some reference about your problem and got the fix for it from a issue 1 year ago, you can go to my repo and see the references, hope it helps ^-^

Works fine and without installed buku!

Thank you 🙂

Can't install, asking for a username and password, after that asking for a token. Pls help