HyperDbg Debugger
Loading...
Searching...
No Matches
exit.cpp File Reference

exit command More...

#include "pch.h"

Functions

VOID CommandExitHelp ()
 help of the exit command
 
VOID CommandExit (vector< string > SplitCommand, string Command)
 exit command handler
 

Variables

HANDLE g_DeviceHandle
 Holds the global handle of device which is used to send the request to the kernel by IOCTL, this handle is not used for IRP Pending of message tracing this handle is used in KD VMM.
 
BOOLEAN g_IsConnectedToHyperDbgLocally
 Shows whether the user is allowed to use 'load' command to load modules locally in VMI (virtual machine introspection) mode.
 
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
 Shows if the debugger was connected to remote debuggee over (A remote guest)
 

Detailed Description

exit command

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.1
Date
2020-05-27

Function Documentation

◆ CommandExit()

VOID CommandExit ( vector< string > SplitCommand,
string Command )

exit command handler

Parameters
SplitCommand
Command
Returns
VOID
44{
45 if (SplitCommand.size() != 1)
46 {
47 ShowMessages("incorrect use of the 'exit'\n\n");
49 return;
50 }
51
53 {
54 //
55 // It is in VMI mode
56 //
57
58 //
59 // unload and exit if the vmm module is loaded
60 //
62 {
64 }
65 }
67 {
68 //
69 // It is in debugger mode
70 //
71
73 }
74
75 exit(0);
76}
HANDLE g_DeviceHandle
Holds the global handle of device which is used to send the request to the kernel by IOCTL,...
Definition globals.h:471
VOID CommandExitHelp()
help of the exit command
Definition exit.cpp:27
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 KdCloseConnection()
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
INT HyperDbgUnloadVmm()
Unload VMM driver.
Definition libhyperdbg.cpp:693

◆ CommandExitHelp()

VOID CommandExitHelp ( )

help of the exit command

Returns
VOID
28{
30 "exit : unloads and uninstalls the drivers and closes the debugger.\n\n");
31
32 ShowMessages("syntax : \texit\n");
33}

Variable Documentation

◆ g_DeviceHandle

HANDLE g_DeviceHandle
extern

Holds the global handle of device which is used to send the request to the kernel by IOCTL, this handle is not used for IRP Pending of message tracing this handle is used in KD VMM.

◆ g_IsConnectedToHyperDbgLocally

BOOLEAN g_IsConnectedToHyperDbgLocally
extern

Shows whether the user is allowed to use 'load' command to load modules locally in VMI (virtual machine introspection) mode.

◆ g_IsSerialConnectedToRemoteDebuggee

BOOLEAN g_IsSerialConnectedToRemoteDebuggee
extern

Shows if the debugger was connected to remote debuggee over (A remote guest)