HyperDbg Debugger
Loading...
Searching...
No Matches
script-engine.h
Go to the documentation of this file.
1
12#pragma once
13
15// Pdb Parser Wrapper (from script-engine) //
17UINT64
18ScriptEngineConvertNameToAddressWrapper(const CHAR * FunctionOrVariableName, PBOOLEAN WasFound);
19
21ScriptEngineLoadFileSymbolWrapper(UINT64 BaseAddress, const CHAR * PdbFileName, const CHAR * CustomModuleName);
22
23VOID
25
28
31
34
36ScriptEngineGetFieldOffsetWrapper(CHAR * TypeName, CHAR * FieldName, UINT32 * FieldOffset);
37
39ScriptEngineGetDataTypeSizeWrapper(CHAR * TypeName, UINT64 * TypeSize);
40
43
45ScriptEngineConvertFileToPdbPathWrapper(const CHAR * LocalFilePath, CHAR * ResultPath, SIZE_T ResultPathSize);
46
49 CHAR * PdbFilePath,
50 CHAR * GuidAndAgeDetails,
51 BOOLEAN Is32BitModule);
52
55 SIZE_T LoadedImageSize,
56 const CHAR * LocalFilePath,
57 CHAR * PdbFilePath,
58 CHAR * GuidAndAgeDetails,
59 BOOLEAN Is32BitModule);
60
63 UINT32 StoredLength,
64 BOOLEAN DownloadIfAvailable,
65 const CHAR * SymbolPath,
66 BOOLEAN IsSilentLoad);
67
70 const CHAR * TypeName,
71 UINT64 Address,
72 BOOLEAN IsStruct,
73 PVOID BufferAddress,
74 const CHAR * AdditionalParameters);
75
76VOID
78
80// Script Engine Wrapper //
82
83VOID
84ScriptEngineWrapperTestParser(const string & Expr);
85
86VOID
87ScriptEngineWrapperTestParserForHwdbg(const string & Expr);
88
90ScriptAutomaticStatementsTestWrapper(const string & Expr, UINT64 ExpectationValue, BOOLEAN ExceptError);
91
93ScriptEngineParseWrapper(CHAR * Expr, BOOLEAN ShowErrorMessageIfAny);
94
95VOID
97
98UINT64
100
101UINT32
103
104UINT32
106
107VOID
109
110UINT64
111ScriptEngineEvalUInt64StyleExpressionWrapper(const string & Expr, PBOOLEAN HasError);
112
114// Script Engine Functions //
116
117UINT64
118ScriptEngineEvalSingleExpression(string Expr, PBOOLEAN HasError);
119
121ScriptEngineExecuteSingleExpression(CHAR * Expr, BOOLEAN ShowErrorMessageIfAny, BOOLEAN IsFormat);
UCHAR BOOLEAN
Definition BasicTypes.h:35
void * PVOID
Definition BasicTypes.h:56
unsigned char BYTE
Definition BasicTypes.h:40
BOOLEAN * PBOOLEAN
Definition BasicTypes.h:36
unsigned int UINT32
Definition BasicTypes.h:54
char CHAR
Definition BasicTypes.h:33
struct _MODULE_SYMBOL_DETAIL * PMODULE_SYMBOL_DETAIL
BOOLEAN ScriptEngineConvertFileToPdbPathWrapper(const CHAR *LocalFilePath, CHAR *ResultPath, SIZE_T ResultPathSize)
ScriptEngineConvertFileToPdbPath wrapper.
Definition script-engine-wrapper.cpp:174
UINT32 ScriptEngineWrapperGetSize(PVOID SymbolBuffer)
wrapper for getting size
Definition script-engine-wrapper.cpp:815
BOOLEAN ScriptEngineShowDataBasedOnSymbolTypesWrapper(const CHAR *TypeName, UINT64 Address, BOOLEAN IsStruct, PVOID BufferAddress, const CHAR *AdditionalParameters)
ScriptEngineShowDataBasedOnSymbolTypes wrapper.
Definition script-engine-wrapper.cpp:213
BOOLEAN ScriptAutomaticStatementsTestWrapper(const string &Expr, UINT64 ExpectationValue, BOOLEAN ExceptError)
massive tests for script engine statements
Definition script-engine-wrapper.cpp:497
BOOLEAN ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetailsWrapper(const CHAR *LocalFilePath, CHAR *PdbFilePath, CHAR *GuidAndAgeDetails, BOOLEAN Is32BitModule)
ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetails wrapper.
Definition script-engine-wrapper.cpp:246
BOOLEAN ScriptEngineSymbolInitLoadWrapper(PMODULE_SYMBOL_DETAIL BufferToStoreDetails, UINT32 StoredLength, BOOLEAN DownloadIfAvailable, const CHAR *SymbolPath, BOOLEAN IsSilentLoad)
ScriptEngineSymbolInitLoad wrapper.
Definition script-engine-wrapper.cpp:192
VOID ScriptEngineWrapperTestParser(const string &Expr)
test parser
Definition script-engine-wrapper.cpp:674
BOOLEAN ScriptEngineGetFieldOffsetWrapper(CHAR *TypeName, CHAR *FieldName, UINT32 *FieldOffset)
ScriptEngineGetFieldOffset wrapper.
Definition script-engine-wrapper.cpp:132
UINT32 ScriptEngineLoadFileSymbolWrapper(UINT64 BaseAddress, const CHAR *PdbFileName, const CHAR *CustomModuleName)
ScriptEngineLoadFileSymbol wrapper.
Definition script-engine-wrapper.cpp:68
UINT32 ScriptEngineUnloadModuleSymbolWrapper(CHAR *ModuleName)
ScriptEngineUnloadModuleSymbol wrapper.
Definition script-engine-wrapper.cpp:104
UINT32 ScriptEngineWrapperGetPointer(PVOID SymbolBuffer)
wrapper for getting pointer
Definition script-engine-wrapper.cpp:829
UINT32 ScriptEngineUnloadAllSymbolsWrapper()
ScriptEngineUnloadAllSymbols wrapper.
Definition script-engine-wrapper.cpp:92
BOOLEAN ScriptEngineExecuteSingleExpression(CHAR *Expr, BOOLEAN ShowErrorMessageIfAny, BOOLEAN IsFormat)
Execute single expression for the kernel debugger and the user-mode debugger.
Definition script-engine.cpp:100
VOID ScriptEngineWrapperTestParserForHwdbg(const string &Expr)
test parser for hwdbg
Definition script-engine-wrapper.cpp:752
UINT64 ScriptEngineEvalUInt64StyleExpressionWrapper(const string &Expr, PBOOLEAN HasError)
In the local debugging (VMI mode) environment, this function computes the expressions.
Definition script-engine-wrapper.cpp:780
PVOID ScriptEngineParseWrapper(CHAR *Expr, BOOLEAN ShowErrorMessageIfAny)
ScriptEngineParse wrapper.
Definition script-engine-wrapper.cpp:298
UINT64 ScriptEngineWrapperGetHead(PVOID SymbolBuffer)
wrapper for getting head
Definition script-engine-wrapper.cpp:803
VOID ScriptEngineSetTextMessageCallbackWrapper(PVOID Handler)
ScriptEngineSetTextMessageCallback wrapper.
Definition script-engine-wrapper.cpp:81
BOOLEAN ScriptEngineConvertLoadedModuleToPdbFileAndGuidAndAgeDetailsWrapper(const BYTE *LoadedImageBytes, SIZE_T LoadedImageSize, const CHAR *LocalFilePath, CHAR *PdbFilePath, CHAR *GuidAndAgeDetails, BOOLEAN Is32BitModule)
ScriptEngineConvertLoadedModuleToPdbFileAndGuidAndAgeDetails wrapper.
Definition script-engine-wrapper.cpp:268
VOID ScriptEngineWrapperRemoveSymbolBuffer(PVOID SymbolBuffer)
wrapper for removing symbol buffer
Definition script-engine-wrapper.cpp:841
VOID ScriptEngineSymbolAbortLoadingWrapper()
SymbolAbortLoading wrapper.
Definition script-engine-wrapper.cpp:229
BOOLEAN ScriptEngineCreateSymbolTableForDisassemblerWrapper(VOID *CallbackFunction)
BOOLEAN ScriptEngineGetDataTypeSizeWrapper(CHAR *TypeName, UINT64 *TypeSize)
ScriptEngineGetDataTypeSize wrapper.
Definition script-engine-wrapper.cpp:147
UINT64 ScriptEngineEvalSingleExpression(string Expr, PBOOLEAN HasError)
Get the value from the evaluation of single expression from local debuggee and remote debuggee.
Definition script-engine.cpp:31
UINT64 ScriptEngineConvertNameToAddressWrapper(const CHAR *FunctionOrVariableName, PBOOLEAN WasFound)
ScriptEngineConvertNameToAddress wrapper.
Definition script-engine-wrapper.cpp:54
VOID PrintSymbolBufferWrapper(PVOID SymbolBuffer)
PrintSymbolBuffer wrapper.
Definition script-engine-wrapper.cpp:332
UINT32 ScriptEngineSearchSymbolForMaskWrapper(const CHAR *SearchMask)
ScriptEngineSearchSymbolForMask wrapper.
Definition script-engine-wrapper.cpp:117