Commit a94258bc authored by swift_gan's avatar swift_gan

fix ip register

parent 4cbbcb53
...@@ -64,8 +64,8 @@ x22 - x28 貌似可以使用 ...@@ -64,8 +64,8 @@ x22 - x28 貌似可以使用
#if defined(__aarch64__) #if defined(__aarch64__)
#define Reg0 x23 #define Reg0 x16
#define Reg1 x24 #define Reg1 x17
#define RegMethod x0 #define RegMethod x0
FUNCTION_START(REPLACEMENT_HOOK_TRAMPOLINE) FUNCTION_START(REPLACEMENT_HOOK_TRAMPOLINE)
......
...@@ -71,7 +71,7 @@ public class SandHook { ...@@ -71,7 +71,7 @@ public class SandHook {
if (method instanceof Method) { if (method instanceof Method) {
if (Modifier.isStatic(method.getModifiers())) { if (Modifier.isStatic(method.getModifiers())) {
((Method) method).setAccessible(true); ((Method) method).setAccessible(true);
((Method) method).invoke(null); ((Method) method).invoke(new Object());
} }
} else if (method instanceof Constructor){ } else if (method instanceof Constructor){
((Constructor)method).setAccessible(true); ((Constructor)method).setAccessible(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment