PowerSploit/CodeExecution/Invoke-ReflectivePEInjectio.../DemoExe/DemoExe_MD/DemoExe_MD.cpp

27 lines
411 B
C++

// 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;
}