HyperDbg Debugger
Loading...
Searching...
No Matches
forwarding.h
Go to the documentation of this file.
1
12#pragma once
13
15// Forwarding Types //
17
22typedef void (*hyperdbg_event_forwarding_t)(const char *, unsigned int);
23
25// Output Source Forwarding //
27
32#define MAXIMUM_CHARACTERS_FOR_EVENT_FORWARDING_NAME 50
33
46
58
74
92
94// Functions //
96
99
102
105
108 CHAR * Message,
109 UINT32 MessageLength);
110
112ForwardingWriteToFile(HANDLE FileHandle, CHAR * Message, UINT32 MessageLength);
113
115ForwardingSendToNamedPipe(HANDLE NamedPipeHandle, CHAR * Message, UINT32 MessageLength);
116
118ForwardingSendToTcpSocket(SOCKET TcpSocket, CHAR * Message, UINT32 MessageLength);
119
120VOID *
122 const string & Description,
123 SOCKET * Socket,
124 HMODULE * Module);
UCHAR BOOLEAN
Definition BasicTypes.h:39
#define VOID
Definition BasicTypes.h:33
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
char CHAR
Definition BasicTypes.h:31
PHANDLE FileHandle
Definition Hooks.h:129
DEBUGGER_OUTPUT_SOURCE_STATUS ForwardingCloseOutputSource(PDEBUGGER_EVENT_FORWARDING SourceDescriptor)
Closes the output source.
Definition forwarding.cpp:110
BOOLEAN ForwardingSendToTcpSocket(SOCKET TcpSocket, CHAR *Message, UINT32 MessageLength)
Send the output results to the tcp socket.
Definition forwarding.cpp:595
DEBUGGER_OUTPUT_SOURCE_STATUS ForwardingOpenOutputSource(PDEBUGGER_EVENT_FORWARDING SourceDescriptor)
Opens the output source.
Definition forwarding.cpp:40
struct _DEBUGGER_EVENT_FORWARDING DEBUGGER_EVENT_FORWARDING
structures hold the detail of event forwarding
_DEBUGGER_EVENT_FORWARDING_STATE
event forwarding states
Definition forwarding.h:52
@ EVENT_FORWARDING_STATE_OPENED
Definition forwarding.h:54
@ EVENT_FORWARDING_CLOSED
Definition forwarding.h:55
@ EVENT_FORWARDING_STATE_NOT_OPENED
Definition forwarding.h:53
VOID * ForwardingCreateOutputSource(DEBUGGER_EVENT_FORWARDING_TYPE SourceType, const string &Description, SOCKET *Socket, HMODULE *Module)
Create a new source (create handle from the source)
Definition forwarding.cpp:215
BOOLEAN ForwardingWriteToFile(HANDLE FileHandle, CHAR *Message, UINT32 MessageLength)
Write the output results to the file.
Definition forwarding.cpp:501
enum _DEBUGGER_EVENT_FORWARDING_TYPE DEBUGGER_EVENT_FORWARDING_TYPE
event forwarding type
UINT64 ForwardingGetNewOutputSourceTag()
Get the output source tag and increase the global variable for tag.
Definition forwarding.cpp:28
void(* hyperdbg_event_forwarding_t)(const char *, unsigned int)
maximum characters for event forwarding source names
Definition forwarding.h:22
#define MAXIMUM_CHARACTERS_FOR_EVENT_FORWARDING_NAME
maximum characters for event forwarding source names
Definition forwarding.h:32
BOOLEAN ForwardingSendToNamedPipe(HANDLE NamedPipeHandle, CHAR *Message, UINT32 MessageLength)
Send the output results to the namedpipe.
Definition forwarding.cpp:562
enum _DEBUGGER_EVENT_FORWARDING_STATE DEBUGGER_EVENT_FORWARDING_STATE
event forwarding states
BOOLEAN ForwardingCheckAndPerformEventForwarding(UINT32 OperationCode, CHAR *Message, UINT32 MessageLength)
Check and send the event result to the corresponding sources.
Definition forwarding.cpp:439
_DEBUGGER_OUTPUT_SOURCE_STATUS
output source status
Definition forwarding.h:66
@ DEBUGGER_OUTPUT_SOURCE_STATUS_SUCCESSFULLY_OPENED
Definition forwarding.h:67
@ DEBUGGER_OUTPUT_SOURCE_STATUS_UNKNOWN_ERROR
Definition forwarding.h:71
@ DEBUGGER_OUTPUT_SOURCE_STATUS_ALREADY_OPENED
Definition forwarding.h:69
@ DEBUGGER_OUTPUT_SOURCE_STATUS_SUCCESSFULLY_CLOSED
Definition forwarding.h:68
@ DEBUGGER_OUTPUT_SOURCE_STATUS_ALREADY_CLOSED
Definition forwarding.h:70
enum _DEBUGGER_OUTPUT_SOURCE_STATUS DEBUGGER_OUTPUT_SOURCE_STATUS
output source status
_DEBUGGER_EVENT_FORWARDING_TYPE
event forwarding type
Definition forwarding.h:39
@ EVENT_FORWARDING_TCP
Definition forwarding.h:42
@ EVENT_FORWARDING_MODULE
Definition forwarding.h:43
@ EVENT_FORWARDING_FILE
Definition forwarding.h:41
@ EVENT_FORWARDING_NAMEDPIPE
Definition forwarding.h:40
struct _DEBUGGER_EVENT_FORWARDING * PDEBUGGER_EVENT_FORWARDING
structures hold the detail of event forwarding
Definition forwarding.h:80
LIST_ENTRY OutputSourcesList
Definition forwarding.h:88
DEBUGGER_EVENT_FORWARDING_TYPE Type
Definition forwarding.h:81
DEBUGGER_EVENT_FORWARDING_STATE State
Definition forwarding.h:82
CHAR Name[MAXIMUM_CHARACTERS_FOR_EVENT_FORWARDING_NAME]
Definition forwarding.h:89
SOCKET Socket
Definition forwarding.h:84
HMODULE Module
Definition forwarding.h:85
UINT64 OutputUniqueTag
Definition forwarding.h:86
VOID * Handle
Definition forwarding.h:83