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

Cant start frida server on iOS 16 #2375

Closed
fredrikhaggbom opened this issue Jan 4, 2023 · 18 comments
Closed

Cant start frida server on iOS 16 #2375

fredrikhaggbom opened this issue Jan 4, 2023 · 18 comments

Comments

@fredrikhaggbom
Copy link

When installing Frida on jailbroken iOS 16.2 device, I get the following log:

iPhone:~ root# apt-get install re.frida.server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  re.frida.server
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 18.7 MB of archives.
After this operation, 59.8 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  re.frida.server
Install these packages without verification? [y/N] y
Get:1 https://build.frida.re ./ re.frida.server 16.0.8 [18.7 MB]
Fetched 18.7 MB in 2s (8775 kB/s)          
Selecting previously unselected package re.frida.server.
(Reading database ... 4426 files and directories currently installed.)
Preparing to unpack .../re.frida.server_16.0.8_iphoneos-arm.deb ...
Unpacking re.frida.server (16.0.8) ...
/Library/LaunchDaemons/re.frida.server.plist: Service cannot load in requested session
Setting up re.frida.server (16.0.8) ...

It seems to me that the installation is successful, however when trying to launch frida-server, there's an error (/Library/LaunchDaemons/re.frida.server.plist: Service cannot load in requested session)

I get the same error message when trying to start the server with command launchctl load /Library/LaunchDaemons/re.frida.server.plist.

Any ideas of how to solve this?

@YungRaj
Copy link

YungRaj commented Jan 26, 2023

Experiencing this issue too. Has anyone found a way to get it to work?

@YungRaj
Copy link

YungRaj commented Jan 26, 2023

Looks like using Frida 16.0.2 works

@0xallie
Copy link

0xallie commented Feb 10, 2023

You need to edit the plist and remove

<key>LimitLoadToSessionType</key>
<string>System</string>

and then it should work.

@oleavr
Copy link
Member

oleavr commented Feb 11, 2023

Fixed in Frida 16.0.9, currently being released.

@oleavr oleavr closed this as completed Feb 11, 2023
@DnPUBG1
Copy link

DnPUBG1 commented Mar 10, 2023

i also have the same problem is there any way to solve it?

@fredrikhaggbom
Copy link
Author

i also have the same problem is there any way to solve it?

As @oleavr mentioned, it was fixed in version 16.0.9. Both 16.0.9 and 16.0.10 works fine for me in iOS 16.

@jialeguan
Copy link

Maybe go to ssh and run frida-server manually.

@und3fined
Copy link

In 16.0.11, Need manual run frida-server on Jb device (iOS 16)

@DnPUBG1
Copy link

DnPUBG1 commented Mar 30, 2023

manual run frida-server

how can i run frida-sever manually

@und3fined
Copy link

und3fined commented Mar 30, 2023

@DnPUBG1 ssh to your device and run command
frida-server -D

@jpstotz
Copy link

jpstotz commented Mar 30, 2023

This issue is again a problem on iOS 16.3.1 using latest frida iOS package (16.0.11).

@Chensem
Copy link

Chensem commented Apr 3, 2023

+1

@jpstotz
Copy link

jpstotz commented May 5, 2023

Does somebody know what effect the setting LimitLoadToSessionType=System in the launch daemon plist file has?

If fixing the underlaying problem is not that easy and for most users running frida-server without that option is sufficient my suggestion would be to change the build scripts that create the packages for the Frida Cydia repo to provide two packages:
One with the launch daemon plist that contains the LimitLoadToSessionType=System entry and one without.

The users could select the package that works in their environment. Does anybody know in which repository the scripts are located that build the frida-server iOS Cydia packages/repository on https://build.frida.re?

@und3fined
Copy link

Anyone can try here: https://miticollo.github.io/repos/

@0xklaue
Copy link

0xklaue commented May 22, 2023

The problem still persists.
iOS version: 16.4.1
Frida version: 16.0.19
iOS device: iPhone X (A11)

Workaround mentioned by @0xallie works

@nullonsesec
Copy link

You need to edit the plist and remove

<key>LimitLoadToSessionType</key>
<string>System</string>

and then it should work.

Either you can do this or for the time being open Filza file manager and search Frida, you will find the executable file click on it and you are good to go.

@onelive7
Copy link

run frida-server -D is ok.

@Raj789-sec
Copy link

can anyone help me ? ios 16.7.4 iphone8 rootful - frida 16.1.10 and objection unable to use
➜ ~ objection -g com.apple.VoiceMemos explore
/Users/raj/Library/Python/3.9/lib/python/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020
warnings.warn(
Checking for a newer version of objection...
Using USB device iPhone
Unable to connect to the frida server: failed to get the task for process 12050

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