HyperDbg Debugger
Loading...
Searching...
No Matches
core.cpp File Reference
#include "pch.h"

Functions

VOID CommandCoreHelp ()
 help of the ~ command
 
VOID CommandCore (vector< string > SplitCommand, string Command)
 ~ command handler
 

Variables

ULONG g_CurrentRemoteCore
 Current core that the debuggee is debugging.
 
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
 Shows if the debugger was connected to remote debuggee over (A remote guest)
 

Function Documentation

◆ CommandCore()

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

~ command handler

Parameters
SplitCommand
Command
Returns
VOID
47{
48 UINT32 TargetCore = 0;
49
50 if (SplitCommand.size() != 1 && SplitCommand.size() != 2)
51 {
52 ShowMessages("incorrect use of the '~'\n\n");
54 return;
55 }
56
57 //
58 // Check if it's connected to a remote debuggee or not
59 //
61 {
62 ShowMessages("err, you're not connected to any debuggee\n");
63 return;
64 }
65
66 if (SplitCommand.size() == 1)
67 {
68 ShowMessages("current processor : 0x%x\n", g_CurrentRemoteCore);
69 }
70 else if (SplitCommand.size() == 2)
71 {
72 if (!ConvertStringToUInt32(SplitCommand.at(1), &TargetCore))
73 {
74 ShowMessages("please specify a correct hex value for the core that you "
75 "want to operate on it\n\n");
77 return;
78 }
79
80 //
81 // Send the changing core packet
82 //
84 }
85}
unsigned int UINT32
Definition BasicTypes.h:48
BOOLEAN ConvertStringToUInt32(string TextToConvert, PUINT32 Result)
check and convert string to a 32 bit unsigned it and also check for special notations like 0x etc.
Definition common.cpp:347
ULONG g_CurrentRemoteCore
Current core that the debuggee is debugging.
Definition globals.h:263
VOID CommandCoreHelp()
help of the ~ command
Definition core.cpp:26
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest)
Definition globals.h:231
BOOLEAN KdSendSwitchCorePacketToDebuggee(UINT32 NewCore)
Sends a change core or '~ x' command packet to the debuggee.
Definition kd.cpp:181
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96

◆ CommandCoreHelp()

VOID CommandCoreHelp ( )

help of the ~ command

Returns
VOID
27{
28 ShowMessages("~ : shows and changes the operating processor.\n\n");
29
30 ShowMessages("syntax : \t~\n");
31 ShowMessages("syntax : \t~ [CoreNumber (hex)]\n");
32
33 ShowMessages("\n");
34 ShowMessages("\t\te.g : ~ \n");
35 ShowMessages("\t\te.g : ~ 2 \n");
36}

Variable Documentation

◆ g_CurrentRemoteCore

ULONG g_CurrentRemoteCore
extern

Current core that the debuggee is debugging.

◆ g_IsSerialConnectedToRemoteDebuggee

BOOLEAN g_IsSerialConnectedToRemoteDebuggee
extern

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