Register-CimProvider Atomic test (#435)

A quick atomic test that utilizes register-cimprovider to execute a dll that pops calc.
This commit is contained in:
JimmyAstle
2019-01-16 12:23:29 -05:00
committed by Zac Brown
parent 7554e9b644
commit 61ffc53425
3 changed files with 29 additions and 0 deletions
+17
View File
@@ -40,3 +40,20 @@ atomic_tests:
name: command_prompt
command: |
SyncAppvPublishingServer.exe "n; #{powershell_code}"
- name: Register-CimProvider - Execute evil dll
description: |
Execute arbitrary dll. Requires at least Windows 8/2012. Also note this dll can be served up via SMB
supported_platforms:
- windows
input_arguments:
dll_payload:
description: DLL to execute
type: Path
default: C:\AtomicRedTeam\atomics\T1218\src\Win32\T1218-2.dll
executor:
name: command_prompt
command: |
C:\Windows\SysWow64\Register-CimProvider.exe -Path #{dll_payload}
+12
View File
@@ -0,0 +1,12 @@
#include <windows.h>
int beerTime()
{
WinExec("calc", SW_SHOWNORMAL);
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
beerTime();
return 0;
}
Binary file not shown.