Exploit databaseDownload repository ZIP
GH-260694462782003e0ad2e80c2997ea31
stillbigjosh/cve-2024-26229-bof
Sources for CVE-2024-26229
7 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
stillbigjosh/cve-2024-26229-bofRevision bc0bb5f373f8
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
beacon.h
Suggested starting fileText · 1,886 bytes#ifndef BEACON_H
#define BEACON_H
#include <windows.h>
#define CALLBACK_OUTPUT 0x0
#define CALLBACK_SCREENSHOT 0x55
#define CALLBACK_INFO 0x4e
#define CALLBACK_OUTPUT_OEM 0x1e
#define CALLBACK_ERROR 0x0d
#define CALLBACK_OUTPUT_UTF8 0x20
typedef struct {
char* Original;
char* Buffer;
int Length;
int Size;
} datap;
typedef struct {
char* Original;
char* Buffer;
int Length;
int Size;
} formatp;
#ifdef __cplusplus
extern "C" {
#endif
DECLSPEC_IMPORT void BeaconPrintf(int Type, const char* Fmt, ...);
DECLSPEC_IMPORT void BeaconOutput(int Type, char* Data, int Len);
DECLSPEC_IMPORT int BeaconIsAdmin(void);
DECLSPEC_IMPORT void BeaconDataParse(datap* Parser, char* Buffer, int Size);
DECLSPEC_IMPORT int BeaconDataInt(datap* Parser);
DECLSPEC_IMPORT short BeaconDataShort(datap* Parser);
DECLSPEC_IMPORT int BeaconDataLength(datap* Parser);
DECLSPEC_IMPORT char* BeaconDataExtract(datap* Parser, int* Size);
DECLSPEC_IMPORT void BeaconFormatAlloc(formatp* Format, int Maxsz);
DECLSPEC_IMPORT void BeaconFormatReset(formatp* Format);
DECLSPEC_IMPORT void BeaconFormatFree(formatp* Format);
DECLSPEC_IMPORT void BeaconFormatAppend(formatp* Format, char* Text, int Len);
DECLSPEC_IMPORT void BeaconFormatPrintf(formatp* Format, char* Fmt, ...);
DECLSPEC_IMPORT char* BeaconFormatToString(formatp* Format, int* Size);
DECLSPEC_IMPORT void BeaconFormatInt(formatp* Format, int Value);
DECLSPEC_IMPORT void* BeaconHeapAlloc(unsigned long Size);
DECLSPEC_IMPORT void* BeaconHeapReAlloc(void* Block, unsigned long Size);
DECLSPEC_IMPORT int BeaconHeapFree(void* Block);
DECLSPEC_IMPORT HANDLE BeaconOpenProcess(DWORD DesiredAccess, BOOL InheritHandle, DWORD ProcessId);
DECLSPEC_IMPORT HANDLE BeaconOpenThread(DWORD DesiredAccess, BOOL InheritHandle, DWORD ThreadId);
#ifdef __cplusplus
}
#endif
#endif