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

[Question] Dev Installation Problem #668

Closed
capt-meelo opened this issue Mar 1, 2024 · 2 comments
Closed

[Question] Dev Installation Problem #668

capt-meelo opened this issue Mar 1, 2024 · 2 comments

Comments

@capt-meelo
Copy link

I'm trying to play around with objection and potentially contribute. I tried the dev installation guide posted in the wiki but I noticed that the objection that gets installed by following the guide is different. For example, right after the installation and running objection, I'm getting the following error:

$ objection
Traceback (most recent call last):
  File "/home/meelo/tools/objection/venv/bin/objection", line 5, in <module>
    from objection.console.cli import cli
  File "/home/meelo/tools/objection/objection/console/cli.py", line 7, in <module>
    from objection.commands.plugin_manager import load_plugin
  File "/home/meelo/tools/objection/objection/commands/plugin_manager.py", line 8, in <module>
    from ..utils.plugin import Plugin as PluginType
  File "/home/meelo/tools/objection/objection/utils/__init__.py", line 7, in <module>
    from .update_checker import check_version
  File "/home/meelo/tools/objection/objection/utils/update_checker.py", line 7, in <module>
    from pkg_resources import parse_version
ModuleNotFoundError: No module named 'pkg_resources'

A similar issue was reported before and the provided solution (pip install --force-reinstall -U setuptools) worked. However, the objection that gets installed is not fully functional. One good example is that the explore command is missing.

$ objection
Usage: objection [OPTIONS] COMMAND [ARGS]...

       _   _         _   _
   ___| |_|_|___ ___| |_|_|___ ___
  | . | . | | -_|  _|  _| | . |   |
  |___|___| |___|___|_| |_|___|_|_|
        |___|(object)inject(ion)

       Runtime Mobile Exploration
          by: @leonjza from @sensepost

Options:
  -N, --network            Connect using a network connection instead of USB.
  -h, --host TEXT          [default: 127.0.0.1]
  -p, --port INTEGER       [default: 27042]
  -ah, --api-host TEXT     [default: 127.0.0.1]
  -ap, --api-port INTEGER  [default: 8888]
  -n, --name TEXT          Name or bundle identifier to attach to.
  -S, --serial TEXT        A device serial to connect to.
  -d, --debug              Enable debug mode with verbose output.
  -s, --spawn              Spawn the target.
  -p, --no-pause           Resume the target immediately.
  -f, --foremost           Use the current foremost application.
  --debugger               Enable the Chrome debug port.
  --uid TEXT               Specify the uid to run as (Android only).
  --help                   Show this message and exit.

Commands:
  api       Start the objection API server in headless mode.
  patchapk  Patch an APK with the frida-gadget.so.
  patchipa  Patch an IPA with the FridaGadget dylib.
  run       Run a single objection command.
  signapk   Zipalign and sign an APK with the objection key.
  start     Start a new session
  version   Prints the current version and exits.
$ objection -N explore
Usage: objection [OPTIONS] COMMAND [ARGS]...
Try 'objection --help' for help.

Error: No such command 'explore'.
@leonjza
Copy link
Member

leonjza commented Mar 1, 2024

The main branch has moved on since the last pypi release. I experimented with a command line change that I haven't finished yet which is why explore seems missing. It is not, it's just start atm.

@capt-meelo
Copy link
Author

Got it now. Will try to read the code so I can find the other options. Thanks!

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

2 participants