46{
47 if (CommandTokens.size() != 1)
48 {
49 ShowMessages("incorrect use of the '%s'\n\n",
52 return;
53 }
54
56 {
57 ShowMessages("you're not connected to any instance of HyperDbg, did you "
58 "use '.connect'? \n");
59 return;
60 }
61
62
63
64
65
67 {
68 ShowMessages("you cannot disconnect in local debugging while the "
69 "driver is still loaded. please use 'unload' command before "
70 "disconnecting from the current instance of debugger\n");
71 return;
72 }
73
74
75
76
78
79
80
81
83 {
84
85
86
87
92
94
96 }
97
98 ShowMessages("disconnected successfully\n");
99}
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
HANDLE g_RemoteDebuggeeListeningThread
In debugger (not debuggee), we save the ip of server debuggee in this variable to use it later e....
Definition globals.h:146
VOID CommandDisconnectHelp()
help of the .disconnect command
Definition disconnect.cpp:28
HANDLE g_EndOfMessageReceivedEvent
Handle to if the end of the message received (for showing signature).
Definition globals.h:159
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest).
Definition globals.h:96
BOOLEAN g_IsConnectedToHyperDbgLocally
Shows whether the user is allowed to use 'load' command to load modules locally in VMI (virtual machi...
Definition globals.h:89
HANDLE g_DeviceHandle
Holds the global handle of device which is used to send the request to the kernel by IOCTL,...
Definition globals.h:481
NULL()
Definition test-case-generator.py:530
INT RemoteConnectionCloseTheConnectionWithDebuggee()
Close the connect from client side to the debuggee.
Definition remote-connection.cpp:504