aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution/Invoke-ReflectivePEInjection_Resources/DemoExe/DemoExe_MD/DemoExe_MD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CodeExecution/Invoke-ReflectivePEInjection_Resources/DemoExe/DemoExe_MD/DemoExe_MD.cpp')
-rw-r--r--CodeExecution/Invoke-ReflectivePEInjection_Resources/DemoExe/DemoExe_MD/DemoExe_MD.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/CodeExecution/Invoke-ReflectivePEInjection_Resources/DemoExe/DemoExe_MD/DemoExe_MD.cpp b/CodeExecution/Invoke-ReflectivePEInjection_Resources/DemoExe/DemoExe_MD/DemoExe_MD.cpp
new file mode 100644
index 0000000..364340b
--- /dev/null
+++ b/CodeExecution/Invoke-ReflectivePEInjection_Resources/DemoExe/DemoExe_MD/DemoExe_MD.cpp
@@ -0,0 +1,26 @@
+// DemoExe.cpp : Defines the entry point for the console application.
+//
+
+#include "stdafx.h"
+#include <iostream>
+
+using namespace std;
+
+int _tmain(int argc, _TCHAR* argv[])
+{
+ printf("Exe loaded! Printing argc and argv\n\n");
+
+ printf("Argc: %d\n", argc);
+ printf("ArgvAddress: %d\n", argv);
+
+ for (int i = 0; i < argc; i++)
+ {
+ wprintf(L"Argv: %s\n", argv[i]);
+ }
+
+ printf("Exiting exe\n");
+
+ return 0;
+}
+
+