41{
42 switch (Error)
43 {
45 ShowMessages("err, tag not found (%x)\n",
46 Error);
47 break;
48
50 ShowMessages("err, invalid action type (%x)\n",
51 Error);
52 break;
53
55 ShowMessages("err, action buffer size is zero (%x)\n",
56 Error);
57 break;
58
60 ShowMessages("err, the event type is invalid (%x)\n",
61 Error);
62 break;
63
65 ShowMessages("err, unable to create event (%x)\n",
66 Error);
67 break;
68
70
71 ShowMessages("err, invalid address (%x)\n"
72 "address may be paged-out or unavailable on the page table due to 'demand paging'\n"
73 "please refer to https://docs.hyperdbg.org/tips-and-tricks/considerations/accessing-invalid-address for further information\n",
74 Error);
75 break;
76
78 ShowMessages("err, invalid core id (%x)\n",
79 Error);
80 break;
81
83 ShowMessages("err, exception index exceed first 32 entries (%x)\n",
84 Error);
85 break;
86
88 ShowMessages("err, interrupt index is not valid (%x)\n",
89 Error);
90 break;
91
93 ShowMessages("err, unable to hide or unhide debugger and entr the transparent mode (%x)\n",
94 Error);
95 break;
96
98 ShowMessages("err, debugger already hidden in the transparent mode (%x)\n",
99 Error);
100 break;
101
103 ShowMessages("err, edit memory request has invalid parameters (%x)\n",
104 Error);
105 break;
106
108 ShowMessages("err, edit memory request has invalid address based on "
109 "current process layout, the address might be valid but not "
110 "present in the ram (%x)\n"
111 "address may be paged-out or unavailable on the page table due to 'demand paging'\n"
112 "please refer to https://docs.hyperdbg.org/tips-and-tricks/considerations/accessing-invalid-address for further information\n",
113 Error);
114 break;
115
117 ShowMessages("err, edit memory request has invalid address based on other "
118 "process layout (%x)\n",
119 Error);
120 break;
121
123 ShowMessages("err, modify event with invalid tag (%x)\n",
124 Error);
125 break;
126
128 ShowMessages("err, modify event with invalid type of action (%x)\n",
129 Error);
130 break;
131
133 ShowMessages("err, invalid parameter passed to stepping core. (%x)\n",
134 Error);
135 break;
136
138 ShowMessages(
139 "err, the target thread not found or the thread is disabled (%x)\n",
140 Error);
141 break;
142
144 ShowMessages("err, invalid baud rate (%x)\n",
145 Error);
146 break;
147
149 ShowMessages("err, invalid serial port (%x)\n",
150 Error);
151 break;
152
154 ShowMessages("err, invalid core selected in switching cores (%x)\n",
155 Error);
156 break;
157
159 ShowMessages("err, unable to switch to the new process (%x)\n",
160 Error);
161 break;
162
164 ShowMessages("err, unable to run the script on remote debuggee (%x)\n",
165 Error);
166 break;
167
169 ShowMessages("err, invalid register number (%x)\n",
170 Error);
171 break;
172
174 ShowMessages("err, maximum number of breakpoints are used, you need to "
175 "send an ioctl to re-allocate new pre-allocated buffers or "
176 "configure HyperDbg to pre-allocated more buffers by "
177 "configuring MAXIMUM_BREAKPOINTS_WITHOUT_CONTINUE (%x)\n",
178 Error);
179 break;
180
182 ShowMessages("err, breakpoint already exists on target address, you can "
183 "use 'bl' command to view a list of breakpoints (%x)\n",
184 Error);
185 break;
186
188 ShowMessages("err, breakpoint id is invalid (%x)\n",
189 Error);
190 break;
191
193 ShowMessages("err, breakpoint already disabled (%x)\n",
194 Error);
195 break;
196
198 ShowMessages("err, breakpoint already enabled (%x)\n",
199 Error);
200 break;
201
203 ShowMessages("err, the memory type is invalid (%x)\n",
204 Error);
205 break;
206
208 ShowMessages("err, the process id is invalid, make sure to enter the "
209 "process id in hex format, or if you want to use it in decimal "
210 "format, add '0n' prefix to the number (%x)\n",
211 Error);
212 break;
213
215 ShowMessages("err, the event is not applied (%x)\n",
216 Error);
217 break;
218
220 ShowMessages("err, either the process id or the _EPROCESS is invalid or "
221 "cannot get the details based on the provided parameters (%x)\n",
222 Error);
223 break;
224
226 ShowMessages("err, either the thread id, _ETHREAD, or _EPROCESS is invalid or "
227 "cannot get the details based on the provided parameters (%x)\n",
228 Error);
229 break;
230
232 ShowMessages("err, the maximum breakpoint for a single page is hit, "
233 "you cannot apply more breakpoints in this page (%x)\n"
234 "please refer to https://docs.hyperdbg.org/tips-and-tricks/misc/customize-build/number-of-ept-hooks-in-one-page"
235 " for further information\n",
236 Error);
237 break;
238
240 ShowMessages("err, the pre-allocated buffer is empty, usually this buffer will be "
241 "filled at the next IOCTL when the debugger is continued (%x)\n"
242 "please visit the documentation for the 'prealloc' command or use "
243 "'.help prealloc' to to reserve more pre-allocated pools\n",
244 Error);
245 break;
246
248 ShowMessages("err, could not convert 2MB large page to 4KB pages "
249 "(maybe pre-allocated buffers are empty?) (%x)\n",
250 Error);
251 break;
252
254 ShowMessages("err, failed to get the PML1 entry of the target address (%x)\n",
255 Error);
256 break;
257
259 ShowMessages("err, the page modification is not applied, make sure that you don't "
260 "put multiple EPT Hooks or Monitors on a single page (%x)\n",
261 Error);
262 break;
263
265 ShowMessages("err, could not build the EPT hook (%x)\n",
266 Error);
267 break;
268
270 ShowMessages("err, could not find the allocation type (%x)\n",
271 Error);
272 break;
273
275 ShowMessages("err, invalid index specified for test query command (%x)\n",
276 Error);
277 break;
278
280 ShowMessages("err, unable to attach to the target process (%x)\n",
281 Error);
282 break;
283
285 ShowMessages("err, unable to remove hooks as the entrypoint of user-mode "
286 "process is not reached yet (%x)\n",
287 Error);
288 break;
289
291 ShowMessages("err, unable to remove hooks (%x)\n",
292 Error);
293 break;
294
296 ShowMessages("err, the routines for getting the PEB is not correctly "
297 "initialized (%x)\n",
298 Error);
299 break;
300
302 ShowMessages("err, unable to detect whether the process was 32-bit "
303 "or 64-bit (%x)\n",
304 Error);
305 break;
306
308 ShowMessages("err, unable to kill the process (%x)\n",
309 Error);
310 break;
311
313 ShowMessages("err, invalid thread debugging token (%x)\n",
314 Error);
315 break;
316
318 ShowMessages("err, unable to pause the threads of the process (%x)\n",
319 Error);
320 break;
321
323 ShowMessages("err, the user debugger is already attached to this "
324 "process, please use the '.switch' command to switch "
325 "to this process (%x)\n",
326 Error);
327 break;
328
330 ShowMessages("err, the user debugger is not already attached to "
331 "the process (%x)\n",
332 Error);
333 break;
334
336 ShowMessages("err, the user debugger is not able to detach from "
337 "this process as there are paused threads in the "
338 "target process, please make sure to remove all "
339 "the events and continue the target process, then "
340 "perform the detach again (%x)\n",
341 Error);
342 break;
343
345 ShowMessages("err, unable to switch to the process id or thread id "
346 "as the target process id or thread id is not found in "
347 "the attached threads list, please view the list of "
348 "processes and threads by using the '.switch list' command (%x)\n",
349 Error);
350 break;
351
353 ShowMessages("err, unable to switch to the process as the process doesn't "
354 "contain an active intercepted thread (%x)\n",
355 Error);
356 break;
357
359 ShowMessages("err, unable to get user-mode modules of the process (%x)\n",
360 Error);
361 break;
362
364 ShowMessages("err, unable to get the callstack (%x)\n",
365 Error);
366 break;
367
369 ShowMessages("err, unable to query count of processes or threads (%x)\n",
370 Error);
371 break;
372
374 ShowMessages("err, using short-circuiting event with post events is not possible (%x)\n",
375 Error);
376 break;
377
379 ShowMessages("err, unknown test query is received to the debugger (%x)\n",
380 Error);
381 break;
382
384 ShowMessages("err, invalid process or memory address (%x)\n",
385 Error);
386 break;
387
389 ShowMessages("err, unable to add the current thread/process to the list of trap flags. "
390 "Are you debugging multiple threads or stepping through different processes "
391 "simultaneously? (%x)\n",
392 Error);
393 break;
394
396 ShowMessages("err, process does not exists (already terminated?) (%x)\n",
397 Error);
398 break;
399
401 ShowMessages("err, the specified execution mode is invalid (%x)\n",
402 Error);
403 break;
404
406 ShowMessages("err, you cannot specify process id while the debugger is paused in the debugger mode. "
407 "You can use the '.process' or the '.thread' command to switch to the target process's "
408 "memory layout (%x)\n",
409 Error);
410 break;
411
413 ShowMessages("err, the requested buffer for storing event and conditions is larger than the pre-allocated "
414 "buffer size (%x)\nfor more information on how to resolve this issue, "
415 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
416 Error);
417 break;
418
420 ShowMessages("err, not enough pre-allocated buffer exists for storing the event. You can use the 'prealloc' "
421 "command to fix this issue by pre-allocating more buffers (%x)\nfor more information "
422 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
423 Error);
424 break;
425
427 ShowMessages("err, the requested event is considered as a \"big instant event\" and right now, there is no "
428 "pre-allocated buffer for storing it. You can use the 'prealloc' command to fix this issue by "
429 "pre-allocating big instant event buffers (%x)\nfor more information "
430 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
431 Error);
432 break;
433
435 ShowMessages("err, unable to allocate buffer for the target action (%x)\n",
436 Error);
437 break;
438
440 ShowMessages("err, not enough pre-allocated buffer exists for storing the event's action. You can use the 'prealloc' "
441 "command to fix this issue by pre-allocating more buffers (%x)\nfor more information "
442 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
443 Error);
444 break;
445
447 ShowMessages("err, the requested action is considered as a \"big instant event (action)\" and right now, there is no "
448 "pre-allocated buffer for storing it. You can use the 'prealloc' command to fix this issue by "
449 "pre-allocating big instant event's action buffers (%x)\nfor more information "
450 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
451 Error);
452 break;
453
455 ShowMessages("err, the requested buffer for storing action is larger than the pre-allocated "
456 "buffer size (%x)\nfor more information on how to resolve this issue, "
457 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
458 Error);
459 break;
460
462 ShowMessages("err, the requested optional buffer is bigger than the debuggers send/receive stack, "
463 "please select a smaller requested buffer for the target event (%x)\n",
464 Error);
465 break;
466
468 ShowMessages("err, by default HyperDbg won't allocate requested safe buffers for instant events in "
469 "the debugger mode. You can use the 'prealloc' command to allocate (regular) requested safe "
470 "buffers before running this command (%x)\nfor more information "
471 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
472 Error);
473 break;
474
476 ShowMessages("err, the requested safe buffer is bigger than regular buffers. You can use the 'prealloc' "
477 "command to allocate (big) requested safe buffers before running this command (%x)\n"
478 "for more information "
479 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
480 Error);
481 break;
482
484 ShowMessages("err, the requested buffer for storing safe buffers of the action is larger than the pre-allocated "
485 "buffer size (%x)\nfor more information on how to resolve this issue, "
486 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
487 Error);
488 break;
489
491 ShowMessages("err, unable to allocate buffer for the target requested safe buffer (%x)\n",
492 Error);
493 break;
494
496 ShowMessages("err, invalid type is specified for preactivation (%x)\n",
497 Error);
498 break;
499
501 ShowMessages("err, for performance reasons, the '!mode' event command cannot be directly initialized in the Debugger Mode. "
502 "You can use the 'preactivate mode' command to preactivate this mechanism after that, "
503 "you can use the '!mode' event (%x)\n",
504 Error);
505 break;
506
508 ShowMessages("err, the event(s) that you've requested are disabled, yet HyperDbg cannot remove (clear) them in "
509 "the subsequent run due to the user-mode priority buffers being at full capacity. "
510 "This typically occurs when you attempt to clear numerous events without resuming the debuggee. "
511 "Since these unserviced events remain in the queue, HyperDbg is unable to clear them. "
512 "To address this issue, you can resume the debuggee, allowing all queued events to be cleared (usually 2 to 10 seconds). "
513 "Afterward, you can pause the debuggee again and request the removal of new events (%x)\n"
514 "for more information on how to resolve this issue "
515 "please visit: https://docs.hyperdbg.org/tips-and-tricks/misc/instant-events\n",
516 Error);
517 break;
518
520 ShowMessages("err, the event cannot be applied since not all cores are locked! "
521 "If you are using the instant-event mechanism or switching between cores, this will likely halt the system. "
522 "This may be caused by a race condition, but continuing and halting the debugger might resolve it. "
523 "If the problem persists, please open an issue and provide steps to reproduce it (%x)\n",
524 Error);
525 break;
526
528 ShowMessages("err, target core is not locked! "
529 "This may be caused by a race condition, continuing and halting the debugger might resolve it. "
530 "If the problem persists, please open an issue and provide steps to reproduce it (%x)\n",
531 Error);
532 break;
533
535 ShowMessages("err, invalid physical address (%x)\n",
536 Error);
537 break;
538
540 ShowMessages("err, could not perform APIC actions (%x)\n",
541 Error);
542 break;
543
545 ShowMessages("err, debugger was not in the hidden transparent-mode (%x)\n",
546 Error);
547 break;
548
550 ShowMessages("err, the user debugger cannot be initialized (%x)\n",
551 Error);
552 break;
553
555 ShowMessages("err, putting EPT hooks on physical address above 512 GB is not supported (%x)\n",
556 Error);
557 break;
558
560 ShowMessages("err, invalid SMI operation parameter(s) are specified (%x)\n",
561 Error);
562 break;
563
565 ShowMessages("err, unable to trigger SMI, are you running on a nested-virtualization environment? (%x)\n",
566 Error);
567 break;
568
570 ShowMessages("err, unable to apply command to the target thread (%x)\n",
571 Error);
572 break;
573
575 ShowMessages("err, the hypertrace module is not loaded and initialized, "
576 "use the 'load trace' command to load the hypertrace module (%x)\n",
577 Error);
578 break;
579
581 ShowMessages("err, invalid hypertrace operation type is specified (%x)\n",
582 Error);
583 break;
584
586 ShowMessages("err, LBR is already enabled, you can disable it using the '!lbr' command (%x)\n",
587 Error);
588 break;
589
591 ShowMessages("err, LBR is already disabled, you can enable it using the '!lbr' command (%x)\n",
592 Error);
593 break;
594
596 ShowMessages("err, LBR is not supported on this processor, this is likely caused by running inside "
597 "a nested virtualization (VM) environment that masks and removes LBR CPU flags (%x)\n",
598 Error);
599 break;
600
602 ShowMessages("err, LBR is not supported on VMCS (%x)\n",
603 Error);
604 break;
605
607 ShowMessages("err, PT is already enabled (%x)\n",
608 Error);
609 break;
610
612 ShowMessages("err, PT is already disabled (%x)\n",
613 Error);
614 break;
615
617 ShowMessages("err, PT is not supported on this processor (%x)\n",
618 Error);
619 break;
620
622 ShowMessages("err, hypertrace is already loaded, please unload hypertrace module using the "
623 "'unload' command and then load the 'VMM' module. Then you can load hypertrace "
624 "after loading the VMM as it is because hypertrace behaves differently to sync "
625 "with VMM modules; it needs to have this notion that it is running within the "
626 "hypervisor, so that is why it needs to be initialized again if the VMM module "
627 "is loaded (%x)\n",
628 Error);
629 break;
630
632 ShowMessages("err, the VMM module cannot be initialized because the debugger is not loaded (%x)\n",
633 Error);
634 break;
635
637 ShowMessages("err, cannot initialize the debugger (%x)\n",
638 Error);
639 break;
640
641 default:
642 ShowMessages("err, error not found (%x)\n",
643 Error);
645 break;
646 }
647
649}