52{
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
172 return;
173
174 */
175
182
183
184
185
186 for (auto Section : SplitCommand)
187 {
188 if (!Section.compare("!rev") && IgnoreFirstCommand)
189 {
190 IgnoreFirstCommand =
FALSE;
191 continue;
192 }
193 else if (!Section.compare("pid") && !SetPid)
194 {
196 }
197 else if (SetPid)
198 {
200 {
201
202
203
205 Section.c_str());
207 return;
208 }
210 }
211 else if (!Section.compare("pattern"))
212 {
214 }
215 else if (!Section.compare("reconstruct"))
216 {
218 }
219 else
220 {
221
222
223
225 Section.c_str());
227 return;
228 }
229 }
230
231 if (SetPid)
232 {
233 ShowMessages(
"err, please enter a valid process id in hex format, "
234 "or if you want to use it in decimal format, add '0n' "
235 "prefix to the number\n");
236 return;
237 }
238
240
241
242
243
244
245
247}
UCHAR BOOLEAN
Definition BasicTypes.h:39
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned int UINT32
Definition BasicTypes.h:48
@ REVERSING_MACHINE_RECONSTRUCT_MEMORY_TYPE_PATTERN
Definition RequestStructures.h:104
@ REVERSING_MACHINE_RECONSTRUCT_MEMORY_TYPE_UNKNOWN
Definition RequestStructures.h:102
@ REVERSING_MACHINE_RECONSTRUCT_MEMORY_TYPE_RECONSTRUCT
Definition RequestStructures.h:103
enum _REVERSING_MACHINE_RECONSTRUCT_MEMORY_TYPE REVERSING_MACHINE_RECONSTRUCT_MEMORY_TYPE
different types of reconstruct requests
@ REVERSING_MACHINE_RECONSTRUCT_MEMORY_MODE_UNKNOWN
Definition RequestStructures.h:91
enum _REVERSING_MACHINE_RECONSTRUCT_MEMORY_MODE REVERSING_MACHINE_RECONSTRUCT_MEMORY_MODE
different modes of reconstruct requests
BOOLEAN ConvertStringToUInt32(string TextToConvert, PUINT32 Result)
check and convert string to a 32 bit unsigned it and also check for special notations like 0x etc.
Definition common.cpp:347
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
NULL()
Definition test-case-generator.py:530
BOOLEAN RevRequestService(REVERSING_MACHINE_RECONSTRUCT_MEMORY_REQUEST *RevRequest)
Request service from the reversing machine.
Definition rev-ctrl.cpp:23
VOID CommandRevHelp()
help of the !rev command
Definition rev.cpp:28
requests for !rev command
Definition RequestStructures.h:115
UINT32 ProcessId
Definition RequestStructures.h:116