sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.46k stars 854 forks source link

Unable to connect to the frida server #342

Closed nas3f closed 4 years ago

nas3f commented 4 years ago

Describe the bug When I use explore option it gives me error.

To Reproduce Steps to reproduce the behavior:

  1. Started Frida Server listening
  2. run objection explore

Evidence / Logs / Screenshots

Using USB device `iOS Device`
Unable to connect to the frida server: unable to launch iOS app: The operation couldn’t be completed. Application "Gadget" is unknown to FrontBoard.

Environment (please complete the following information):

leonjza commented 4 years ago

You need to specify the target with the --gadget flag, described in the wiki here.

dickyher-lab commented 3 years ago

i am having issue to run --gadget

full command : objection --gadget "co.id.apple.AppStore" explore output : Unable to connect to the frida server: unexpected error while preparing pipe endpoints for process with pid 1 (mach_port_allocate remote_rx returned '(os/kern) invalid task')

device used : iphone SE 2nd Gen with iOS 13.7 JB Method : Odyssey 1.3.0 Frida Server & Frida Client Version : 14.2.14 Objection Version : 1.10.1

leonjza commented 3 years ago

@dickyher-lab try with vanilla Frida first

dickyher-lab commented 3 years ago

Ah my bad,

Its literally issue on the frida, i have tried with option frida-ps Uai, worked with all listed running packages

But once, frida used with option such as frida -U --codeshare [script] -f [package], the frida return with Failed to spawn: unexpected error while preparing pipe endpoints for process with pid 1 (mach_port_allocate remote_rx returned '(os/kern) invalid task')

There are some reports on other behaviour on unc0ver method JB in this report issues https://github.com/frida/frida-core/issues/120

I think that, i need to open issue on there.

Thanks @leonjza