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
69ada1b7
Commit
69ada1b7
authored
Feb 11, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add aarch64 inst check
parent
82331db5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
inst.h
hooklib/src/main/cpp/includes/inst.h
+6
-0
insts_arm64.cpp
hooklib/src/main/cpp/inst/insts_arm64.cpp
+6
-0
No files found.
hooklib/src/main/cpp/includes/inst.h
View file @
69ada1b7
...
...
@@ -85,6 +85,12 @@ namespace SandHook {
};
enum
class
InstType_Arm64
{
CBZ_CBNZ
=
0
,
B_COND
,
TBZ_TBNZ
,
B_BL
,
LDR_LIT
,
ADR_ADRP
,
PC_NO_RELATED
};
...
...
hooklib/src/main/cpp/inst/insts_arm64.cpp
View file @
69ada1b7
...
...
@@ -36,6 +36,12 @@ namespace SandHook {
}
InstType_Arm64
initType
()
{
CASE
(
code
.
code
,
0x7e000000
,
0x34000000
,
InstType_Arm64
::
CBZ_CBNZ
);
CASE
(
code
.
code
,
0xff000010
,
0x54000000
,
InstType_Arm64
::
B_COND
);
CASE
(
code
.
code
,
0x7e000000
,
0x36000000
,
InstType_Arm64
::
TBZ_TBNZ
);
CASE
(
code
.
code
,
0x7c000000
,
0x14000000
,
InstType_Arm64
::
B_BL
);
CASE
(
code
.
code
,
0x3b000000
,
0x18000000
,
InstType_Arm64
::
LDR_LIT
);
CASE
(
code
.
code
,
0x1f000000
,
0x10000000
,
InstType_Arm64
::
ADR_ADRP
);
return
InstType_Arm64
::
PC_NO_RELATED
;
}
...
...
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