47{
48 PVOID CodeBuffer;
52
53 if (SplitCommand.size() == 1)
54 {
57 return;
58 }
59
60
61
62
64
65
66
67
68 Command.erase(0, SplitCommand.at(0).size());
69
70
71
72
74
75
76
77
78 Command.insert(0, "print(");
79 Command.append(");");
80
82 {
83
84
85
86
87
88
89
91
92 if (CodeBuffer == NULL)
93 {
94
95
96
97 return;
98 }
99
100
101
102
103
104
105
106
107
111
112
113
114
116
117
118
119
121
123 }
124 else
125 {
126
127
128
129 ShowMessages(
"err, you're not connected to any debuggee\n");
130 }
131}
#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
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
VOID CommandPrintHelp()
help of the print command
Definition print.cpp:28
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest)
Definition globals.h:231
UINT32 ScriptEngineWrapperGetSize(PVOID SymbolBuffer)
wrapper for getting size
Definition script-engine-wrapper.cpp:834
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