Exploit databaseDownload repository ZIP
GH-e52eb9f464d63aae710fc3c0c9b25c17
davidcarliez/cve-2026-54992-poc
Sources for CVE-2026-54992
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files13
davidcarliez/cve-2026-54992-pocRevision 58d561e07d9a
- Makefile
- README.md
- fake_remote_read.h
- fake_remote_read.idl
- fake_remote_read_i.c
- fake_remote_read_s.c
- fake_remote_read_server.c
- invoke-crash.ps1
- legitimate_packet_template.h
- remote_read_trigger.c
- restore-helper.ps1
- setup-target.ps1
- start-emulator.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fake_remote_read.h
Text · 5,557 bytes/*** Autogenerated by WIDL 11.13 from fake_remote_read.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __fake_remote_read_h__
#define __fake_remote_read_h__
/* Forward declarations */
/* Headers for imported files */
#include <wtypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct __WIDL_fake_remote_read_generated_name_0000000B {
unsigned char rgb[16];
} XACTUOW;
typedef struct _MQ_OBJECTID {
GUID Lineage;
DWORD Uniquifier;
} MQ_OBJECTID;
typedef enum __QUEUE_FORMAT_TYPE {
QUEUE_FORMAT_TYPE_UNKNOWN = 0,
QUEUE_FORMAT_TYPE_PUBLIC = 1,
QUEUE_FORMAT_TYPE_PRIVATE = 2,
QUEUE_FORMAT_TYPE_DIRECT = 3,
QUEUE_FORMAT_TYPE_MACHINE = 4,
QUEUE_FORMAT_TYPE_CONNECTOR = 5,
QUEUE_FORMAT_TYPE_DL = 6,
QUEUE_FORMAT_TYPE_MULTICAST = 7,
QUEUE_FORMAT_TYPE_SUBQUEUE = 8
} QUEUE_FORMAT_TYPE;
typedef struct __QUEUE_FORMAT {
unsigned char m_qft;
unsigned char m_SuffixAndFlags;
unsigned short m_reserved;
union {
GUID m_gPublicID;
MQ_OBJECTID m_oPrivateID;
wchar_t *m_pDirectID;
GUID m_gMachineID;
GUID m_GConnectorID;
wchar_t *m_pDirectSubqueueID;
} u;
} QUEUE_FORMAT;
/*****************************************************************************
* RemoteRead interface (v1.0)
*/
#ifndef __RemoteRead_INTERFACE_DEFINED__
#define __RemoteRead_INTERFACE_DEFINED__
extern RPC_IF_HANDLE RemoteRead_v1_0_c_ifspec;
extern RPC_IF_HANDLE RemoteRead_v1_0_s_ifspec;
typedef void *QUEUE_CONTEXT_HANDLE_NOSERIALIZE;
typedef QUEUE_CONTEXT_HANDLE_NOSERIALIZE QUEUE_CONTEXT_HANDLE_SERIALIZE;
typedef enum __WIDL_fake_remote_read_generated_name_0000000C {
stFullPacket = 0,
stBinaryFirstSection = 1,
stBinarySecondSection = 2,
stSrmpFirstSection = 3,
stSrmpSecondSection = 4
} SectionType;
typedef struct _SectionBuffer {
SectionType SectionBufferType;
DWORD SectionSizeAlloc;
DWORD SectionSize;
byte *pSectionBuffer;
} SectionBuffer;
DWORD __cdecl R_GetServerPort(
handle_t hBind);
void __cdecl Opnum1NotUsedOnWire(
void);
void __cdecl R_OpenQueue(
handle_t hBind,
QUEUE_FORMAT *pQueueFormat,
DWORD dwAccess,
DWORD dwShareMode,
GUID *pClientId,
LONG fNonRoutingServer,
unsigned char Major,
unsigned char Minor,
USHORT BuildNumber,
LONG fWorkgroup,
QUEUE_CONTEXT_HANDLE_SERIALIZE *pphContext);
HRESULT __cdecl R_CloseQueue(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_SERIALIZE *pphContext);
HRESULT __cdecl R_CreateCursor(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
DWORD *phCursor);
HRESULT __cdecl R_CloseCursor(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
DWORD hCursor);
HRESULT __cdecl R_PurgeQueue(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext);
HRESULT __cdecl R_StartReceive(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
ULONGLONG LookupId,
DWORD hCursor,
DWORD ulAction,
DWORD ulTimeout,
DWORD dwRequestId,
DWORD dwMaxBodySize,
DWORD dwMaxCompoundMessageSize,
DWORD *pdwArriveTime,
ULONGLONG *pSequenceId,
DWORD *pdwNumberOfSections,
SectionBuffer **ppPacketSections);
HRESULT __cdecl R_CancelReceive(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
DWORD dwRequestId);
HRESULT __cdecl R_EndReceive(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
DWORD dwAck,
DWORD dwRequestId);
HRESULT __cdecl R_MoveMessage(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContextFrom,
ULONGLONG ullContextTo,
ULONGLONG LookupId,
XACTUOW *pTransactionId);
void __cdecl R_OpenQueueForMove(
handle_t hBind,
QUEUE_FORMAT *pQueueFormat,
DWORD dwAccess,
DWORD dwShareMode,
GUID *pClientId,
LONG fNonRoutingServer,
unsigned char Major,
unsigned char Minor,
USHORT BuildNumber,
LONG fWorkgroup,
ULONGLONG *pMoveContext,
QUEUE_CONTEXT_HANDLE_SERIALIZE *pphContext);
HRESULT __cdecl R_QMEnlistRemoteTransaction(
handle_t hBind,
XACTUOW *pTransactionId,
DWORD cbPropagationToken,
unsigned char *pbPropagationToken,
QUEUE_FORMAT *pQueueFormat);
HRESULT __cdecl R_StartTransactionalReceive(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
ULONGLONG LookupId,
DWORD hCursor,
DWORD ulAction,
DWORD ulTimeout,
DWORD dwRequestId,
DWORD dwMaxBodySize,
DWORD dwMaxCompoundMessageSize,
XACTUOW *pTransactionId,
DWORD *pdwArriveTime,
ULONGLONG *pSequenceId,
DWORD *pdwNumberOfSections,
SectionBuffer **ppPacketSections);
HRESULT __cdecl R_SetUserAcknowledgementClass(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
ULONGLONG LookupId,
USHORT usClass);
HRESULT __cdecl R_EndTransactionalReceive(
handle_t hBind,
QUEUE_CONTEXT_HANDLE_NOSERIALIZE phContext,
DWORD dwAck,
DWORD dwRequestId);
#endif /* __RemoteRead_INTERFACE_DEFINED__ */
/* Begin additional prototypes for all interfaces */
void __RPC_USER QUEUE_CONTEXT_HANDLE_SERIALIZE_rundown(QUEUE_CONTEXT_HANDLE_SERIALIZE);
void __RPC_USER QUEUE_CONTEXT_HANDLE_NOSERIALIZE_rundown(QUEUE_CONTEXT_HANDLE_NOSERIALIZE);
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __fake_remote_read_h__ */