mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
dfec277813
Another awesome addition from Joe Bialek. Invoke-ReflectivePEInjection is a vast improvement over Invoke-ReflectiveDllInjection. It adds the following features: * Now supports loading exe files in memory * Supports reflective dll injection into a remote process * Additional sample Visual Studio solutions
19 lines
442 B
C++
19 lines
442 B
C++
// DemoDLL_RemoteProcess.cpp : Defines the exported functions for the DLL application.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
|
|
using namespace std;
|
|
|
|
extern "C" __declspec( dllexport ) void VoidFunc();
|
|
|
|
|
|
extern "C" __declspec( dllexport ) void VoidFunc()
|
|
{
|
|
ofstream myfile;
|
|
_mkdir("c:\\ReflectiveLoaderTest");
|
|
myfile.open ("c:\\ReflectiveLoaderTest\\DllVoidFunction.txt");
|
|
myfile << "Dll Void function successfully called.\n";
|
|
myfile.close();
|
|
return;
|
|
} |