Skip to content

Routersploit not starting on Termux 0.118.3 kernel 4.9.337 aarch64 - No module named 'pkg_resources' #906

@Czechball

Description

@Czechball

Hello,
after successfully setting up Routersploit in a Termux environment on Android, it will not start.

Installation steps:

After these steps, I have tried to start the actual script with Python:

python3 ./rsf.py

which results in these errors:

Traceback (most recent call last):                        File "/data/data/com.termux/files/home/routersploit/rsf.py", line 9, in <module>                                  from routersploit.interpreter import RoutersploitInterpreter                                                  File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 12, in <module>            from routersploit.core.exploit.exceptions import RoutersploitException                                        File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/__init__.py", line 1, in <module>                                                           from routersploit.core.exploit.exploit import (         ...<4 lines>...
)                                                     File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/exploit.py", line 11, in <module>                                                           from routersploit.core.exploit.option import Option   File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/option.py", line 5, in <module>     from routersploit.core.exploit.utils import (           ...<2 lines>...
)                                                     File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 10, in <module>     import routersploit.resources.wordlists as wordlists
File "/data/data/com.termux/files/home/routersploit/routersploit/resources/wordlists/__init__.py", line 1, in <module>                                                    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

According to what I found online, I have verified the following:

  • I have the setuptools pip package installed
  • I have build-essential and other build-related apt packages installed
  • My pip binaries are available in PATH

Related issues:

It seems like this commit attempted to fix the issue, but was never merged?
4c50eae

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions