HyperDbg Debugger
|
Go to the source code of this file.
Macros | |
#define | COM1_PORT 0x03F8 |
#define | COM2_PORT 0x02F8 |
#define | COM3_PORT 0x03E8 |
#define | COM4_PORT 0x02E8 |
Functions | |
int | CommunicationServerCreateServerAndWaitForClient (PCSTR Port, SOCKET *ClientSocketArg, SOCKET *ListenSocketArg) |
Create server and wait for a client to connect. | |
int | CommunicationServerReceiveMessage (SOCKET ClientSocket, char *recvbuf, int recvbuflen) |
listen and receive message as the server | |
int | CommunicationServerSendMessage (SOCKET ClientSocket, const char *sendbuf, int length) |
send message as the server | |
int | CommunicationServerShutdownAndCleanupConnection (SOCKET ClientSocket, SOCKET ListenSocket) |
Shutdown and cleanup connection as server. | |
int | CommunicationClientConnectToServer (PCSTR Ip, PCSTR Port, SOCKET *ConnectSocketArg) |
communication for client, connecting to the server | |
int | CommunicationClientSendMessage (SOCKET ConnectSocket, const char *sendbuf, int buflen) |
Send message a client. | |
int | CommunicationClientShutdownConnection (SOCKET ConnectSocket) |
shutdown the connection as a client | |
int | CommunicationClientReceiveMessage (SOCKET ConnectSocket, CHAR *RecvBuf, UINT32 MaxBuffLen, PUINT32 BuffLenRecvd) |
Receive message as a client. | |
int | CommunicationClientCleanup (SOCKET ConnectSocket) |
cleanup the connection as client | |
VOID | RemoteConnectionListen (PCSTR Port) |
Listen of a port and wait for a client connection. | |
VOID | RemoteConnectionConnect (PCSTR Ip, PCSTR Port) |
Connect to a remote debuggee (guest) as a client (host) | |
int | RemoteConnectionSendCommand (const char *sendbuf, int len) |
send the command as a client (debugger, host) to the server (debuggee, guest) | |
int | RemoteConnectionSendResultsToHost (const char *sendbuf, int len) |
Send the results of executing a command from deubggee (server, guest) to the debugger (client, host) | |
int | RemoteConnectionCloseTheConnectionWithDebuggee () |
Close the connect from client side to the debuggee. | |
#define COM1_PORT 0x03F8 |
#define COM2_PORT 0x02F8 |
#define COM3_PORT 0x03E8 |
#define COM4_PORT 0x02E8 |
int CommunicationClientCleanup | ( | SOCKET | ConnectSocket | ) |
cleanup the connection as client
ConnectSocket |
int CommunicationClientConnectToServer | ( | PCSTR | Ip, |
PCSTR | Port, | ||
SOCKET * | ConnectSocketArg ) |
communication for client, connecting to the server
Ip | |
Port | |
ConnectSocketArg |
int CommunicationClientReceiveMessage | ( | SOCKET | ConnectSocket, |
CHAR * | RecvBuf, | ||
UINT32 | MaxBuffLen, | ||
PUINT32 | BuffLenRecvd ) |
Receive message as a client.
ConnectSocket | |
RecvBuf | |
MaxBuffLen | |
BuffLenRecvd |
int CommunicationClientSendMessage | ( | SOCKET | ConnectSocket, |
const char * | sendbuf, | ||
int | buflen ) |
Send message a client.
ConnectSocket | |
sendbuf | |
buflen |
int CommunicationClientShutdownConnection | ( | SOCKET | ConnectSocket | ) |
shutdown the connection as a client
ConnectSocket |
int CommunicationServerCreateServerAndWaitForClient | ( | PCSTR | Port, |
SOCKET * | ClientSocketArg, | ||
SOCKET * | ListenSocketArg ) |
Create server and wait for a client to connect.
this function only accepts one client not multiple clients
Port | |
ClientSocketArg | |
ListenSocketArg |
int CommunicationServerReceiveMessage | ( | SOCKET | ClientSocket, |
char * | recvbuf, | ||
int | recvbuflen ) |
listen and receive message as the server
ClientSocket | |
recvbuf | |
recvbuflen |
int CommunicationServerSendMessage | ( | SOCKET | ClientSocket, |
const char * | sendbuf, | ||
int | length ) |
send message as the server
ClientSocket | |
sendbuf | |
length |
int CommunicationServerShutdownAndCleanupConnection | ( | SOCKET | ClientSocket, |
SOCKET | ListenSocket ) |
Shutdown and cleanup connection as server.
ClientSocket | |
ListenSocket |
int RemoteConnectionCloseTheConnectionWithDebuggee | ( | ) |
Close the connect from client side to the debuggee.
VOID RemoteConnectionConnect | ( | PCSTR | Ip, |
PCSTR | Port ) |
Connect to a remote debuggee (guest) as a client (host)
this routine is supposed to be called by .connect command
Ip | |
Port |
VOID RemoteConnectionListen | ( | PCSTR | Port | ) |
Listen of a port and wait for a client connection.
this routine is supposed to be called by .listen command
Port |
int RemoteConnectionSendCommand | ( | const char * | sendbuf, |
int | len ) |
send the command as a client (debugger, host) to the server (debuggee, guest)
sendbuf | address of message buffer |
len | length of buffer |
int RemoteConnectionSendResultsToHost | ( | const char * | sendbuf, |
int | len ) |
Send the results of executing a command from deubggee (server, guest) to the debugger (client, host)
sendbuf | buffer address |
len | length of buffer |