We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cae60f commit e7cd461Copy full SHA for e7cd461
overrides/frida/ios/ios-connect-hook.js
@@ -29,11 +29,11 @@ const nw_endpoint_create_host = new NativeFunction(
29
'pointer', ['pointer', 'pointer']
30
);
31
32
+const newHostStr = Memory.allocUtf8String(PROXY_HOST);
33
+const newPortStr = Memory.allocUtf8String(PROXY_PORT.toString());
34
+
35
Interceptor.attach(nw_connection_create, {
36
onEnter: function (args) {
- const newHostStr = Memory.allocUtf8String(PROXY_HOST);
- const newPortStr = Memory.allocUtf8String(PROXY_PORT.toString());
-
37
// Replace the endpoint argument entirely with our own:
38
args[0] = nw_endpoint_create_host(newHostStr, newPortStr);
39
}
0 commit comments