Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SandHook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
SandHook
Commits
a94258bc
Commit
a94258bc
authored
Jan 24, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ip register
parent
4cbbcb53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
arm64.S
hooklib/src/main/cpp/trampoline/arch/arm64.S
+2
-2
SandHook.java
hooklib/src/main/java/com/swift/sandhook/SandHook.java
+1
-1
No files found.
hooklib/src/main/cpp/trampoline/arch/arm64.S
View file @
a94258bc
...
@@ -64,8 +64,8 @@ x22 - x28 貌似可以使用
...
@@ -64,8 +64,8 @@ x22 - x28 貌似可以使用
#if defined(__aarch64__)
#if defined(__aarch64__)
#define Reg0 x
23
#define Reg0 x
16
#define Reg1 x
24
#define Reg1 x
17
#define RegMethod x0
#define RegMethod x0
FUNCTION_START(REPLACEMENT_HOOK_TRAMPOLINE)
FUNCTION_START(REPLACEMENT_HOOK_TRAMPOLINE)
...
...
hooklib/src/main/java/com/swift/sandhook/SandHook.java
View file @
a94258bc
...
@@ -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
(
n
ull
);
((
Method
)
method
).
invoke
(
n
ew
Object
()
);
}
}
}
else
if
(
method
instanceof
Constructor
){
}
else
if
(
method
instanceof
Constructor
){
((
Constructor
)
method
).
setAccessible
(
true
);
((
Constructor
)
method
).
setAccessible
(
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment