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< string > SplitCommand, 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< string > SplitCommand,
string Command )

.kill command handler

Parameters
SplitCommand
Command
Returns
VOID
42{
43 if (SplitCommand.size() != 1)
44 {
45 ShowMessages("incorrect use of the '.kill'\n\n");
47 return;
48 }
49
51 {
52 //
53 // Kill the current active process
54 //
56 {
57 ShowMessages("process does not exists, is it already terminated?\n");
58 }
59 }
61 {
63 {
64 ShowMessages("process does not exists, is it already terminated?\n");
65 }
66
67 //
68 // No longer the last process exists
69 //
71 }
72 else
73 {
74 ShowMessages("nothing to terminate!\n");
75 return;
76 }
77}
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:368
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
State of active debugging thread.
Definition globals.h:362
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
NULL()
Definition test-case-generator.py:530
UINT32 ProcessId
Definition ud.h:51
BOOLEAN IsActive
Definition ud.h:49
BOOLEAN UdKillProcess(UINT32 TargetPid)
Kill the target process from kernel.
Definition ud.cpp:666

◆ 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.

362{0};

◆ g_ProcessIdOfLatestStartingProcess

UINT32 g_ProcessIdOfLatestStartingProcess
extern

The process id of the latest starting process.