Inject into init
This commit is contained in:
parent
0550739418
commit
19f31f08c9
1 changed files with 1 additions and 1 deletions
|
@ -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 <clinit>()V" in line:
|
||||
if ".method public constructor <init>()V" in line:
|
||||
matched = True
|
||||
if matched and "return-void" in line:
|
||||
file.write("const-string v0, \"frida-gadget\"\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue