├── .DS_Store ├── README.md └── strongR-frida ├── .DS_Store ├── frida-core ├── 0001-Florida-string_frida_rpc.patch ├── 0002-Florida-frida_agent_so.patch ├── 0003-Florida-symbol_frida_agent_main.patch ├── 0004-Florida-thread_gum_js_loop.patch ├── 0005-Florida-thread_gmain.patch ├── 0006-Florida-protocol_unexpected_command.patch ├── 0007-Florida-update-python-script.patch ├── 0008-Florida-pool-frida.patch └── 0009-Florida-memfd-name-jit-cache.patch └── frida-gum └── 0001-Florida-pool-frida.patch /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzzheyang/Patchs/cdc5b28f2a550e7c8477a64366cbbd184e835428/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Patchs 2 | patch ext 3 | 来自[Ylarod](https://github.com/Ylarod/Florida)的patch 4 | 5 | -------------------------------------------------------------------------------- /strongR-frida/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzzheyang/Patchs/cdc5b28f2a550e7c8477a64366cbbd184e835428/strongR-frida/.DS_Store -------------------------------------------------------------------------------- /strongR-frida/frida-core/0001-Florida-string_frida_rpc.patch: -------------------------------------------------------------------------------- 1 | From d7201c32bd8cf347cacd7427a942e0e0188045a1 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 15:51:29 +0800 4 | Subject: [PATCH 1/9] Florida: string_frida_rpc 5 | 6 | --- 7 | lib/base/rpc.vala | 15 ++++++++++++--- 8 | 1 file changed, 12 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/lib/base/rpc.vala b/lib/base/rpc.vala 11 | index 3695ba8c..664bd19c 100644 12 | --- a/lib/base/rpc.vala 13 | +++ b/lib/base/rpc.vala 14 | @@ -11,13 +11,22 @@ namespace Frida { 15 | Object (peer: peer); 16 | } 17 | 18 | + public string getRpcStr(bool quote){ 19 | + string result = (string) GLib.Base64.decode((string) GLib.Base64.decode("Wm5KcFpHRTZjbkJq")); 20 | + if(quote){ 21 | + return "\"" + result + "\""; 22 | + }else{ 23 | + return result; 24 | + } 25 | + } 26 | + 27 | public async Json.Node call (string method, Json.Node[] args, Cancellable? cancellable) throws Error, IOError { 28 | string request_id = Uuid.string_random (); 29 | 30 | var request = new Json.Builder (); 31 | request 32 | .begin_array () 33 | - .add_string_value ("frida:rpc") 34 | + .add_string_value (getRpcStr(false)) 35 | .add_string_value (request_id) 36 | .add_string_value ("call") 37 | .add_string_value (method) 38 | @@ -70,7 +79,7 @@ namespace Frida { 39 | } 40 | 41 | public bool try_handle_message (string json) { 42 | - if (json.index_of ("\"frida:rpc\"") == -1) 43 | + if (json.index_of (getRpcStr(true)) == -1) 44 | return false; 45 | 46 | var parser = new Json.Parser (); 47 | @@ -99,7 +108,7 @@ namespace Frida { 48 | return false; 49 | 50 | string? type = rpc_message.get_element (0).get_string (); 51 | - if (type == null || type != "frida:rpc") 52 | + if (type == null || type != getRpcStr(false)) 53 | return false; 54 | 55 | var request_id_value = rpc_message.get_element (1); 56 | -- 57 | 2.42.0 58 | 59 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0002-Florida-frida_agent_so.patch: -------------------------------------------------------------------------------- 1 | From 98034685d895e07aa0cf079eb7f73189f12c6d66 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 15:57:19 +0800 4 | Subject: [PATCH 2/9] Florida: frida_agent_so 5 | 6 | --- 7 | src/linux/linux-host-session.vala | 7 ++++--- 8 | 1 file changed, 4 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/src/linux/linux-host-session.vala b/src/linux/linux-host-session.vala 11 | index 50470ac8..64245792 100644 12 | --- a/src/linux/linux-host-session.vala 13 | +++ b/src/linux/linux-host-session.vala 14 | @@ -128,12 +128,13 @@ namespace Frida { 15 | var blob64 = Frida.Data.Agent.get_frida_agent_64_so_blob (); 16 | var emulated_arm = Frida.Data.Agent.get_frida_agent_arm_so_blob (); 17 | var emulated_arm64 = Frida.Data.Agent.get_frida_agent_arm64_so_blob (); 18 | - agent = new AgentDescriptor (PathTemplate ("frida-agent-.so"), 19 | + var random_prefix = GLib.Uuid.string_random(); 20 | + agent = new AgentDescriptor (PathTemplate (random_prefix + "-.so"), 21 | new Bytes.static (blob32.data), 22 | new Bytes.static (blob64.data), 23 | new AgentResource[] { 24 | - new AgentResource ("frida-agent-arm.so", new Bytes.static (emulated_arm.data), tempdir), 25 | - new AgentResource ("frida-agent-arm64.so", new Bytes.static (emulated_arm64.data), tempdir), 26 | + new AgentResource (random_prefix + "-arm.so", new Bytes.static (emulated_arm.data), tempdir), 27 | + new AgentResource (random_prefix + "-arm64.so", new Bytes.static (emulated_arm64.data), tempdir), 28 | }, 29 | AgentMode.INSTANCED, 30 | tempdir); 31 | -- 32 | 2.42.0 33 | 34 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0003-Florida-symbol_frida_agent_main.patch: -------------------------------------------------------------------------------- 1 | From e108bdb7be0e5756a613fbe1162f07a8623da327 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 16:02:50 +0800 4 | Subject: [PATCH 3/9] Florida: symbol_frida_agent_main 5 | 6 | --- 7 | src/agent-container.vala | 2 +- 8 | src/anti-anti-frida.py | 27 +++++++++++++++++++++++++++ 9 | src/darwin/darwin-host-session.vala | 2 +- 10 | src/freebsd/freebsd-host-session.vala | 2 +- 11 | src/linux/linux-host-session.vala | 2 +- 12 | src/qnx/qnx-host-session.vala | 2 +- 13 | src/windows/windows-host-session.vala | 2 +- 14 | tests/test-agent.vala | 2 +- 15 | tests/test-injector.vala | 2 +- 16 | 9 files changed, 35 insertions(+), 8 deletions(-) 17 | create mode 100644 src/anti-anti-frida.py 18 | 19 | diff --git a/src/agent-container.vala b/src/agent-container.vala 20 | index 73e0c017..a3db1112 100644 21 | --- a/src/agent-container.vala 22 | +++ b/src/agent-container.vala 23 | @@ -28,7 +28,7 @@ namespace Frida { 24 | } 25 | 26 | void * main_func_symbol; 27 | - var main_func_found = container.module.symbol ("frida_agent_main", out main_func_symbol); 28 | + var main_func_found = container.module.symbol ("frida_agent_main", out main_func_symbol); 29 | assert (main_func_found); 30 | container.main_impl = (AgentMainFunc) main_func_symbol; 31 | 32 | diff --git a/src/anti-anti-frida.py b/src/anti-anti-frida.py 33 | new file mode 100644 34 | index 00000000..a203189f 35 | --- /dev/null 36 | +++ b/src/anti-anti-frida.py 37 | @@ -0,0 +1,27 @@ 38 | +import lief 39 | +import sys 40 | +import random 41 | +import os 42 | + 43 | +if __name__ == "__main__": 44 | + input_file = sys.argv[1] 45 | + print(f"[*] Patch frida-agent: {input_file}") 46 | + random_name = "".join(random.sample("ABCDEFGHIJKLMNO", 5)) 47 | + print(f"[*] Patch `frida` to `{random_name}``") 48 | + 49 | + binary = lief.parse(input_file) 50 | + 51 | + if not binary: 52 | + exit() 53 | + 54 | + for symbol in binary.symbols: 55 | + if symbol.name == "frida_agent_main": 56 | + symbol.name = "main" 57 | + 58 | + if "frida" in symbol.name: 59 | + symbol.name = symbol.name.replace("frida", random_name) 60 | + 61 | + if "FRIDA" in symbol.name: 62 | + symbol.name = symbol.name.replace("FRIDA", random_name) 63 | + 64 | + binary.write(input_file) 65 | \ No newline at end of file 66 | diff --git a/src/darwin/darwin-host-session.vala b/src/darwin/darwin-host-session.vala 67 | index ab9b2900..4369922d 100644 68 | --- a/src/darwin/darwin-host-session.vala 69 | +++ b/src/darwin/darwin-host-session.vala 70 | @@ -381,7 +381,7 @@ namespace Frida { 71 | private async uint inject_agent (uint pid, string agent_parameters, Cancellable? cancellable) throws Error, IOError { 72 | uint id; 73 | 74 | - unowned string entrypoint = "frida_agent_main"; 75 | + unowned string entrypoint = "frida_agent_main"; 76 | #if HAVE_EMBEDDED_ASSETS 77 | id = yield fruitjector.inject_library_resource (pid, agent, entrypoint, agent_parameters, cancellable); 78 | #else 79 | diff --git a/src/freebsd/freebsd-host-session.vala b/src/freebsd/freebsd-host-session.vala 80 | index a2204a4e..eac16116 100644 81 | --- a/src/freebsd/freebsd-host-session.vala 82 | +++ b/src/freebsd/freebsd-host-session.vala 83 | @@ -197,7 +197,7 @@ namespace Frida { 84 | 85 | var stream_request = Pipe.open (t.local_address, cancellable); 86 | 87 | - var id = yield binjector.inject_library_resource (pid, agent_desc, "frida_agent_main", 88 | + var id = yield binjector.inject_library_resource (pid, agent_desc, "frida_agent_main", 89 | make_agent_parameters (pid, t.remote_address, options), cancellable); 90 | injectee_by_pid[pid] = id; 91 | 92 | diff --git a/src/linux/linux-host-session.vala b/src/linux/linux-host-session.vala 93 | index 64245792..086d0b96 100644 94 | --- a/src/linux/linux-host-session.vala 95 | +++ b/src/linux/linux-host-session.vala 96 | @@ -427,7 +427,7 @@ namespace Frida { 97 | protected override async Future perform_attach_to (uint pid, HashTable options, 98 | Cancellable? cancellable, out Object? transport) throws Error, IOError { 99 | uint id; 100 | - string entrypoint = "frida_agent_main"; 101 | + string entrypoint = "frida_agent_main"; 102 | string parameters = make_agent_parameters (pid, "", options); 103 | AgentFeatures features = CONTROL_CHANNEL; 104 | var linjector = (Linjector) injector; 105 | diff --git a/src/qnx/qnx-host-session.vala b/src/qnx/qnx-host-session.vala 106 | index 69f2995f..a4e59ab2 100644 107 | --- a/src/qnx/qnx-host-session.vala 108 | +++ b/src/qnx/qnx-host-session.vala 109 | @@ -182,7 +182,7 @@ namespace Frida { 110 | 111 | var stream_request = Pipe.open (t.local_address, cancellable); 112 | 113 | - var id = yield qinjector.inject_library_resource (pid, agent_desc, "frida_agent_main", 114 | + var id = yield qinjector.inject_library_resource (pid, agent_desc, "frida_agent_main", 115 | make_agent_parameters (pid, t.remote_address, options), cancellable); 116 | injectee_by_pid[pid] = id; 117 | 118 | diff --git a/src/windows/windows-host-session.vala b/src/windows/windows-host-session.vala 119 | index 67f1f3ef..518cd256 100644 120 | --- a/src/windows/windows-host-session.vala 121 | +++ b/src/windows/windows-host-session.vala 122 | @@ -274,7 +274,7 @@ namespace Frida { 123 | var stream_request = Pipe.open (t.local_address, cancellable); 124 | 125 | var winjector = injector as Winjector; 126 | - var id = yield winjector.inject_library_resource (pid, agent, "frida_agent_main", 127 | + var id = yield winjector.inject_library_resource (pid, agent, "frida_agent_main", 128 | make_agent_parameters (pid, t.remote_address, options), cancellable); 129 | injectee_by_pid[pid] = id; 130 | 131 | diff --git a/tests/test-agent.vala b/tests/test-agent.vala 132 | index d28e67fd..bbdc29b3 100644 133 | --- a/tests/test-agent.vala 134 | +++ b/tests/test-agent.vala 135 | @@ -452,7 +452,7 @@ Interceptor.attach(Module.getExportByName('libsystem_kernel.dylib', 'open'), () 136 | } 137 | 138 | void * main_func_symbol; 139 | - var main_func_found = module.symbol ("frida_agent_main", out main_func_symbol); 140 | + var main_func_found = module.symbol ("frida_agent_main", out main_func_symbol); 141 | assert_true (main_func_found); 142 | main_impl = (AgentMainFunc) main_func_symbol; 143 | 144 | diff --git a/tests/test-injector.vala b/tests/test-injector.vala 145 | index 03c219e6..a7720c3d 100644 146 | --- a/tests/test-injector.vala 147 | +++ b/tests/test-injector.vala 148 | @@ -258,7 +258,7 @@ namespace Frida.InjectorTest { 149 | var path = Frida.Test.Labrats.path_to_library (name, arch); 150 | assert_true (FileUtils.test (path, FileTest.EXISTS)); 151 | 152 | - yield injector.inject_library_file (process.id, path, "frida_agent_main", data); 153 | + yield injector.inject_library_file (process.id, path, "frida_agent_main", data); 154 | } catch (GLib.Error e) { 155 | printerr ("\nFAIL: %s\n\n", e.message); 156 | assert_not_reached (); 157 | -- 158 | 2.42.0 159 | 160 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0004-Florida-thread_gum_js_loop.patch: -------------------------------------------------------------------------------- 1 | From 951000ce3fddb965ffdf6e3d5e765e7f457683da Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 16:03:47 +0800 4 | Subject: [PATCH 4/9] Florida: thread_gum_js_loop 5 | 6 | --- 7 | src/anti-anti-frida.py | 7 ++++++- 8 | 1 file changed, 6 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/src/anti-anti-frida.py b/src/anti-anti-frida.py 11 | index a203189f..7a3f6474 100644 12 | --- a/src/anti-anti-frida.py 13 | +++ b/src/anti-anti-frida.py 14 | @@ -24,4 +24,9 @@ if __name__ == "__main__": 15 | if "FRIDA" in symbol.name: 16 | symbol.name = symbol.name.replace("FRIDA", random_name) 17 | 18 | - binary.write(input_file) 19 | \ No newline at end of file 20 | + binary.write(input_file) 21 | + 22 | + # gum-js-loop thread 23 | + random_name = "".join(random.sample("abcdefghijklmn", 11)) 24 | + print(f"[*] Patch `gum-js-loop` to `{random_name}`") 25 | + os.system(f"sed -b -i s/gum-js-loop/{random_name}/g {input_file}") 26 | \ No newline at end of file 27 | -- 28 | 2.42.0 29 | 30 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0005-Florida-thread_gmain.patch: -------------------------------------------------------------------------------- 1 | From 3505dbe62e65bdcbd28058d28390da1ac7c87e86 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 16:04:15 +0800 4 | Subject: [PATCH 5/9] Florida: thread_gmain 5 | 6 | --- 7 | src/anti-anti-frida.py | 7 ++++++- 8 | 1 file changed, 6 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/src/anti-anti-frida.py b/src/anti-anti-frida.py 11 | index 7a3f6474..b4b8dca6 100644 12 | --- a/src/anti-anti-frida.py 13 | +++ b/src/anti-anti-frida.py 14 | @@ -29,4 +29,9 @@ if __name__ == "__main__": 15 | # gum-js-loop thread 16 | random_name = "".join(random.sample("abcdefghijklmn", 11)) 17 | print(f"[*] Patch `gum-js-loop` to `{random_name}`") 18 | - os.system(f"sed -b -i s/gum-js-loop/{random_name}/g {input_file}") 19 | \ No newline at end of file 20 | + os.system(f"sed -b -i s/gum-js-loop/{random_name}/g {input_file}") 21 | + 22 | + # gmain thread 23 | + random_name = "".join(random.sample("abcdefghijklmn", 5)) 24 | + print(f"[*] Patch `gmain` to `{random_name}`") 25 | + os.system(f"sed -b -i s/gmain/{random_name}/g {input_file}") 26 | \ No newline at end of file 27 | -- 28 | 2.42.0 29 | 30 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0006-Florida-protocol_unexpected_command.patch: -------------------------------------------------------------------------------- 1 | From e8d464a18de6e97d3e84c4c3cb5c73b807586798 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 16:04:55 +0800 4 | Subject: [PATCH 6/9] Florida: protocol_unexpected_command 5 | 6 | --- 7 | src/droidy/droidy-client.vala | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/droidy/droidy-client.vala b/src/droidy/droidy-client.vala 11 | index ddc56ccc..c3464e77 100644 12 | --- a/src/droidy/droidy-client.vala 13 | +++ b/src/droidy/droidy-client.vala 14 | @@ -1015,7 +1015,7 @@ namespace Frida.Droidy { 15 | case "OPEN": 16 | case "CLSE": 17 | case "WRTE": 18 | - throw new Error.PROTOCOL ("Unexpected command"); 19 | + break; // throw new Error.PROTOCOL ("Unexpected command"); 20 | 21 | default: 22 | var length = parse_length (command_or_length); 23 | -- 24 | 2.42.0 25 | 26 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0007-Florida-update-python-script.patch: -------------------------------------------------------------------------------- 1 | From 19026255ad926b166e7ffb8759e896fd6b5bff94 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Tue, 18 Jul 2023 19:55:59 +0800 4 | Subject: [PATCH 7/9] Florida: update python script 5 | 6 | --- 7 | src/anti-anti-frida.py | 59 +++++++++++++++++++++++++++++------------- 8 | 1 file changed, 41 insertions(+), 18 deletions(-) 9 | 10 | diff --git a/src/anti-anti-frida.py b/src/anti-anti-frida.py 11 | index b4b8dca6..d1ce5f62 100644 12 | --- a/src/anti-anti-frida.py 13 | +++ b/src/anti-anti-frida.py 14 | @@ -2,36 +2,59 @@ import lief 15 | import sys 16 | import random 17 | import os 18 | - 19 | + 20 | +def log_color(msg): 21 | + print(f"\033[1;31;40m{msg}\033[0m") 22 | + 23 | if __name__ == "__main__": 24 | input_file = sys.argv[1] 25 | - print(f"[*] Patch frida-agent: {input_file}") 26 | - random_name = "".join(random.sample("ABCDEFGHIJKLMNO", 5)) 27 | - print(f"[*] Patch `frida` to `{random_name}``") 28 | - 29 | + random_charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" 30 | + log_color(f"[*] Patch frida-agent: {input_file}") 31 | binary = lief.parse(input_file) 32 | - 33 | + 34 | if not binary: 35 | + log_color(f"[*] Not elf, exit") 36 | exit() 37 | + 38 | + random_name = "".join(random.sample(random_charset, 5)) 39 | + log_color(f"[*] Patch `frida` to `{random_name}`") 40 | 41 | for symbol in binary.symbols: 42 | if symbol.name == "frida_agent_main": 43 | symbol.name = "main" 44 | - 45 | + 46 | if "frida" in symbol.name: 47 | symbol.name = symbol.name.replace("frida", random_name) 48 | - 49 | + 50 | if "FRIDA" in symbol.name: 51 | symbol.name = symbol.name.replace("FRIDA", random_name) 52 | - 53 | + 54 | + all_patch_string = ["FridaScriptEngine", "GLib-GIO", "GDBusProxy", "GumScript"] # 字符串特征修改 尽量与源字符一样 55 | + for section in binary.sections: 56 | + if section.name != ".rodata": 57 | + continue 58 | + for patch_str in all_patch_string: 59 | + addr_all = section.search_all(patch_str) # Patch 内存字符串 60 | + for addr in addr_all: 61 | + patch = [ord(n) for n in list(patch_str)[::-1]] 62 | + log_color(f"[*] Patching section name={section.name} offset={hex(section.file_offset + addr)} orig:{patch_str} new:{''.join(list(patch_str)[::-1])}") 63 | + binary.patch_address(section.file_offset + addr, patch) 64 | + 65 | binary.write(input_file) 66 | - 67 | - # gum-js-loop thread 68 | - random_name = "".join(random.sample("abcdefghijklmn", 11)) 69 | - print(f"[*] Patch `gum-js-loop` to `{random_name}`") 70 | + 71 | + # thread_gum_js_loop 72 | + random_name = "".join(random.sample(random_charset, 11)) 73 | + log_color(f"[*] Patch `gum-js-loop` to `{random_name}`") 74 | os.system(f"sed -b -i s/gum-js-loop/{random_name}/g {input_file}") 75 | - 76 | - # gmain thread 77 | - random_name = "".join(random.sample("abcdefghijklmn", 5)) 78 | - print(f"[*] Patch `gmain` to `{random_name}`") 79 | - os.system(f"sed -b -i s/gmain/{random_name}/g {input_file}") 80 | \ No newline at end of file 81 | + 82 | + # thread_gmain 83 | + random_name = "".join(random.sample(random_charset, 5)) 84 | + log_color(f"[*] Patch `gmain` to `{random_name}`") 85 | + os.system(f"sed -b -i s/gmain/{random_name}/g {input_file}") 86 | + 87 | + # thread_gdbus 88 | + random_name = "".join(random.sample(random_charset, 5)) 89 | + log_color(f"[*] Patch `gdbus` to `{random_name}`") 90 | + os.system(f"sed -b -i s/gdbus/{random_name}/g {input_file}") 91 | + 92 | + log_color(f"[*] Patch Finish") 93 | \ No newline at end of file 94 | -- 95 | 2.42.0 96 | 97 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0008-Florida-pool-frida.patch: -------------------------------------------------------------------------------- 1 | From 0f3391327c044f6c2ab0ee3322185904b0afa2c5 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Thu, 20 Jul 2023 10:01:20 +0800 4 | Subject: [PATCH 8/9] Florida: pool-frida 5 | 6 | --- 7 | src/frida-glue.c | 2 ++ 8 | 1 file changed, 2 insertions(+) 9 | 10 | diff --git a/src/frida-glue.c b/src/frida-glue.c 11 | index ee8f0737..43cc8167 100644 12 | --- a/src/frida-glue.c 13 | +++ b/src/frida-glue.c 14 | @@ -40,6 +40,8 @@ frida_init_with_runtime (FridaRuntime rt) 15 | g_io_module_openssl_register (); 16 | #endif 17 | 18 | + g_set_prgname ("ggbond"); 19 | + 20 | if (runtime == FRIDA_RUNTIME_OTHER) 21 | { 22 | main_context = g_main_context_ref (g_main_context_default ()); 23 | -- 24 | 2.42.0 25 | 26 | -------------------------------------------------------------------------------- /strongR-frida/frida-core/0009-Florida-memfd-name-jit-cache.patch: -------------------------------------------------------------------------------- 1 | From 5b1279a54e7fc5b9867332d16d5b30ea16bf6b7a Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Fri, 1 Sep 2023 12:51:06 +0800 4 | Subject: [PATCH 9/9] Florida: memfd-name-jit-cache 5 | 6 | --- 7 | src/linux/frida-helper-backend.vala | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/linux/frida-helper-backend.vala b/src/linux/frida-helper-backend.vala 11 | index 9da2152c..b133bd37 100644 12 | --- a/src/linux/frida-helper-backend.vala 13 | +++ b/src/linux/frida-helper-backend.vala 14 | @@ -3233,7 +3233,7 @@ namespace Frida { 15 | } 16 | 17 | private int memfd_create (string name, uint flags) { 18 | - return Linux.syscall (SysCall.memfd_create, name, flags); 19 | + return Linux.syscall (SysCall.memfd_create, "jit-cache", flags); 20 | } 21 | } 22 | 23 | -- 24 | 2.42.0 25 | 26 | -------------------------------------------------------------------------------- /strongR-frida/frida-gum/0001-Florida-pool-frida.patch: -------------------------------------------------------------------------------- 1 | From 649c04e3fb19596621f347d05c45c8c30d1a0fa7 Mon Sep 17 00:00:00 2001 2 | From: Ylarod 3 | Date: Thu, 20 Jul 2023 10:26:34 +0800 4 | Subject: [PATCH] Florida: pool-frida 5 | 6 | --- 7 | gum/gum.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/gum/gum.c b/gum/gum.c 11 | index f6e6243f..3305f629 100644 12 | --- a/gum/gum.c 13 | +++ b/gum/gum.c 14 | @@ -304,7 +304,7 @@ gum_init_embedded (void) 15 | g_log_set_default_handler (gum_on_log_message, NULL); 16 | gum_do_init (); 17 | 18 | - g_set_prgname ("frida"); 19 | + g_set_prgname ("ggbond"); 20 | 21 | #if defined (HAVE_LINUX) && defined (HAVE_GLIBC) 22 | gum_libdl_prevent_unload (); 23 | -- 24 | 2.34.1 25 | 26 | --------------------------------------------------------------------------------