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

.kill command More...

#include "pch.h"

Functions

VOID CommandKillHelp ()
 help of the .kill command
VOID CommandKill (vector< CommandToken > CommandTokens, string Command)
 .kill command handler

Variables

UINT32 g_ProcessIdOfLatestStartingProcess
 The process id of the latest starting process.
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
 State of active debugging thread.

Detailed Description

.kill command

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.1
Date
2022-01-06

Function Documentation

◆ CommandKill()

VOID CommandKill ( vector< CommandToken > CommandTokens,
string Command )

.kill command handler

Parameters
CommandTokens
Command
Returns
VOID
43{
44 if (CommandTokens.size() != 1)
45 {
46 ShowMessages("incorrect use of the '%s'\n\n",
47 GetCaseSensitiveStringFromCommandToken(CommandTokens.at(0)).c_str());
49 return;
50 }
51
53 {
54 //
55 // Kill the current active process
56 //
58 {
59 ShowMessages("process does not exists, is it already terminated?\n");
60 }
61 }
63 {
65 {
66 ShowMessages("process does not exists, is it already terminated?\n");
67 }
68
69 //
70 // No longer the last process exists
71 //
73 }
74 else
75 {
76 ShowMessages("nothing to terminate!\n");
77 return;
78 }
79}
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
State of active debugging thread.
Definition globals.h:372
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
VOID CommandKillHelp()
help of the .kill command
Definition kill.cpp:26
UINT32 g_ProcessIdOfLatestStartingProcess
The process id of the latest starting process.
Definition globals.h:378
NULL()
Definition test-case-generator.py:530
BOOLEAN UdKillProcess(UINT32 TargetPid)
Kill the target process from kernel.
Definition ud.cpp:688

◆ CommandKillHelp()

VOID CommandKillHelp ( )

help of the .kill command

Returns
VOID
27{
28 ShowMessages(".kill : terminates the current running process.\n\n");
29
30 ShowMessages("syntax : \t.kill \n");
31}

Variable Documentation

◆ g_ActiveProcessDebuggingState

ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
extern

State of active debugging thread.

372{0};

◆ g_ProcessIdOfLatestStartingProcess

UINT32 g_ProcessIdOfLatestStartingProcess
extern

The process id of the latest starting process.