Skip to content

Commit a0c32af

Browse files
committed
refactor: comment out LoadLibraryR inclusion and adjust extension initialization
1 parent c429618 commit a0c32af

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

c/meterpreter/source/metsrv/metsrv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define RDIDLL_NOEXPORT
1313
#include "../ReflectiveDLLInjection/dll/src/ReflectiveLoader.c"
1414
#include "../ReflectiveDLLInjection/inject/src/GetProcAddressR.c"
15-
#include "../ReflectiveDLLInjection/inject/src/LoadLibraryR.c"
15+
// #include "../ReflectiveDLLInjection/inject/src/LoadLibraryR.c"
1616

1717
DWORD Init(MetsrvConfig* metConfig)
1818
{

c/meterpreter/source/metsrv/remote_dispatch.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ DWORD stagelessinit_extension(UINT extensionId, LPBYTE data, DWORD dataSize)
229229
}
230230

231231

232-
233232
/*
234233
* @brief Load an extension from the given library handle.
235234
* @param hLibrary handle to the library to load/init.
@@ -276,7 +275,7 @@ DWORD load_extension(HMODULE hLibrary, BOOL bLibLoadedReflectivly, Remote* remot
276275

277276
pExtension->end = pFirstCommand;
278277
// dwResult can be a mixture of different error types, e.g. HRESULT, win32 error
279-
dwResult = pExtension->init(met_api, remote, pExtension->library);
278+
dwResult = pExtension->init(met_api, remote);
280279
pExtension->start = extensionCommands;
281280

282281
if (dwResult == ERROR_SUCCESS)

0 commit comments

Comments
 (0)