diff options
author | Matt Graeber <mattgraeber@gmail.com> | 2013-04-06 07:04:16 -0400 |
---|---|---|
committer | Matt Graeber <mattgraeber@gmail.com> | 2013-04-06 07:04:16 -0400 |
commit | 2224f4dca9d856f37a02a9fe4c1941d27c4e564f (patch) | |
tree | 058c9943e5b8d277600b04095ffcb644d8cddf19 /CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp | |
parent | 014a7bb421477a18add25164d71e977574832c14 (diff) | |
download | PowerSploit-2224f4dca9d856f37a02a9fe4c1941d27c4e564f.tar.gz PowerSploit-2224f4dca9d856f37a02a9fe4c1941d27c4e564f.zip |
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!
Diffstat (limited to 'CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp')
-rw-r--r-- | CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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; +} + |