Script engine keywords implementations.
More...
#include "pch.h"
Script engine keywords implementations.
- Author
- M.H. Gholamrezaei (mh@hy.nosp@m.perd.nosp@m.bg.or.nosp@m.g)
-
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
- Version
- 0.2
- Date
- 2022-06-29
- Copyright
- This project is released under the GNU Public License v3.
◆ ScriptEngineKeywordDb()
Implementation of db keyword.
- Parameters
-
- Returns
- BYTE
130{
132
133#ifdef SCRIPT_ENGINE_KERNEL_MODE
134
136 {
138
140 }
141
142#endif
143
144#ifdef SCRIPT_ENGINE_USER_MODE
146#endif
147
148#ifdef SCRIPT_ENGINE_KERNEL_MODE
150#endif
151
152 return Result;
153}
BOOLEAN CheckAccessValidityAndSafety(UINT64 TargetAddress, UINT32 Size)
Check the safety to access the memory.
Definition AddressCheck.c:156
#define NULL_ZERO
Definition BasicTypes.h:51
unsigned char BYTE
Definition BasicTypes.h:24
#define TRUE
Definition BasicTypes.h:55
unsigned __int64 UINT64
Definition BasicTypes.h:21
UINT64 Address
Definition HyperDbgScriptImports.h:67
_Use_decl_annotations_ BOOLEAN MemoryMapperReadMemorySafeOnTargetProcess(UINT64 VaAddressToRead, PVOID BufferToSaveMemory, SIZE_T SizeToRead)
Read memory safely by mapping the buffer on the target process memory (It's a wrapper)
Definition MemoryMapper.c:1120
◆ ScriptEngineKeywordDd()
Implementation of dd keyword.
- Parameters
-
- Returns
- DWORD
164{
166
167#ifdef SCRIPT_ENGINE_KERNEL_MODE
168
170 {
172
174 }
175
176#endif
177
178#ifdef SCRIPT_ENGINE_USER_MODE
180#endif
181
182#ifdef SCRIPT_ENGINE_KERNEL_MODE
184#endif
185
186 return Result;
187}
unsigned long DWORD
Definition BasicTypes.h:22
◆ ScriptEngineKeywordDq()
Implementation of dq keyword.
- Parameters
-
- Returns
- QWORD
232{
234
235#ifdef SCRIPT_ENGINE_KERNEL_MODE
236
238 {
240
242 }
243
244#endif
245
246#ifdef SCRIPT_ENGINE_USER_MODE
248#endif
249
250#ifdef SCRIPT_ENGINE_KERNEL_MODE
252#endif
253
254 return Result;
255}
unsigned long long QWORD
Definition BasicTypes.h:20
NULL()
Definition test-case-generator.py:530
◆ ScriptEngineKeywordDw()
Implementation of dw keyword.
- Parameters
-
- Returns
- WORD
198{
200
201#ifdef SCRIPT_ENGINE_KERNEL_MODE
202
204 {
206
208 }
209
210#endif
211
212#ifdef SCRIPT_ENGINE_USER_MODE
214#endif
215
216#ifdef SCRIPT_ENGINE_KERNEL_MODE
218#endif
219
220 return Result;
221}
unsigned short WORD
Definition BasicTypes.h:25
◆ ScriptEngineKeywordHi()
Implementation of hi keyword.
- Parameters
-
- Returns
- WORD
62{
64
65#ifdef SCRIPT_ENGINE_KERNEL_MODE
66
68 {
70
72 }
73
74#endif
75
76#ifdef SCRIPT_ENGINE_USER_MODE
78#endif
79
80#ifdef SCRIPT_ENGINE_KERNEL_MODE
82#endif
83
85}
#define NULL64_ZERO
Definition BasicTypes.h:52
#define HIWORD(l)
Definition Constants.h:555
◆ ScriptEngineKeywordLow()
Implementation of low keyword.
- Parameters
-
- Returns
- WORD
96{
98
99#ifdef SCRIPT_ENGINE_KERNEL_MODE
100
102 {
104
106 }
107
108#endif
109
110#ifdef SCRIPT_ENGINE_USER_MODE
112#endif
113
114#ifdef SCRIPT_ENGINE_KERNEL_MODE
116#endif
117
119}
#define LOWORD(l)
Definition Constants.h:551
◆ ScriptEngineKeywordPoi()
Implementation of poi keyword.
- Parameters
-
- Returns
- UINT64
28{
30
31#ifdef SCRIPT_ENGINE_KERNEL_MODE
32
34 {
36
38 }
39
40#endif
41
42#ifdef SCRIPT_ENGINE_USER_MODE
44#endif
45
46#ifdef SCRIPT_ENGINE_KERNEL_MODE
48#endif
49
50 return Result;
51}