aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2013-04-06 07:04:16 -0400
committerMatt Graeber <mattgraeber@gmail.com>2013-04-06 07:04:16 -0400
commit2224f4dca9d856f37a02a9fe4c1941d27c4e564f (patch)
tree058c9943e5b8d277600b04095ffcb644d8cddf19 /CodeExecution/DemoReflectiveDLL/DemoDLL/dllmain.cpp
parent014a7bb421477a18add25164d71e977574832c14 (diff)
downloadPowerSploit-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.cpp19
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;
+}
+