197{
198 PVOID CodeBuffer;
202
203 if (SplitCommand.size() == 1)
204 {
207 return;
208 }
209
210
211
212
214
215
216
217
218 Command.erase(0, SplitCommand.at(0).size());
219
220
221
222
224
225
226
227
228 if (!Command.compare("test"))
229 {
230
231
232
234 {
235 ShowMessages(
"err, testing script engine test-cases was not successful\n");
236 }
237 else
238 {
239 ShowMessages(
"testing script engine test-cases was successful\n");
240 }
241
242 return;
243 }
244
246 {
247
248
249
250
251
252
253
255
256 if (CodeBuffer == NULL)
257 {
258
259
260
261 return;
262 }
263
264
265
266
267
268
269
270
271
275
276
277
278
280
281
282
283
285 }
286 else
287 {
288
289
290
291 ShowMessages(
"this command should not be used while you're in VMI-Mode or not in debugger-mode, "
292 "the results that you see is a simulated result for TESTING script-engine "
293 "and is not based on the status of your system. You can use this command, "
294 "ONLY in debugger-mode\n\n");
295
296 ShowMessages(
"test expression : %s \n", Command.c_str());
298 }
299}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
UINT64 BOOLEAN PVOID BufferAddress
Definition HyperDbgScriptImports.h:67
void Trim(std::string &s)
trim from both ends and start of a string (in place)
Definition common.cpp:594
VOID CommandEvalHelp()
help of the ? command
Definition eval.cpp:27
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest)
Definition globals.h:231
BOOLEAN CommandEvalCheckTestcase()
Check test-cases for script-engine.
Definition eval.cpp:44
BOOLEAN KdSendScriptPacketToDebuggee(UINT64 BufferAddress, UINT32 BufferLength, UINT32 Pointer, BOOLEAN IsFormat)
Sends a script packet to the debuggee.
Definition kd.cpp:1056
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
UINT32 ScriptEngineWrapperGetSize(PVOID SymbolBuffer)
wrapper for getting size
Definition script-engine-wrapper.cpp:834
VOID ScriptEngineWrapperTestParser(const string &Expr)
test parser
Definition script-engine-wrapper.cpp:719
UINT32 ScriptEngineWrapperGetPointer(PVOID SymbolBuffer)
wrapper for getting pointer
Definition script-engine-wrapper.cpp:848
PVOID ScriptEngineParseWrapper(char *Expr, BOOLEAN ShowErrorMessageIfAny)
ScriptEngineParse wrapper.
Definition script-engine-wrapper.cpp:267
UINT64 ScriptEngineWrapperGetHead(PVOID SymbolBuffer)
wrapper for getting head
Definition script-engine-wrapper.cpp:822
VOID ScriptEngineWrapperRemoveSymbolBuffer(PVOID SymbolBuffer)
wrapper for removing symbol buffer
Definition script-engine-wrapper.cpp:860