mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00

This reverts commit f148f8cb38267f077c31cc2ccad78fcb802ca5c9, reversing changes made to 87d241046853d44a7fa2c1e5b6aba93a848679d8.
48 lines
1.3 KiB
C
Executable File
48 lines
1.3 KiB
C
Executable File
#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
|
|
|
|
#define _WIN32_WINNT 0x0500
|
|
#define USE_DLL
|
|
|
|
#define METERPRETER_EXPORTS
|
|
#include "../common/common.h"
|
|
#include "config.h"
|
|
|
|
#include "remote_dispatch.h"
|
|
#include "libloader.h"
|
|
|
|
#include "../ReflectiveDLLInjection/inject/src/GetProcAddressR.h"
|
|
#include "../ReflectiveDLLInjection/inject/src/LoadLibraryR.h"
|
|
#include "../ReflectiveDLLInjection/dll/src/ReflectiveLoader.h"
|
|
|
|
DWORD server_setup(MetsrvConfig* config);
|
|
typedef DWORD (*PSRVINIT)(Remote *remote);
|
|
typedef DWORD (*PSRVDEINIT)(Remote *remote);
|
|
typedef DWORD (*PSRVGETNAME)(char* buffer, int bufferSize);
|
|
typedef VOID (*PCMDADDED)(const char* commandName);
|
|
typedef DWORD (*PSTAGELESSINIT)(LPBYTE data, DWORD dataSize);
|
|
|
|
typedef struct _EXTENSION
|
|
{
|
|
HMODULE library;
|
|
PSRVINIT init;
|
|
PSRVDEINIT deinit;
|
|
PSRVGETNAME getname;
|
|
PCMDADDED commandAdded;
|
|
PSTAGELESSINIT stagelessInit;
|
|
Command* start;
|
|
Command* end;
|
|
char name[16];
|
|
} EXTENSION, *PEXTENSION;
|
|
|
|
#endif
|