Files
Florida/patches/frida-core/0006-Florida-thread_gmain.patch
2023-07-20 10:02:58 +08:00

30 lines
1.0 KiB
Diff

From 93a07e8014d3c4971239ad6831aa5d526042a106 Mon Sep 17 00:00:00 2001
From: Ylarod <me@ylarod.cn>
Date: Tue, 18 Jul 2023 16:04:15 +0800
Subject: [PATCH 6/9] 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 7a3f6474..b4b8dca6 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