mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-18 07:11:12 +02:00

The 'common' library has been removed. The only project that actually used it was metsrv, so the code that metsrv required from common is now directly compiled in as part of that project. The common folder now contains files that are importanta cross all of the projects, with a primary focus on the new "API" style function. What this means is that MetSrv has an API that it exposes through a function pointer that is passed to the extension when it's initialised. This pointer references a structure with all the API functions wired in. This means that: * Extensions don't need to know anything about metsrv at compile time. * The delay loading code can be removed, which was one of the last instances of "metsrv.dll" as a string. * Metsrv.dll no longer exports any functions. More to come.
31 lines
952 B
C
31 lines
952 B
C
#ifndef METERPRETER_SOURCE_EXTENSION_STDAPI_SERVER_PRECOMP_H
|
|
#define METERPRETER_SOURCE_EXTENSION_STDAPI_SERVER_PRECOMP_H
|
|
|
|
// sf: Compatability fix for a broken sdk? We get errors in Iphlpapi.h using the latest Windows SDK if we dont do this.
|
|
#undef _WIN32_WINNT
|
|
#define _WIN32_WINNT _WIN32_WINNT_WIN2K
|
|
#include "../stdapi.h"
|
|
#include <tlhelp32.h>
|
|
#include <iphlpapi.h>
|
|
#include "resource/resource.h"
|
|
|
|
#include "audio/audio.h"
|
|
#include "fs/fs.h"
|
|
#include "sys/sys.h"
|
|
#include "net/net.h"
|
|
#include "ui/ui.h"
|
|
#include "webcam/webcam.h"
|
|
#include "webcam/audio.h"
|
|
|
|
#include "railgun/railgun.h" // PKS, win32 specific at the moment.
|
|
|
|
#include "../../../ReflectiveDLLInjection/inject/src/GetProcAddressR.h"
|
|
#include "../../../ReflectiveDLLInjection/dll/src/ReflectiveLoader.h"
|
|
// declared in ReflectiveLoader.c and set by DllMain also in ReflectiveLoader.c
|
|
extern HINSTANCE hAppInstance;
|
|
|
|
#define strcasecmp _stricmp
|
|
|
|
|
|
#endif
|