Files
atomic-red-team/atomics/T1196/calc.cpp
T
weev3 6e65bbd146 Add T1196(Control Panel Item) (#521)
* Add test for T1196 that pops calc.exe

* calc.cpl

* Rename T1196.md to T1196.yaml

* Create calc.cpp
2019-08-28 08:53:05 -06:00

13 lines
254 B
C++

#include <stdio.h>
#include <Windows.h>
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID
lpReserved)
{
// malicious code
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
system("c:\\windows\\system32\\calc.exe");
return 0;
}