mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-30 22:19:17 +02:00

This relies on some work done to the RDI repository, need to get that landed before I can get this going.
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
#ifndef _METERPRETER_SERVER_METSRV_H
|
|
#define _METERPRETER_SERVER_METSRV_H
|
|
|
|
/*
|
|
* Version number
|
|
* v------- major major
|
|
* v----- major minor
|
|
* v--- minor major
|
|
* v- minor minor
|
|
*/
|
|
#define METSRV_VERSION_NUMBER 0x00010001
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define _WIN32_WINNT 0x0500
|
|
|
|
#define USE_DLL
|
|
#endif
|
|
#define METERPRETER_EXPORTS
|
|
#include "../common/common.h"
|
|
#include "config.h"
|
|
|
|
#include "remote_dispatch.h"
|
|
#include "libloader.h"
|
|
|
|
#ifdef _WIN32
|
|
#include "../ReflectiveDLLInjection/inject/src/GetProcAddressR.h"
|
|
#include "../ReflectiveDLLInjection/inject/src/LoadLibraryR.h"
|
|
#include "../ReflectiveDLLInjection/dll/src/ReflectiveLoader.h"
|
|
#endif
|
|
|
|
DWORD server_setup(MetsrvConfig* config);
|
|
typedef DWORD (*PSRVINIT)(Remote *remote);
|
|
typedef DWORD (*PSRVDEINIT)(Remote *remote);
|
|
typedef DWORD (*PSRVGETNAME)(char* buffer, int bufferSize);
|
|
|
|
typedef struct _EXTENSION
|
|
{
|
|
HMODULE library;
|
|
PSRVINIT init;
|
|
PSRVDEINIT deinit;
|
|
PSRVGETNAME getname;
|
|
Command* start;
|
|
Command* end;
|
|
char name[16];
|
|
} EXTENSION, *PEXTENSION;
|
|
|
|
#endif
|