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

Add support for working in the SRD envrionment #400

Merged
merged 2 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions server/frida-server.xcent
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>research.com.apple.license-to-operate</key>
<true/>
<key>abs-client</key>
<string>143531244</string>
<key>adi-client</key>
Expand Down Expand Up @@ -296,6 +302,8 @@
<true/>
<key>com.apple.sh</key>
<true/>
<key>com.apple.private.cs.debugger</key>
<true/>
<key>com.apple.springboard.debugapplications</key>
<true/>
<key>com.apple.springboard.iconState</key>
Expand Down
9 changes: 7 additions & 2 deletions src/darwin/darwin-host-session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,13 @@ namespace Frida {
#if HAVE_EMBEDDED_ASSETS
id = yield fruitjector.inject_library_resource (pid, agent, entrypoint, agent_parameters, cancellable);
#else
id = yield fruitjector.inject_library_file (pid, Config.FRIDA_AGENT_PATH, entrypoint, agent_parameters,
cancellable);
string agent_path = Config.FRIDA_AGENT_PATH;
#if IOS
unowned string? cryptex_path = Environment.get_variable ("CRYPTEX_MOUNT_PATH");
if (cryptex_path != null)
agent_path = cryptex_path + agent_path;
#endif
id = yield fruitjector.inject_library_file (pid, agent_path, entrypoint, agent_parameters, cancellable);
#endif

return id;
Expand Down