Files
Florida/patches/frida-core-hluwa/0007-strongR-frida-thread_gmain.patch
2023-07-18 16:29:24 +08:00

27 lines
872 B
Diff

From 2d63299647f698b0c8d5c165c08edf1edf57b9dc Mon Sep 17 00:00:00 2001
From: hluwa <hluwa888@gmail.com>
Date: Mon, 16 Aug 2021 10:55:11 +0800
Subject: [PATCH 7/8] strongR-frida: thread_gmain
---
src/anti-anti-frida.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/anti-anti-frida.py b/src/anti-anti-frida.py
index b6a8e1aa..bd67c606 100644
--- a/src/anti-anti-frida.py
+++ b/src/anti-anti-frida.py
@@ -30,3 +30,9 @@ if __name__ == "__main__":
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}")
+
+
+ # 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}")
--
2.30.2