From 19f31f08c9266b0f7c76eb78376399b7c840df43 Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Sat, 9 Mar 2024 18:58:59 +0100 Subject: [PATCH] Inject into init --- patch-main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch-main.py b/patch-main.py index 15a56ce..54c01ec 100755 --- a/patch-main.py +++ b/patch-main.py @@ -28,7 +28,7 @@ def patch_class(path: str) -> None: with open(path, "w") as file: matched = False for line in lines: - if ".method static constructor ()V" in line: + if ".method public constructor ()V" in line: matched = True if matched and "return-void" in line: file.write("const-string v0, \"frida-gadget\"\n")