Files
Florida/patches/frida-core/0006-Florida-thread_gmain.patch

30 lines
1.0 KiB
Diff
Raw Normal View History

2023-07-18 18:41:30 +08:00
From 1c74790768367061ec61ce7b821ae855f2f35c04 Mon Sep 17 00:00:00 2001
2023-07-18 16:29:24 +08:00
From: Ylarod <me@ylarod.cn>
Date: Tue, 18 Jul 2023 16:04:15 +0800
Subject: [PATCH 6/7] Florida: thread_gmain
---
src/anti-anti-frida.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/anti-anti-frida.py b/src/anti-anti-frida.py
index 4317e802..f040406b 100644
--- a/src/anti-anti-frida.py
+++ b/src/anti-anti-frida.py
@@ -29,4 +29,9 @@ if __name__ == "__main__":
# gum-js-loop thread
random_name = "".join(random.sample("abcdefghijklmn", 11))
print(f"[*] Patch `gum-js-loop` to `{random_name}`")
- os.system(f"sed -b -i s/gum-js-loop/{random_name}/g {input_file}")
\ No newline at end of file
+ os.system(f"sed -b -i s/gum-js-loop/{random_name}/g {input_file}")
+
+ # gmain thread
+ random_name = "".join(random.sample("abcdefghijklmn", 5))
+ print(f"[*] Patch `gmain` to `{random_name}`")
+ os.system(f"sed -b -i s/gmain/{random_name}/g {input_file}")
\ No newline at end of file
--
2.34.1