49{
50 if (SplitCommand.size() != 2 && SplitCommand.size() != 3)
51 {
54 return;
55 }
56
57
58
59
60 if ((SplitCommand.size() == 2 && !SplitCommand.at(1).compare("vmm")) || (SplitCommand.size() == 3 && !SplitCommand.at(2).compare("vmm") && !SplitCommand.at(1).compare("remove")))
61 {
63 {
64 ShowMessages(
"you're not connected to any instance of HyperDbg, did you "
65 "use '.connect'? \n");
66 return;
67 }
68
69
70
71
73 {
74 ShowMessages(
"you're connected to a an instance of HyperDbg, please use "
75 "'.debug close' command\n");
76 return;
77 }
78
80 {
82 }
83 else
84 {
86 }
87
88
89
90
91 if (!SplitCommand.at(1).compare("remove"))
92 {
93
94
95
97 {
99 return;
100 }
101
102
103
104
106 {
108 return;
109 }
110
112 }
113 }
114 else
115 {
116
117
118
120 }
121}
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
INT HyperDbgUnloadVmm()
Unload VMM driver.
Definition libhyperdbg.cpp:693
INT HyperDbgUninstallVmmDriver()
Remove the VMM driver.
Definition libhyperdbg.cpp:604
INT HyperDbgStopVmmDriver()
Stop VMM driver.
Definition libhyperdbg.cpp:570
BOOLEAN g_IsSerialConnectedToRemoteDebugger
Shows if the debugger was connected to remote debugger (A remote host)
Definition globals.h:238
VOID CommandUnloadHelp()
help of the unload command
Definition unload.cpp:28
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest)
Definition globals.h:231
BOOLEAN g_IsConnectedToHyperDbgLocally
Shows whether the user is allowed to use 'load' command to load modules locally in VMI (virtual machi...
Definition globals.h:67
BOOLEAN g_IsDebuggerModulesLoaded
this variable is used to indicate that modules are loaded so we make sure to later use a trace of loa...
Definition globals.h:356