// Copyright (c) 2009-2014, Berend-Jan "SkyLined" Wever // and Peter Ferrie // Project homepage: http://code.google.com/p/win-exec-calc-shellcode/ // All rights reserved. See COPYRIGHT.txt for details. // Minimal code for a DLL that executes a shellcode when loaded into a process. #include extern void shellcode(void); #pragma warning( push ) #pragma warning( disable : 4100 ) __declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD fwdReason, LPVOID lpvReserved) { shellcode(); return FALSE; } #pragma warning( pop )