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

pause command More...

#include "pch.h"

Functions

VOID CommandPauseHelp ()
 help of the pause command
 
VOID CommandPauseRequest ()
 request to pause
 
VOID CommandPause (vector< string > SplitCommand, string Command)
 pause command handler
 

Variables

BOOLEAN g_BreakPrintingOutput
 Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.
 
BOOLEAN g_IsConnectedToRemoteDebuggee
 Shows whether the current debugger is the host and connected to a remote debuggee (guest)
 
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
 State of active debugging thread.
 

Detailed Description

pause command

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

Function Documentation

◆ CommandPause()

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

pause command handler

Parameters
SplitCommand
Command
Returns
VOID
72{
73 if (SplitCommand.size() != 1)
74 {
75 ShowMessages("incorrect use of the 'pause'\n\n");
77 return;
78 }
79
81}
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
VOID CommandPauseRequest()
request to pause
Definition pause.cpp:40
VOID CommandPauseHelp()
help of the pause command
Definition pause.cpp:27

◆ CommandPauseHelp()

VOID CommandPauseHelp ( )

help of the pause command

Returns
VOID
28{
29 ShowMessages("pause : pauses the kernel events.\n\n");
30
31 ShowMessages("syntax : \tpause \n");
32}

◆ CommandPauseRequest()

VOID CommandPauseRequest ( )

request to pause

Returns
VOID
41{
42 //
43 // Set the g_BreakPrintingOutput to TRUE
44 //
46 ShowMessages("pausing...\n");
47
48 //
49 // If it's a remote debugger then we send the remote debuggee a 'g'
50 //
52 {
53 RemoteConnectionSendCommand("pause", (UINT32)strlen("pause") + 1);
54 }
56 {
57 ShowMessages("please keep interacting with the process until all the "
58 "threads are intercepted and halted; whenever you execute "
59 "the first command, the thread interception will be stopped\n");
60 }
61}
#define TRUE
Definition BasicTypes.h:55
unsigned int UINT32
Definition BasicTypes.h:48
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest)
Definition globals.h:74
BOOLEAN g_BreakPrintingOutput
Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.
Definition globals.h:499
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
State of active debugging thread.
Definition globals.h:362
int RemoteConnectionSendCommand(const char *sendbuf, int len)
send the command as a client (debugger, host) to the server (debuggee, guest)
Definition remote-connection.cpp:445
BOOLEAN IsActive
Definition ud.h:49
UINT64 ProcessDebuggingToken
Definition ud.h:50
BOOLEAN UdPauseProcess(UINT64 ProcessDebuggingToken)
Pause the target process.
Definition ud.cpp:843

Variable Documentation

◆ g_ActiveProcessDebuggingState

ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
extern

State of active debugging thread.

362{0};

◆ g_BreakPrintingOutput

BOOLEAN g_BreakPrintingOutput
extern

Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.

◆ g_IsConnectedToRemoteDebuggee

BOOLEAN g_IsConnectedToRemoteDebuggee
extern

Shows whether the current debugger is the host and connected to a remote debuggee (guest)