8000 [bug] The --uid parameter doesn't work. · Issue #694 · sensepost/objection · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
10000
[bug] The --uid parameter doesn't work. #694
Closed
@robvinson

Description

@robvinson

Describe the bug
The --uid flag introduced by #526 does not work. Maybe providing a process ID (--pid) flag could be an alternative?

Expected behavior
Attach to the application running under the UID indicated by the --uid flag.

Evidence / Logs / Screenshots
Running a command like: objection --uid 12 --name com.some.package start errors out with a stacktrace like the below. It appears that attach() doesn't actually support a UID parameter.

  File "/home/me/objection/utils/agent.py", line 250, in attach
    self.session = self.device.attach(self.pid, uid=self.config.uid)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/me/venv/lib/python3.11/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
TypeError: Device.attach() got an unexpected keyword argument 'uid'

Environment (please complete the following information):

  • Frida Version: 16.4.8
  • Objection Version: master d9c989d

Metadata

Metadata

Assignees

No one assigned

    Labels

    freshissueDefault label for new, untriaged issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0