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
ab0c1683
Commit
ab0c1683
authored
Nov 06, 2019
by
swift_gan
Committed by
ganyao114
Nov 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert code
parent
7a2d02e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
PendingHookHandler.java
.../src/main/java/com/swift/sandhook/PendingHookHandler.java
+1
-10
SandHookConfig.java
hooklib/src/main/java/com/swift/sandhook/SandHookConfig.java
+0
-2
No files found.
hooklib/src/main/java/com/swift/sandhook/PendingHookHandler.java
View file @
ab0c1683
...
...
@@ -17,15 +17,10 @@ public class PendingHookHandler {
static
{
//init native hook
if
(!
SandHookConfig
.
edxpEnv
)
{
canUsePendingHook
=
SandHook
.
initForPendingHook
();
}
canUsePendingHook
=
SandHook
.
initForPendingHook
();
}
public
static
boolean
canWork
()
{
if
(
SandHookConfig
.
edxpEnv
)
{
return
true
;
}
return
canUsePendingHook
&&
SandHook
.
canGetObject
()
&&
!
SandHookConfig
.
DEBUG
;
}
...
...
@@ -42,10 +37,6 @@ public class PendingHookHandler {
if
(
clazz_ptr
==
0
)
return
;
Class
clazz
=
(
Class
)
SandHook
.
getObject
(
clazz_ptr
);
onClassInit
(
clazz
);
}
public
static
void
onClassInit
(
Class
clazz
)
{
if
(
clazz
==
null
)
return
;
Vector
<
HookWrapper
.
HookEntity
>
entities
=
pendingHooks
.
get
(
clazz
);
...
...
hooklib/src/main/java/com/swift/sandhook/SandHookConfig.java
View file @
ab0c1683
...
...
@@ -15,8 +15,6 @@ public class SandHookConfig {
public
volatile
static
ClassLoader
initClassLoader
;
public
volatile
static
int
curUser
=
0
;
public
volatile
static
boolean
delayHook
=
true
;
//is for edxposed?
public
volatile
static
boolean
edxpEnv
=
false
;
public
volatile
static
String
libSandHookPath
;
public
volatile
static
LibLoader
libLoader
=
new
LibLoader
()
{
...
...
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