316{
320
321
322
323
325 {
326 return;
327 }
328
329
330
331
333 {
334
335
336
337
338
339
340
342
343
344
345
347
348
349
350
352
353
354
355
357 }
358 else
359 {
360
361
362
363
364
365
366
368 {
369
370
371
372 ShowMessages(
"err, failed to communicate with debuggee\n");
373 return;
374 }
375
376
377
378
380 {
381
382
383
384 ShowMessages(
"err, failed to receive message from debuggee\n");
385 return;
386 }
387
388
389
390
391 if (strcmp((const char *)"OK", Recv) != 0)
392 {
393
394
395
397 return;
398 }
399
400
401
402
404
405
406
407
409
410
411
412
414 {
416 }
417
418
419
420
421
422
424 NULL,
425 0,
427 NULL,
428 0,
429 &ThreadId);
430
432 }
433}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned long DWORD
Definition BasicTypes.h:22
unsigned int UINT32
Definition BasicTypes.h:48
char CHAR
Definition BasicTypes.h:31
const unsigned char BuildSignature[]
Definition Constants.h:130
BOOLEAN IsConnectedToAnyInstanceOfDebuggerOrDebuggee()
Shows whether the debugger is connected to a debugger or debuggee connected to a debugger.
Definition debugger.cpp:668
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest)
Definition globals.h:74
DWORD WINAPI RemoteConnectionThreadListeningToDebuggee(LPVOID lpParam)
A thread that listens for server (debuggee) messages and show it by using ShowMessages wrapper.
Definition remote-connection.cpp:211
HANDLE g_RemoteDebuggeeListeningThread
In debugger (not debuggee), we save the ip of server debuggee in this variable to use it later e....
Definition globals.h:124
HANDLE g_EndOfMessageReceivedEvent
Handle to if the end of the message received (for showing signature)
Definition globals.h:137
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
int CommunicationClientReceiveMessage(SOCKET ConnectSocket, CHAR *RecvBuf, UINT32 MaxBuffLen, PUINT32 BuffLenRecvd)
Receive message as a client.
Definition tcpclient.cpp:173
int CommunicationClientConnectToServer(PCSTR Ip, PCSTR Port, SOCKET *ConnectSocketArg)
communication for client, connecting to the server
Definition tcpclient.cpp:23
int CommunicationClientSendMessage(SOCKET ConnectSocket, const char *sendbuf, int buflen)
Send message a client.
Definition tcpclient.cpp:111