HyperDbg Debugger
Loading...
Searching...
No Matches
export.h File Reference

headers for controller of the reversing machine's module More...

Go to the source code of this file.

Functions

VOID ConnectLocalDebugger ()
 Connect to local debugger.
 
BOOLEAN ConnectRemoteDebugger (const CHAR *Ip, const CHAR *Port)
 Connect to remote debugger.
 

Detailed Description

headers for controller of the reversing machine's module

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
1.0
Date
2024-06-24

Function Documentation

◆ ConnectLocalDebugger()

VOID ConnectLocalDebugger ( )

Connect to local debugger.

Returns
VOID
51{
53}
#define TRUE
Definition BasicTypes.h:55
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

◆ ConnectRemoteDebugger()

BOOLEAN ConnectRemoteDebugger ( const CHAR * Ip,
const CHAR * Port )

Connect to remote debugger.

Returns
BOOLEAN
62{
63 //
64 // Validate IP and Port
65
66 if (!ValidateIP(Ip))
67 {
68 return FALSE;
69 }
70
71 if (Port != NULL)
72 {
73 if (!IsNumber(Port) || stoi(Port) > 65535 || stoi(Port) < 0)
74 {
75 return FALSE;
76 }
77
78 //
79 // connect to remote debugger
80 //
81 g_ServerIp = Ip;
82 g_ServerPort = Port;
84 }
85 else
86 {
87 //
88 // connect to remote debugger (default port)
89 //
90 g_ServerIp = Ip;
93 }
94
95 return TRUE;
96}
#define FALSE
Definition BasicTypes.h:54
#define DEFAULT_PORT
default port of HyperDbg for listening by debuggee (server, guest)
Definition Constants.h:323
BOOLEAN IsNumber(const string &str)
check if given string is a numeric string or not
Definition common.cpp:145
BOOLEAN ValidateIP(const string &ip)
Function to validate an IP address.
Definition common.cpp:469
string g_ServerPort
In debugger (not debuggee), we save the port of server debuggee in this variable to use it later e....
Definition globals.h:110
string g_ServerIp
In debugger (not debuggee), we save the port of server debuggee in this variable to use it later e....
Definition globals.h:117
VOID RemoteConnectionConnect(PCSTR Ip, PCSTR Port)
Connect to a remote debuggee (guest) as a client (host)
Definition remote-connection.cpp:315