sensepost / sensepost/objection

So the networked connection mode is just apply to jailbroken device? Just want to confirm.

Open
#751 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

duplicate
Dominant language
Python
Stars
9.4k
Forks
1k
Avg merge
14d 5h
Merged PRs (30d)
1

Description

[why?]
objection offer the networked connection mode, when I try, always failed.

objection -N -h 192.168.0.107 -p 27043 -g org.xxx explore -q

Something wrong about that:

Using networked device @`192.168.0.107:27043`
[debug] Attempting to attach to process: `org.binguo.PCBrowser12`
Traceback (most recent call last):
  File "/usr/local/bin/objection", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/objection/console/cli.py", line 114, in explore
    agent.inject()
  File "/usr/local/lib/python3.8/site-packages/objection/utils/agent.py", line 202, in inject
    session = self.get_session()
  File "/usr/local/lib/python3.8/site-packages/objection/utils/agent.py", line 152, in get_session
    self.session = self.device.attach(state_connection.gadget_name)
  File "/usr/local/lib/python3.8/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/frida/core.py", line 994, in attach
    return Session(self._impl.attach(self._pid_of(target), **kwargs))  # type: ignore
  File "/usr/local/lib/python3.8/site-packages/frida/core.py", line 1108, in _pid_of
    return self.get_process(target).pid
  File "/usr/local/lib/python3.8/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/frida/core.py", line 883, in get_process
    for process in self._impl.enumerate_processes()
frida.TransportError: connection closed

[ENV]
frida: 16.2.2
frida-tools: 13.7.1
objection: 1.11.0
FridaGadget: 14.2.18

❗️must noticed that: I set custom fridagadget.config according to official tutorial, content is like this⬇️

{
    "interaction": {
        "type": "listen",
        "address": "0.0.0.0",
        "port": 27043,
        "on_port_conflict": "fail",
        "on_load": "resume"
    },
    "code_signing":"required"
}

[issue]
Similar issues
#674

Expected behavior
If that mode is really available in some jailed device, not jailbroken, I would expected that works normally as USB mode.
But if it is just applied to jailbroken device, please confirm that and tell me.

Additional context
Thx.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command with the reported Frida, frida-tools, objection, and FridaGadget versions. Trace the failure through objection/console/cli.py and objection/utils/agent.py, then verify whether the documented networked mode supports the reported jailed-device setup and define the expected behavior for the supplied gadget configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, python
Domain
mobile, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.