From 2224f4dca9d856f37a02a9fe4c1941d27c4e564f Mon Sep 17 00:00:00 2001 From: Matt Graeber Date: Sat, 6 Apr 2013 07:04:16 -0400 Subject: Adding reflective DLL loading capability Adding Invoke-ReflectiveDllInjection. PowerSploit now has reflective DLL loading capabilities!!! Thanks to Joe Bialek @JosephBialek for writing this awesome code! --- CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp (limited to 'CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp') diff --git a/CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp b/CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp new file mode 100644 index 0000000..69b5891 --- /dev/null +++ b/CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp @@ -0,0 +1,19 @@ +// dllmain.cpp : Defines the entry point for the DLL application. +#include "stdafx.h" + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + -- cgit v1.2.3